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
Why do some of the events on my page fire twice
This is probably because you explicitly subscribed to the events in code and also specified the AutoEventWireUp of Page to true (it’s true by default). If so, the Page_Load, for example, will be fired once for your event subscription and once because the Page subscribed it for you (by looking for a specific event handler method signature). To avoid this turn off AutoEventWireUp or remove your subscription code.