This is a migrated thread and some comments may be shown as answers.

ReadFile Error

1 Answer 47 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Chad Canterbury
Top achievements
Rank 1
Chad Canterbury asked on 18 Jan 2011, 07:16 PM
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.


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.

1 Answer, 1 is accepted

Sort by
0
Chad Canterbury
Top achievements
Rank 1
answered on 18 Jan 2011, 07:46 PM
Missing link to ReadFile Method...
Tags
Editor
Asked by
Chad Canterbury
Top achievements
Rank 1
Answers by
Chad Canterbury
Top achievements
Rank 1
Share this question
or