i have a .net 2.0 web application with 2 items. ,an aspx page and an
HTML file with a form whose action attribute.points to the aspx page.
the aspx page simply tries to print the form data. but the output
shows no data contained in the Request.Form object.
(evenutually i would want to experiment with cross domain form post,
so i can distribute form html code to affiliate sites and have my .net
site serve as the central action point. several payment processing
site do this kind of POST to completely another domain. )
Any ideas?
Thanks,
Rob.
**********************************************
htmlpage.html
-------------------------
<html>
<body>
<form action="Default.aspx" method="post">
<input id="Text1" type="text" />
<input id="Submit1" type="submit" value="submit" />
</form>
</body>
</html>
default.aspx page:
----------------------------
protected void Page_Load(object sender, EventArgs e)
{
NameValueCollection postedValues = Request.Form;
int kount = postedValues.Count;
Response.Write(kount.ToString()+"<br/>");
if(kount>0)
Response.Write(postedValues[0]);
}
**********************************************
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web
Services,.NET Remoting" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/DotNetDevelopment
You may subscribe to group Feeds using a RSS Feed Reader to stay upto date
using following url
<a href="http://feeds.feedburner.com/DotNetDevelopment">
http://feeds.feedburner.com/DotNetDevelopment</a>
-~----------~----~----~----~------~----~------~--~---