Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. get name of form / html page

get name of form / html page

Scheduled Pinned Locked Moved ASP.NET
questionhtml
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    Dpriya
    wrote on last edited by
    #1

    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

    H 1 Reply Last reply
    0
    • D Dpriya

      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

      H Offline
      H Offline
      hatim_ali
      wrote on last edited by
      #2

      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.

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups