I am trying to set the content and I am getting a ReadFile error. BC30451: 'ReadFile' is not declared. It may be inaccessible due to its protection level.
On a different page, the code works. But whenever I create a new page, it will not allow me to enter the code. I dont know what is going on.
Please help.
On a different page, the code works. But whenever I create a new page, it will not allow me to enter the code. I dont know what is going on.
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
If Not Page.IsPostBack Then
Dim temp As String = Request.QueryString("temp")
Dim path As String = Server.MapPath("~") & "/Admin/Templates/Template" & temp & ".htm"
RadEditor1.Content = ReadFile(path)
End If
End Sub
Please help.