Is there a way to specify CSS only if the browser is IE?
You can examine the Request.UserAgent to check if the browser was IE, define a custom HtmlGenericControl type representing your stylesheet link and set the href property on it depending on if the browser was IE. <LINK rel=stylesheet runat=’server’ id=’lnkStyle’> Where LINK is a HtmlGenericControl. You could then do something like this: VB.NET lnkStyle.Attributes(‘href’) = ‘ie/styles.css’ C# lnkStyle.Attributes[‘href’] = ‘ie/styles.css’ ;
How to create Custom Application Settings in the web.config
In the web.config file add a key-value pair as follows: <configuration> <appSettings> <add key=’PageSize’ value=’10’> </add> </appSettings> </configuration> Then you can access the settings as follows in code: VB.NET Response.Write (ConfigurationSettings.AppSettings(‘PageSize’)) C# Response.Write (ConfigurationSettings.AppSettings[‘PageSize’] );
How to do text encryption and decryption
Here are some interesting articles that talk about encryption and decryption: Encrypting Cookie Data with ASP.NET Using MD5 to Encrypt Passwords in a Database String Encryption With Visual Basic .NET
How can I trigger a submit on my form when the enter key is pressed
Add this to the body element: <body MS_POSITIONING=’GridLayout’ onkeypress=’if(window.event.keyCode==13){ document.Form1.submit();}’> … </body> Also check out Andy Smith’s DefaultButton Control which triggers submit selectively on one of many buttons based on the context.
In ASP.NET is there a control similar to Combobox in Windows forms
Check out Andy Smith’s ComboBox Control Also an useful article by Khoi ComboBox WebControl