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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. ASP.NET
  4. edit the action attribute in the html form element

edit the action attribute in the html form element

Scheduled Pinned Locked Moved ASP.NET
htmlquestion
3 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.
  • A Offline
    A Offline
    Ahmed Galal
    wrote on last edited by
    #1

    why everytime i try to edit the action attribute of the form element in my aspx page and then open the page in the browser and view source, i found it replaced with current page name and i don't want that, i'm trying to do this coz i want to post this form to another url any suggesstions ?

    G 1 Reply Last reply
    0
    • A Ahmed Galal

      why everytime i try to edit the action attribute of the form element in my aspx page and then open the page in the browser and view source, i found it replaced with current page name and i don't want that, i'm trying to do this coz i want to post this form to another url any suggesstions ?

      G Offline
      G Offline
      Guffa
      wrote on last edited by
      #2

      You can't change the action of a server form, and you can't post a server form to another page (until asp.net 2.0 comes). Use a form without runat="server" to post it to a different page. --- b { font-weight: normal; }

      A 1 Reply Last reply
      0
      • G Guffa

        You can't change the action of a server form, and you can't post a server form to another page (until asp.net 2.0 comes). Use a form without runat="server" to post it to a different page. --- b { font-weight: normal; }

        A Offline
        A Offline
        Ahmed Galal
        wrote on last edited by
        #3

        yea you are right, after thinking about it, i was talking to myself how the hell the form gonna post back if i changed the action of the form and i don't know how asp.net 2.0 gonna handle it so am waiting to see. thanks for ur help.

        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