Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Ques. on include file 1

Status
Not open for further replies.

karma12

Programmer
Oct 28, 2005
3
US
How do you call a include file in .aspx page?

thanks
 
You can look on MSDN on how to do this, although I don't recommend it, that is classic ASP programming. Use WebUserControls instead.

Jim
 
I do not want to use the ASP code ie #include ...
Can you please be more specific on how to use the WebUserControl. Here is what I need to do:

I have to build 3 pages where first 8 fields of the form are same. So I want to store it in one file and use it on 3 pages. Is that possible ? How ?

Thanks a lot.
 
Yes. Create a WebUserControl. Place your conrols on the user control and write any code you need. Save that WebUserControl. It will have a .acsx extention. Then create the page where you want to use this control. You then drag and drop this WebUserConrol onto your page. You will need to use CSS or a table to position it where you want it to go.

Jim
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top