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