AboutSrini Nagarajan Expertise I can answer any kind of questions in ASP.NET, C#, VB.NET, SharePoint 2007, ASP, Coldfusion, Powerbuilder 7.00 / 8.00, JAVA servlets, MS SQL 2000 / MSSQL7, Sybase
Experience Contact me if you need any custom development on ASP.NET, ASP, SharePoint 2007, Coldfusion, Powerbuilder.
Expert: Srini Nagarajan Date: 8/15/2005 Subject: Include File, Set Focus In ASP.NET
Question Hi,
I am basically a VB6 programmer since last 5 years. I did some study on classic asp for a month only. Now I want to move on to asp.net instead of classic asp. I have some doubts. Please help.
1) In asp.net how do we include file, just as it is done in classic asp? I want to include 2 files in all my pages (Header & Footer) so that when ever there is a change in the header of footer, I need not change it in all pages.
2) I have many textboxes with a few buttons on a web form. When I click on "Enter" key on one textbox, the cursor should be focused on to the second textbox. Note : It should not post the page and scripting should be on the client side. Since I do not have knowledge of javascript, please send me the code to do this in vbscript.
3) I have found msdn help which comes with Visual Studio.Net very confusing. They do not provide examples. Please tell me few good sites where I can find many examples. I am basically interested in developing database softwares for the web (like Inventory management, Financial Accounting, etc. I have already done this in VB6)
Answer Hi
Sorry for the delay...
1. You need to create User controls and register those in your asp.net pages and call it where ever you need. Check this link gives you step by step instruction how to create custom user control and call in any page. http://www.15seconds.com/issue/020319.htm
2. I saw somewhere a javascript does that, If i find any i'll pass it to you.
3. goto Learnasp.com you will get lot of tutorials and sample codes.