![]() ![]() Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.LoadĬreatePage("Title goes here", "Hello world! This is a HTML file Created from Code Behind. fs (0) Left (fs (0), HeadTagPos) 'add the beginning new meta tag rest of the file to rebuild the file. fs (1) Mid (fs (0), HeadTagPos 1) 'read data from the beginning of the file up to and including the head tag. ObjReader = New IO.StreamWriter(FullPath) 'read data from after the head tag to the end of the file. Public Function SaveTextToFile(ByVal strData As String, ByVal FullPath As String, Optional ByVal ErrInfo As String = "") As Boolean SaveTextToFile(strFile, Server.MapPath(".")
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
December 2022
Categories |