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. writing in texbox thru coding is a problem

writing in texbox thru coding is a problem

Scheduled Pinned Locked Moved ASP.NET
helpquestion
8 Posts 6 Posters 1 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.
  • H Offline
    H Offline
    Hemant Garg
    wrote on last edited by
    #1

    Hello To Everyone, I used as follow: dim pass as string pass="Hemant" TextBox1.Text = pass i'm wrting the code Page_load... it is working for label but not textbox but nothing is coming in textBox.... What is problem.? Suggest me what eRRor is ther.. Thank You.

    R N S V S 5 Replies Last reply
    0
    • H Hemant Garg

      Hello To Everyone, I used as follow: dim pass as string pass="Hemant" TextBox1.Text = pass i'm wrting the code Page_load... it is working for label but not textbox but nothing is coming in textBox.... What is problem.? Suggest me what eRRor is ther.. Thank You.

      R Offline
      R Offline
      RepliCrux
      wrote on last edited by
      #2

      did you do the following: Page_Load If NOT IsPostBack Then dim pass as string pass="Hemant" TextBox1.Text = pass EndIf End Sub

      H 1 Reply Last reply
      0
      • R RepliCrux

        did you do the following: Page_Load If NOT IsPostBack Then dim pass as string pass="Hemant" TextBox1.Text = pass EndIf End Sub

        H Offline
        H Offline
        Hemant Garg
        wrote on last edited by
        #3

        Yes i did the following but still not working

        R 1 Reply Last reply
        0
        • H Hemant Garg

          Hello To Everyone, I used as follow: dim pass as string pass="Hemant" TextBox1.Text = pass i'm wrting the code Page_load... it is working for label but not textbox but nothing is coming in textBox.... What is problem.? Suggest me what eRRor is ther.. Thank You.

          N Offline
          N Offline
          N a v a n e e t h
          wrote on last edited by
          #4

          Debug step by step, you will come to know the problem

          1 Reply Last reply
          0
          • H Hemant Garg

            Hello To Everyone, I used as follow: dim pass as string pass="Hemant" TextBox1.Text = pass i'm wrting the code Page_load... it is working for label but not textbox but nothing is coming in textBox.... What is problem.? Suggest me what eRRor is ther.. Thank You.

            S Offline
            S Offline
            Sathesh Sakthivel
            wrote on last edited by
            #5

            Put the break point and check so that you will know where the error is.

            Regards, Satips.:rose:

            1 Reply Last reply
            0
            • H Hemant Garg

              Yes i did the following but still not working

              R Offline
              R Offline
              RepliCrux
              wrote on last edited by
              #6

              It should work even without "Not IsPostback", Create a new application. May be there is problem in your current app.

              1 Reply Last reply
              0
              • H Hemant Garg

                Hello To Everyone, I used as follow: dim pass as string pass="Hemant" TextBox1.Text = pass i'm wrting the code Page_load... it is working for label but not textbox but nothing is coming in textBox.... What is problem.? Suggest me what eRRor is ther.. Thank You.

                V Offline
                V Offline
                Venkatesh Mookkan
                wrote on last edited by
                #7

                It seems, you have set the TextMode property of the TextBox to Password. You cannot assign the Text for Password TextBox. If you do, it will be cleared automatically.

                Regards, Venkatesh Mookkan. Software Engineer, India My: Website | Yahoo Group | Blog Spot

                1 Reply Last reply
                0
                • H Hemant Garg

                  Hello To Everyone, I used as follow: dim pass as string pass="Hemant" TextBox1.Text = pass i'm wrting the code Page_load... it is working for label but not textbox but nothing is coming in textBox.... What is problem.? Suggest me what eRRor is ther.. Thank You.

                  S Offline
                  S Offline
                  Sylvester george
                  wrote on last edited by
                  #8

                  Is TextBox1.TextMode Password?

                  Regards, Sylvester G sylvester_g_m@yahoo.com

                  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