Welcome Guest ( Log In | Register )

Outline · [ Standard ] · Linear+

 asp.net problem, passing values between pages

views
     
TSayiesz
post Jan 24 2006, 05:25 PM, updated 20y ago

Selamat Hari Raya
*******
Senior Member
2,778 posts

Joined: Jan 2003
From: about:robots
i have to pass certain values between pages.

using page.previouspage properties, i can return text in the textbox

but the problem is i cannot return text in password box, since it's in asterisk. can anyone help me?


this code is for current page
CODE

Public ReadOnly Property CurrentName() As String
   Get
       Return uNameFrmKeypad.Text
   End Get
End Property

Public ReadOnly Property CurrentPass() As String
   Get
       Return passWdFrmKeypad.Text
   End Get
End Property


this code is target page
CODE

If not page.previouspage is nothing then
  if not previouspage.currentname is nothing then
   key.Text = PreviousPage.CurrentName
  end if
  if not PreviousPage.CurrentPass is nothing then
   password.text = PreviousPage.CurrentPass
  end if
 end if


passWdFrmKeypad is textbox with textmode=password
shinchan^^
post Jan 24 2006, 06:00 PM

K66
*********
All Stars
21,256 posts

Joined: Jan 2003
From: Pekopon


pass by the uRl then and request it back

name = Request("name")
alvinz_c
post Jan 24 2006, 06:49 PM

Casual
***
Junior Member
407 posts

Joined: Oct 2004
Hi, in security concern, it is not a good practice to pre-filled the password field in the next page, so do passing the value through URL

Anyway, you can try Value attribute instead of Text.


Hope this helps...

 

Change to:
| Lo-Fi Version
0.0151sec    0.44    5 queries    GZIP Disabled
Time is now: 23rd December 2025 - 04:32 AM