Karim
|
Posted: 04/26/2005, 5:55 PM |
|
Can anyone help?? I've been trying to use a label and retrive the default value for that label using ASP.NET.
When I compile, I get the following error below, what am I doing wrong.
TIA
Quote :
\WINNT\Microsoft.NET\Framework\v1.0.3705\vbc /rootnamespace:pro2005 /t:library /out:bin\pro2005.dll /imports:Microsoft.VisualBasic,System,System.Web,System.Xml,System.Data,System.Drawing /r:Microsoft.VisualBasic.dll,System.dll,System.Web.dll,System.Xml.dll,System.Data.dll,System.Drawing.dll /recurse:*.vb
Microsoft (R) Visual Basic .NET Compiler version 7.00.9466
for Microsoft (R) .NET Framework version 1.00.3705.288
Copyright (C) Microsoft Corporation 1987-2001. All rights reserved.
DataProvider.vb(78) : error BC30451: Name 'Request' is not declared.
Public id As TextField = New TextField("", Request.QueryString("id"))
~~~~~~~
DataProvider.vb(78) : error BC30451: Name 'request' is not declared.
Public id As TextField = New TextField("", request("id"))
~~~~~~~
DataProvider.vb(637) : error BC30451: Name 'request' is not declared.
Public id As TextField = New TextField("", request("id"))
|
|
|
Stan
|
Posted: 04/26/2005, 11:39 PM |
|
Karim
You should use following syntax for the default value
System.Web.HttpContext.Current.Request.QueryString("id")
Stan
|
|
|
Karim
|
Posted: 04/27/2005, 6:12 AM |
|
Thanks Stan, it worked.
|
|
|
|