CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> .NET

 Request("QueryParamter")

Print topic Send  topic

Author Message
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. :-)

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright 2003-2004 by UltraApps.com  and YesSoftware, Inc.