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. Clearing Text in a Label Control Before Redericting The Page

Clearing Text in a Label Control Before Redericting The Page

Scheduled Pinned Locked Moved ASP.NET
csharp
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.
  • M Offline
    M Offline
    Mahesh J
    wrote on last edited by
    #1

    Hi.. I want to clear the Text of a label Control Before Redericting the page to another page.How should i do it in .Net 2003 I am clearing the Text of the Label in a Button Click event and then I am Redericting the Page But it is not working. I am Expecting a reply Thanks Mahesh.J

    C 1 Reply Last reply
    0
    • M Mahesh J

      Hi.. I want to clear the Text of a label Control Before Redericting the page to another page.How should i do it in .Net 2003 I am clearing the Text of the Label in a Button Click event and then I am Redericting the Page But it is not working. I am Expecting a reply Thanks Mahesh.J

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      Mahesh.J wrote:

      I am Expecting a reply

      I bet you are... What do you want to do ? Your button click event will fire on the server side, and the page with the label cleared will not be rendered, because you will redirect before that can happen. Why do you need to clear it first ? It's lost anyhow.... To do this so the user sees it clear, you'd need to use javascript.

      Christian Graus - Microsoft MVP - C++ "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

      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