get name of form / html page
-
Hi, How can I get the name of a html page/form which places a request to aspx page? eg: I use a.htm , b.htm and form .action both of both refer to webform.aspx I want to know from which page the request has come before accessing form parameters. How can I do that? Thanks Priya
-
Hi, How can I get the name of a html page/form which places a request to aspx page? eg: I use a.htm , b.htm and form .action both of both refer to webform.aspx I want to know from which page the request has come before accessing form parameters. How can I do that? Thanks Priya
Using QueryString. For example if you have links to webform.aspx on a.htm and b.htm then modify the link's href attribute by including information in the URL about the source. For example: Link on a.html will Web Form Similarly, Link on b.html will Web Form Then write some code on webform.aspx code behind to take appropriate action. For example: switch(Requeset.QueryString["Source"]) { case "a.htm": // some action break; ... ... } Hope it helps.