Registering ASP.NET on IIS after installing the .NET Framework
Sometime it may happens that you have installed asp.net framework but you have not IIS installed in the computer, you installed IIS later. In this case you need to register IIS. very simple way to do.
Go to All Programs -> Microsoft Visual Studio 2005 -> Visual Studio Tools -> Visual Studio 2005 Command Prompt and then write aspnet_regiis.exe -i
Done 🙂
Configuring Default ASP.NET Version
We face versioning problem at the time of creating virtual directory in the computer where bot .NET 1.1 and .NET 2.0 is installed. Machine will use ASP.NET 1.1 for its default settings. But browsing the pages using this default configuration results in error page. So you need to change configuration to ASP.NET 2.0.
Go to Internet Information Services Manager -> Virtual Directory Properties -> ASP.NET Tab -> ASP.NET Version. In the dropdown box, change the version to 2.0.50727.
Use StringBuilder for String Concatenation
use StringBuilder at the time concatenate strings in a loop or when performing multiple concatenations. it will improve performance beacuse it creates fewer temporary objects and adds less memory pressure.
use StringBuilder sb = new StringBuilder(); sb.Append(“a”); sb.Append(“b”);
instead of String s = “a”; s+=”b”; //this will be slower
Use ASP.NET Literal instead of ASP.NET Label
Label put texts in span which is unnecessary and create complecacy in case of CSS. So better to user Litreral , most cases you will get same result using Literal instead of Label.
Use View State carefully for pages
ASP.NET save a lot data in hidden input field inside page which increase page load time. So be careful using View State if you do not need view state in your pages disable view state of your page writing that tag at the top of the page<%@ Page EnableViewState=”false” %>
Ashraf sir u have created very fabulous blog actually
am beginner & dont know much about how to create the blog please send me some helpfull document on my websit or give some tips on your blog as reply.
Thank you very much.
Sir i want to create blog for the engg. students who wants to create paper presentation or the seminar as part of there curiculam.This blog will help them to see the new topics of new technology related to dot net & other.
So give some guideline as reply
Thank you sir.
Hi Mr. Monoj,
Thanks to ask me about you interest on blog.
I use wordpress for my blog, you can do the same thing, this is very easy to use and you need not any code change, just customize wordpress as you wish.
To make a wordpress blog account go to http://www.wordpress.com and sign up and start writing your blog post regularly.
Thanks
hey,
i can see from ur profile that u are a .net developer and since i have ran into a problem, i thought of asking u.
i have a table and textfields in asp.net and i would like the textfields to appear below each other. I have been searching on net for a while and tried a few differet things but it just doesnt seem to work, hope u can help.
/aisha
my code looks something like this:
hello aisha ,can not see your codes. Will you please copy pase again so i can try to help you.
ass salam alikom
hello brother,as i am creating the multilnguage website and i a having a task of changing the grid view columns in to multilanguage,so how to code for it,help me out plz
hello sir ,
how to inbuild database in asp.net 2.0
& make a connections string in .cs file
Hi,
Do u know how to populate the Attendee field in outlook 2003 using .net 2.0?.I have tried in different ways and can’t populate it.I can able to populate all other fields using .net
Thanks
Prabhu