Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / Visual J# / May 2004

Tip: Looking for answers? Try searching our database.

Error: 'System.Web.HttpRequest.QueryString' is a 'property' but is used like a 'method'

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jitesh Chourasia - 14 May 2004 09:11 GMT
Hi
Error: 'System.Web.HttpRequest.QueryString' is a 'property' but is used like a 'method
How can it be rectified

Thanks
Jitesh
Lars-Inge T?nnessen - 14 May 2004 15:30 GMT
Please post your code:

This works for me.

System.Web.HttpRequest Request =
System.Web.HttpContext.get_Current().get_Request();
System.Collections.Specialized.NameValueCollection val =
Request.get_QueryString();

Regards,
Lars-Inge T?nnessen
Jitesh Chourasia - 17 May 2004 07:51 GMT
Can you suggest something on the basis of the following code?

using System;
using System.Web;
using System.Web.UI;

public class Page1: Page
{
    private void Page_Load(Object sender, EventArgs e)
    {
// <Snippet1>
        Response.Write("Hello " + Server.HtmlEncode(Request.QueryString("UserName")) + "<br>");
   
// </Snippet1>
    }
}

   
    ----- Lars-Inge Tønnessen wrote: -----
   
   
    Please post your code:
   
    This works for me.
   
    System.Web.HttpRequest Request =
    System.Web.HttpContext.get_Current().get_Request();
    System.Collections.Specialized.NameValueCollection val =
    Request.get_QueryString();
   
   
    Regards,
    Lars-Inge Tønnessen
Lars-Inge T?nnessen - 17 May 2004 13:43 GMT
Request.get_QueryString().get_Item("UserName")

Regards,
Lars-Inge T?nnessen
Lars-Inge T?nnessen - 17 May 2004 13:49 GMT
Do you use J# or C# (this is the J#  newsgroup) ?

C#:
Request.QueryString["UserName"]

Regards,
Lars-Inge T?nnessen

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.