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. Change master page <body> and <form> attributes from a child page

Change master page <body> and <form> attributes from a child page

Scheduled Pinned Locked Moved ASP.NET
question
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.
  • R Offline
    R Offline
    Rafferty Uy
    wrote on last edited by
    #1

    Hi, Is there a way to change the and

    tags of the master page from a child page? I want to do the following: - Add onload, onclick and onkeypress attributes to the master - Add autocomplete, enctype and action attributes to the master - Change the master method to POST The idea is that the page will redirect to the url specified in the after the submit button is clicked. Thanks and regards,

    Rafferty

    W 1 Reply Last reply
    0
    • R Rafferty Uy

      Hi, Is there a way to change the and

      tags of the master page from a child page? I want to do the following: - Add onload, onclick and onkeypress attributes to the master - Add autocomplete, enctype and action attributes to the master - Change the master method to POST The idea is that the page will redirect to the url specified in the after the submit button is clicked. Thanks and regards,

      Rafferty

      W Offline
      W Offline
      walterhevedeich
      wrote on last edited by
      #2

      To add attributes to the body tag, refer to this[^] tip. For adding attributes to the form, you can refer to that tip as well, particularly on the part of exposing the properties. And then on your Master Page, you can access the attributes of the form by using this.[name of your form].Attributes

      Signature construction in progress. Sorry for the inconvenience.

      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