Click here to Skip to main content
15,903,388 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Is there a way to create one parametrized web form and than include it on many pages. Form will be 70% same on all the pages. I don’t think it is smart approach to create separate form for each page. Anyone had a similar problem ?
Posted
Comments
Sergey Alexandrovich Kryukov 16-Apr-13 15:54pm    
You are right, but what's the problem? This is what ASP.NET is designed for. The page content is always generated dynamically. The code behind will vary the variable part of content. Everything else depends on what exactly do you want to vary.
—SA

You are right. See
http://msdn.microsoft.com/en-us/library/aa302342.aspx[^]
and
User controls in ASP .NET[^]
If you have more questions feel free to ask when you implement control.
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 16-Apr-13 16:34pm    
Sure, a 5. (I'm not sure that OP, who by some reason thinks it's something special, will get it. Then you will have to answer follow-up question... :-)
—SA
asp.net user control is most suitable to this scenario, kindly refer Designing User controls in ASP.Net
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900