Vardars Blog

Programming, Karikatür, Web etc.

‘Web’ Kategorisi için Arşiv

Asp.net ile Response olarak dosya gönderme

Yazan: vardars 02 Sep 2009

Merhaba;

Asp.net ile hazırladığınız bir sayfada içerde ürettiğiniz veya dışarıdan okuyup yazdırdığınız bir dosyayı, kullanıcı görüntülerken direkt dosya olarak indirebilmesi için:

Response.ContentType = “application/octet-stream”;

Response.AddHeader(“Content-Disposition”, “attachment; filename=” + “Test.xml”);

şeklinde belirtmeniz yeterlidir. Bu şekilde attachment olarak indirilir.

İyi Çalışmalar

Yazı kategorisi: Software, Web | » yorum bırak;

Web İçin Standart Sistem Fontları

Yazan: vardars 22 Jul 2009

Merhaba;

Web’de kullanılacak fontları seçerken her bilgisayarda olacak fontlar kullanmak oldukça önemlidir. Bunun için aşağıdaki listeden faydalanabilirsiniz. Mavi ve kalın işaretli olanlar her iki platformda da ortak bulunanlardır.

Windows fonts / Mac fonts / Font family
Normal Bold
Arial, Arial, Helvetica, sans-serif Arial, Arial, Helvetica, sans-serif
Arial Black, Arial Black, Gadget, sans-serif Arial Black, Arial Black, Gadget, sans-serif
Comic Sans MS, Comic Sans MS5, cursive Comic Sans MS, Comic Sans MS5, cursive
Courier New, Courier New, Courier6, monospace Courier New, Courier New, Courier6, monospace
Georgia1, Georgia, serif Georgia1, Georgia, serif
Impact, Impact5, Charcoal6, sans-serif Impact, Impact5, Charcoal6, sans-serif
Lucida Console, Monaco5, monospace Lucida Console, Monaco5, monospace
Lucida Sans Unicode, Lucida Grande, sans-serif Lucida Sans Unicode, Lucida Grande, sans-serif
Palatino Linotype, Book Antiqua3, Palatino6, serif Palatino Linotype, Book Antiqua3, Palatino6, serif
Tahoma, Geneva, sans-serif Tahoma, Geneva, sans-serif
Times New Roman, Times, serif Times New Roman, Times, serif
Trebuchet MS1, Helvetica, sans-serif Trebuchet MS1, Helvetica, sans-serif
Verdana, Verdana, Geneva, sans-serif Verdana, Verdana, Geneva, sans-serif
Symbol, Symbol (Symbol2, Symbol2) Symbol, Symbol (Symbol2, Symbol2)
Webdings, Webdings (Webdings2, Webdings2) Webdings, Webdings (Webdings2, Webdings2)
Wingdings, Zapf Dingbats (Wingdings2Zapf Dingbats2) Wingdings, Zapf Dingbats (Wingdings2Zapf Dingbats2)
MS Sans Serif4, Geneva, sans-serif MS Sans Serif4, Geneva, sans-serif
MS Serif4, New York6, serif MS Serif4, New York6, serif

İyi Çalışmalar Dilerim

Kaynak: http://www.pepfx.net/webmasters/default_fonts.php http://www.ampsoft.net/webdesign-l/WindowsMacFonts.html

Yazı kategorisi: Web | » yorum bırak;

System.Web.AspNetHostingPermission when Accessing Network or Intranet Projects using Visual Studio 2005

Yazan: vardars 09 Jun 2009

I rebuilt one of my development machines recently and attempted to access a project that I had out on a network share. I continually received project messages about the project not being trusted. I remembered that I had to change something but couldn’t remember what it was until I found an old note I left in Outlook. The message I would receive in Visual Studio 2005 was: ASP.NET runtime error: Request for the permission of type ‘System.Web.AspNetHostingPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089′ failed.

To resolve this issue, you must change your development machine .net security configuration since you are accessing items across the network. In the event that you need this ability at runtime, you must change the trust level in your config file to full. However, since this is only in development, I can change my local PC’s security by going to Start > Control Panel > Administrative Tools > Microsoft .NET Framework 2.0 Configuration. After it fully loads (sometimes takes a bit), fully expand My Computer in the navigation tree and click Runtime Security Policy. In the right hand pane, choose Adjust Zone Security. Leave the default option (Make changes to this computer) and hit next. Choose Local Intranet and change the trust level to Full Trust. Then choose next and then finish. Restart Visual Studio 2005 and you should be all set.

Note: If you can’t see “Microsoft .NET Framework 2.0 Configuration” in Control Panel, Download and Install “Microsoft .Net FrameWork 2.0 SDK”.

Referans: http://weblogs.asp.net/jgaylord/archive/2007/02/13/system-web-aspnethostingpermission-when-accessing-network-or-intranet-projects-using-visual-studio-2005.aspx

Yazı kategorisi: Web | » yorum bırak;