read html file from asp.net
I want to read html
file and load control in ascx
file in asp.net.I search in net but unable to find any resource.Please sugg开发者_C百科est links or any solution.Thanks.
I use ASP to make HTML directly, if you have the HTML file, you may wish to save it as .aspx but use this line to call your ascx page:
<%@CodeFile="nameFile.aspx.cs" Inherits="Pages_features" %>
I always put this at the tippy top of the page. Hope this helps (and that i've got it right, because Visual Studio usually does it for me!)
精彩评论