Hi,
Thanks for the reply!
The code looks something like this!
Thanks
Private rowID As Integer = Request.QueryString(ID)
Private Function GetDocument() As String
Dim ds As DataSet = GetDataSet(("SELECT * FROM tblPageContent WHERE
pageID=" + rowID.ToString()))
Dim table As DataTable = ds.Tables(0)
Dim row As DataRow = table.Rows(0)
Dim doc As String = row("content").ToString()
Return doc
End Function 'GetDocument
Private Sub UpdateDocument(ByVal doc As String)
Dim strSQL As String = ""
strSQL += "UPDATE tblPageContent SET content='"
strSQL += (doc.Replace(Chr(39), Chr(39) + Chr(39)))
strSQL += "' WHERE pageID=" + rowID.ToString()
RunQuery((strSQL))
End Sub 'UpdateDocument
"Daniel Carlsson" wrote:
The error is not the assigning, its that you cant access request in that
context.
You might get more help if you tell us where you have that line of code.
/Dan
"Tim::.." <myatix_at_hotmail.com> wrote in message
news:7A**********************************@microsof t.com... Can someone please tell me why this doesn't work!
Error:
Request is not available in this context
Private rowID As Integer = Request.QueryString(ID)
I need to have the variable rowID accessable by a number of other
functions
and subs but when I do the above I get the following error!
However if I do
Private rowID As Integer = "1"
It works fine!
Can someone please help!
Thanks