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. Master Page

Master Page

Scheduled Pinned Locked Moved ASP.NET
helptutorialquestionannouncement
3 Posts 3 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.
  • M Offline
    M Offline
    Munteanu Ciprian
    wrote on last edited by
    #1

    Hi! I have the next problem: I have a master page which has a textbox and a Web Content Form which is built from my master page. In the Web Content Form I have a button and I when I press it, I want the text from the textbox to update. For example when I view in browser my Web content form when I press my button, the text from the textbox should look like "You've press a button". Can anyone help me? Thanks!

    L D 2 Replies Last reply
    0
    • M Munteanu Ciprian

      Hi! I have the next problem: I have a master page which has a textbox and a Web Content Form which is built from my master page. In the Web Content Form I have a button and I when I press it, I want the text from the textbox to update. For example when I view in browser my Web content form when I press my button, the text from the textbox should look like "You've press a button". Can anyone help me? Thanks!

      L Offline
      L Offline
      lalit14
      wrote on last edited by
      #2
      1. Double Click on ur button, u will get .cs file 2) after that write below code TextBox1.Text = "U Have pressed a button"; I Hope it will work for u Regards Lalit Manik
      1 Reply Last reply
      0
      • M Munteanu Ciprian

        Hi! I have the next problem: I have a master page which has a textbox and a Web Content Form which is built from my master page. In the Web Content Form I have a button and I when I press it, I want the text from the textbox to update. For example when I view in browser my Web content form when I press my button, the text from the textbox should look like "You've press a button". Can anyone help me? Thanks!

        D Offline
        D Offline
        Dinesh Mani
        wrote on last edited by
        #3

        You can access the textbox by accessing the master page object. A simple Google search for "access master page controls from content page"[^] would get you these Introducing ASP.NET 2.0 Master Pages (cont'd)[^] Access ASP.NET Master Page controls from Content Page[^]

        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