loadYOURSELF

loadYOURSELF

Browsing Posts in C#

select start -> run

write “cmd” and press enter

write “cd \windows\microsoft.net\framework\v2.0.50727″ may be different in your system.

write “aspnet_regiis -ga [user name]” press enter

write “aspnet_regiis -i” press enter

Buy me a beer

Unfortunately, ASP.NET renders div
tag controls as tables in non-IE browsers by default. In order for the
control to render properly in FireFox, you need to add the following
entries to your web.config or machine.config file:<browserCaps>
<case match=”^Mozilla/5\.0\s*([^)]*\))\s*(Gecko\/\d+)\s*Firefox\/


(?’version’(?’major’\d+)(?’minor’\.\d+)(?’letters’\w*)).*”>

type=Firefox/${version}
version=${version}
majorversion=${major}
minorversion=${minor}
frames=true
tables=true
cookies=true
javascript=true
javaapplets=true
ecmascriptversion=1.5
w3cdomversion=1.0
css1=true
css2=true
xml=true
tagwriter=System.Web.UI.HtmlTextWriter
<filter match=”^b” with=”${letters}”>
beta=true
</filter>
</case>
</browserCaps>
It’s a good idea in general to add these values to the machine.config file on your web server. Why? So things like asp:panel and other “div” based controls will render properly in FireFox.

StreamReader sr = new StreamReader(“database.txt”, Encoding.Default);
textBox1.Text = sr.ReadToEnd();

For turkish

readings

StreamReader sr = new StreamReader(“ornek.txt”, Encoding.GetEncoding(“windows-1254″));
textBox1.Text = sr.ReadToEnd();

Buy me a beer