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. passing value in the same page

passing value in the same page

Scheduled Pinned Locked Moved ASP.NET
htmlsysadminhelpquestion
4 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.
  • R Offline
    R Offline
    rico cheah
    wrote on last edited by
    #1

    HTML coding part: I have a button (asp:button), after click, i wan to show the data in the textbox. I'm quite confusing with server site and client site. Below are several ways I have tried but fail: 1. use Me.txtid.text = "abcdef" under Private Sub button_Click in page1.aspx.vb, but it fail to show "abcdef" in the textbox. 2. at Private Sub Page_Load, put in coding below: if me.ispostback then me.txtid.text = request("id") end if at Private Sub button_click, put in coding below: response.redirect ("page1.aspx?id=abcdef") What should I do? Somebody please help me... :sigh: Thank you...

    N H R 3 Replies Last reply
    0
    • R rico cheah

      HTML coding part: I have a button (asp:button), after click, i wan to show the data in the textbox. I'm quite confusing with server site and client site. Below are several ways I have tried but fail: 1. use Me.txtid.text = "abcdef" under Private Sub button_Click in page1.aspx.vb, but it fail to show "abcdef" in the textbox. 2. at Private Sub Page_Load, put in coding below: if me.ispostback then me.txtid.text = request("id") end if at Private Sub button_click, put in coding below: response.redirect ("page1.aspx?id=abcdef") What should I do? Somebody please help me... :sigh: Thank you...

      N Offline
      N Offline
      Nisha_D
      wrote on last edited by
      #2

      You can pass that is Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click Me.TextBox1.Text="Hello" End Sub only to (Server side textbox) You cannot pass to (This is client side textbox)

      1 Reply Last reply
      0
      • R rico cheah

        HTML coding part: I have a button (asp:button), after click, i wan to show the data in the textbox. I'm quite confusing with server site and client site. Below are several ways I have tried but fail: 1. use Me.txtid.text = "abcdef" under Private Sub button_Click in page1.aspx.vb, but it fail to show "abcdef" in the textbox. 2. at Private Sub Page_Load, put in coding below: if me.ispostback then me.txtid.text = request("id") end if at Private Sub button_click, put in coding below: response.redirect ("page1.aspx?id=abcdef") What should I do? Somebody please help me... :sigh: Thank you...

        H Offline
        H Offline
        Haissam
        wrote on last edited by
        #3

        you can use javascript to establish this. onClick = " document.getElementById('txtid).value = 'abcdef';" add the above statement in the HTML code of your button.

        Best Regards, Haissam Abdul Malak My Blog

        1 Reply Last reply
        0
        • R rico cheah

          HTML coding part: I have a button (asp:button), after click, i wan to show the data in the textbox. I'm quite confusing with server site and client site. Below are several ways I have tried but fail: 1. use Me.txtid.text = "abcdef" under Private Sub button_Click in page1.aspx.vb, but it fail to show "abcdef" in the textbox. 2. at Private Sub Page_Load, put in coding below: if me.ispostback then me.txtid.text = request("id") end if at Private Sub button_click, put in coding below: response.redirect ("page1.aspx?id=abcdef") What should I do? Somebody please help me... :sigh: Thank you...

          R Offline
          R Offline
          rico cheah
          wrote on last edited by
          #4

          Thanks for the reply from both of you...:-D I have the idea d.

          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