I am creating one website where all pages are creating in html but dynamic pages are creating in asp.net. I have one problem in my all static html pages i want to display one user control 开发者_开发技巧in one form but pages are .html thats why pages do not support asp.net control. How can i do pls let me khnow if anybody know.
I don't think this is possible, unless you use an iframe which contains an asp.net page containing the user control.
Furthermore, if it is possible, I don't think this approach should be used. It would make more sense to convert the .htm files to .aspx files, and use rewriting to display them as .htm if this is needed.
You simply can't. Html pages don't get processed by your ASP.NET engine. You could change them into .aspx files, and include the control, preferably within the form-tag of the asp.net page.
精彩评论