473,394 Members | 1,645 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Passing querystring data to a Web service method

3
Hi all.
I am having a bit of difficulty:
Here is what is happening:
I have an application that spits out a thankyou.aspx page and i would like to pass it the querystring values it had collected before loading the thankyou page.
This is completed.
NOw on the thankyou.aspx page i am getting the following error:

Compiler Error Message: CS0120: An object reference is required for the nonstatic field, method, or property 'System.Web.UI.Page.Request.get'
Source Error:
Line 6: <script language="C#" runat="server">
Line 7:
Line 8: public static Object to = Request.QueryString["To"];

Here is the code section it refers to:
<%@ Import Namespace="CFE_SW" %>
<%@ Import Namespace="System.Web" %>


<script language="C#" runat="server">

public static string to = Request.QueryString["To"];
public static string priority = Request.QueryString["Priority"];
public static string theDate = Request.QueryString["theDate"];
public static string edsNet = Request.QueryString["EDSNet"];
public static string name = Request.QueryString["Name"];
public static string email = Request.QueryString["Email"];
public static string purpose = Request.QueryString["Purpose"];
public static string feedback = Request.QueryString["feedback"];
public static string cid = Request.QueryString["CID"];
public static string test = APICalls.sendEmail(priority, theDate, id,name, email,to, purpose,feedback, cid);

</script>

Any and all help here is appreciated
Thanks
Aug 10 '07 #1
1 5972
Greetings, beebee

Just to make sure I'm understanding your problem correctly - you're forwarding a user to an ASP.NET page from another page or web service. The landing page reads values from the QueryString object and then plugs the values returned into another function call.

A couple of quick questions -
  • What's your forwarding statement? Are you using Server.Transfer or Response.Redirect or...?
  • Where is the forwarding statement coming from? A web service? ASP.NET page?
Aug 10 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

27
by: Oscar | last post by:
I am looking for a way to pass an ADO recordset that has been retrieved in an ASP page to another HTML-page. Is there someone who can provide me with a small sample or a link to see how this is...
2
by: Marcin | last post by:
i want to pass XML data in querystring from one to another asp page. it is about 10000 characters long, i cannot use FORM because it is already nested in one. What i do is i have IFRAME and im...
1
by: Newbie | last post by:
Is there a way to pass strings from one webform to another without using Response.Redirect( ) ? The reason is that I need the webform passing the string to close its window.
5
by: Rod | last post by:
I've written 2 ASP.NET applications (I've worked on one with a team and another by myself). In my ASP.NET pages, when saving data to a backend database I've done it by using the click event of a...
4
by: David Freeman | last post by:
Hi There! I'm just wondering if there's a way to pass parameters (as if you were passing parameters to a ASCX web control) when calling an ASPX page? e.g. MyDetailsPage.UserName = "david" ...
3
by: Nick | last post by:
I've created a user control that extracts data from a database. The VB code is all contained in a code-behind file. I'm trying to extract a value from the request.querystring but keep getting...
3
by: Paul Michaud | last post by:
Consider the following: Class A { .... } Class B:A { ....
22
by: Arne | last post by:
How do I pass a dataset to a webservices? I need to submit a shoppingcart from a pocket PC to a webservice. What is the right datatype? II have tried dataset as a datatype, but I can't get it to...
1
by: anewell | last post by:
I need to build website on my webserver which has information securely passed to it from a web site running on a client's webserver. My client has a website that has a secure login process...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.