hi all,
i am running a ASP.Net 2.0 application.
in one of the pages i have a text box which is set as PASSWORD mode.
when the page is submitted or transfered , am not able to get the contents
of this textbox which is in Password mode.
do we need to any more apart from setting to password mode to get the value
present in the text box..?
do we need to do anything in specific with the viewstates if there is
security with ASP.Net Password text boxes?
Please let me know
Thanks
Senthil 6 2419
A password box acts as normal, are you referring to the fact that the box
isn't pre-populated after a postback? If so then add a VALUE attribute to
it with the value of txtYourPassword Box.Text
"SenthilVel " <se************ ******@misyshea lthcare.comwrot e in message
news:%2******** ********@TK2MSF TNGP04.phx.gbl. ..
hi all,
i am running a ASP.Net 2.0 application.
in one of the pages i have a text box which is set as PASSWORD mode.
when the page is submitted or transfered , am not able to get the contents
of this textbox which is in Password mode.
do we need to any more apart from setting to password mode to get the
value present in the text box..?
do we need to do anything in specific with the viewstates if there is
security with ASP.Net Password text boxes?
Please let me know
Thanks
Senthil
Is your password textbox created programatically ?
Check this.
As Aidy said, this can be about PostBack problems. For example in your
Page_Load code
protected void Page_Load(objec t sender, EventArgs e)
{
// .. some other c# codes
txtPassword.Tex t = "";
// .. some other c# codes
}
When postback the current value will be lost, so you have to control it like
protected void Page_Load(objec t sender, EventArgs e)
{
// .. some other c# codes
if(!Page.IsPost Back)
txtPassword.Tex t = "";
// .. some other c# codes
}
"SenthilVel " <se************ ******@misyshea lthcare.com>, iletisinde şunu
yazdı, news:%2******** ********@TK2MSF TNGP04.phx.gbl. ..
hi all,
i am running a ASP.Net 2.0 application.
in one of the pages i have a text box which is set as PASSWORD mode.
when the page is submitted or transfered , am not able to get the contents
of this textbox which is in Password mode.
do we need to any more apart from setting to password mode to get the
value present in the text box..?
do we need to do anything in specific with the viewstates if there is
security with ASP.Net Password text boxes?
Please let me know
Thanks
Senthil
hi
thanks for the info ...
question:
to get the value of the password textbox , do we set the value in the
Viewstate ? and then assign to the Value Attribute ?
Please let me know step by step ..
,,,
Senthil
"Bahadır ARSLAN" <ba************ @netron.com.trw rote in message
news:F0******** *************** ***********@mic rosoft.com...
Is your password textbox created programatically ?
Check this.
As Aidy said, this can be about PostBack problems. For example in your
Page_Load code
protected void Page_Load(objec t sender, EventArgs e)
{
// .. some other c# codes
txtPassword.Tex t = "";
// .. some other c# codes
}
When postback the current value will be lost, so you have to control it
like
protected void Page_Load(objec t sender, EventArgs e)
{
// .. some other c# codes
if(!Page.IsPost Back)
txtPassword.Tex t = "";
// .. some other c# codes
}
"SenthilVel " <se************ ******@misyshea lthcare.com>, iletisinde şunu
yazdı, news:%2******** ********@TK2MSF TNGP04.phx.gbl. ..
>hi all, i am running a ASP.Net 2.0 application. in one of the pages i have a text box which is set as PASSWORD mode. when the page is submitted or transfered , am not able to get the contents of this textbox which is in Password mode.
do we need to any more apart from setting to password mode to get the value present in the text box..?
do we need to do anything in specific with the viewstates if there is security with ASP.Net Password text boxes?
Please let me know
Thanks Senthil
in one of the blogs i saw a solution like :
setting txtbox.attribut es("value") = txtbox.text
this was added in the preresender event of the text box...
Question: Is this a limitation with the textbox that we need to this step
maunally ?
is this a security feature ?
,,,
Senthil
"SenthilVel " <se************ ******@misyshea lthcare.comwrot e in message
news:Ou******** ******@TK2MSFTN GP06.phx.gbl...
hi
thanks for the info ...
question:
to get the value of the password textbox , do we set the value in the
Viewstate ? and then assign to the Value Attribute ?
Please let me know step by step ..
,,,
Senthil
"Bahadır ARSLAN" <ba************ @netron.com.trw rote in message
news:F0******** *************** ***********@mic rosoft.com...
>Is your password textbox created programatically ? Check this.
As Aidy said, this can be about PostBack problems. For example in your Page_Load code
protected void Page_Load(objec t sender, EventArgs e) { // .. some other c# codes txtPassword.Te xt = ""; // .. some other c# codes } When postback the current value will be lost, so you have to control it like protected void Page_Load(objec t sender, EventArgs e) { // .. some other c# codes if(!Page.IsPos tBack) txtPassword.Tex t = ""; // .. some other c# codes }
"SenthilVel " <se************ ******@misyshea lthcare.com>, iletisinde şunu yazdı, news:%2******** ********@TK2MSF TNGP04.phx.gbl. ..
>>hi all, i am running a ASP.Net 2.0 application. in one of the pages i have a text box which is set as PASSWORD mode. when the page is submitted or transfered , am not able to get the contents of this textbox which is in Password mode.
do we need to any more apart from setting to password mode to get the value present in the text box..?
do we need to do anything in specific with the viewstates if there is security with ASP.Net Password text boxes?
Please let me know
Thanks Senthil
Hi,
No we don't need to set viewstate.
If you have a textbox like this
<asp:TextBox id="txtPass" runat="server" TextMode="Passw ord" />
you can get its value by
txtPass.Text property.
You don't need to anything more..
"SenthilVel " <se************ ******@misyshea lthcare.com>, iletisinde şunu
yazdı, news:Ou******** ******@TK2MSFTN GP06.phx.gbl...
hi
thanks for the info ...
question:
to get the value of the password textbox , do we set the value in the
Viewstate ? and then assign to the Value Attribute ?
Please let me know step by step ..
,,,
Senthil
"Bahadır ARSLAN" <ba************ @netron.com.trw rote in message
news:F0******** *************** ***********@mic rosoft.com...
>Is your password textbox created programatically ? Check this.
As Aidy said, this can be about PostBack problems. For example in your Page_Load code
protected void Page_Load(objec t sender, EventArgs e) { // .. some other c# codes txtPassword.Te xt = ""; // .. some other c# codes } When postback the current value will be lost, so you have to control it like protected void Page_Load(objec t sender, EventArgs e) { // .. some other c# codes if(!Page.IsPos tBack) txtPassword.Tex t = ""; // .. some other c# codes }
"SenthilVel " <se************ ******@misyshea lthcare.com>, iletisinde şunu yazdı, news:%2******** ********@TK2MSF TNGP04.phx.gbl. ..
>>hi all, i am running a ASP.Net 2.0 application. in one of the pages i have a text box which is set as PASSWORD mode. when the page is submitted or transfered , am not able to get the contents of this textbox which is in Password mode.
do we need to any more apart from setting to password mode to get the value present in the text box..?
do we need to do anything in specific with the viewstates if there is security with ASP.Net Password text boxes?
Please let me know
Thanks Senthil
hi,
i did the same way as u were saying ..just have the <asp:TextBox
id="txtPass" runat="server" TextMode="Passw ord" />
But once a post back is happeining or when the value in the text boz is
accessed in a button click event , still the password is null !!
am not able to get the password value !!
do we need to do something like this ?
ViewState["Pwd"]=TextBox1.Text
TextBox1.Attrib utes.Add("value ", ViewState["Pwd"].ToString ()) ;
,,,
Senthil
"Bahadır ARSLAN" <ba************ @netron.com.trw rote in message
news:D6******** *************** ***********@mic rosoft.com...
Hi,
No we don't need to set viewstate.
If you have a textbox like this
<asp:TextBox id="txtPass" runat="server" TextMode="Passw ord" />
you can get its value by
txtPass.Text property.
You don't need to anything more..
"SenthilVel " <se************ ******@misyshea lthcare.com>, iletisinde şunu
yazdı, news:Ou******** ******@TK2MSFTN GP06.phx.gbl...
>hi thanks for the info ... question: to get the value of the password textbox , do we set the value in the Viewstate ? and then assign to the Value Attribute ?
Please let me know step by step ..
,,, Senthil
"Bahadır ARSLAN" <ba************ @netron.com.trw rote in message news:F0******* *************** ************@mi crosoft.com...
>>Is your password textbox created programatically ? Check this.
As Aidy said, this can be about PostBack problems. For example in your Page_Load code
protected void Page_Load(objec t sender, EventArgs e) { // .. some other c# codes txtPassword.T ext = ""; // .. some other c# codes } When postback the current value will be lost, so you have to control it like protected void Page_Load(objec t sender, EventArgs e) { // .. some other c# codes if(!Page.IsPo stBack) txtPassword.Tex t = ""; // .. some other c# codes }
"SenthilVel " <se************ ******@misyshea lthcare.com>, iletisinde şunu yazdı, news:%2******** ********@TK2MSF TNGP04.phx.gbl. .. hi all, i am running a ASP.Net 2.0 application. in one of the pages i have a text box which is set as PASSWORD mode. when the page is submitted or transfered , am not able to get the contents of this textbox which is in Password mode.
do we need to any more apart from setting to password mode to get the value present in the text box..?
do we need to do anything in specific with the viewstates if there is security with ASP.Net Password text boxes?
Please let me know
Thanks Senthil This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: baustin75 |
last post by:
Posted: Mon Oct 03, 2005 1:41 pm Post subject: cannot mail() in ie
only when debugging in php designer 2005
--------------------------------------------------------------------------------
Hello,
I have a very simple problem but cannot seem to figure it out. I have a
very simple php script that sends a test email to myself. When I debug
it in PHP designer, it works with no problems, I get the test email. If
|
by: Kris van der Mast |
last post by:
Hi,
I've created a little site for my sports club. In the root folder there are
pages that are viewable by every anonymous user but at a certain subfolder
my administration pages should be protected by forms authentication.
When I create forms authentication at root level it works but when I move my
code up to the subfolder I get this error:
Server Error in '/TestProjects/FormsAuthenticationTestingArea' Application.
|
by: Microsoft News |
last post by:
I have a web server sitting on computer 1, (QA1). Out on the network on my
main server I have a folder with a zip file in it. All I want is for the
web services that are on the web server to pick up the Zip file and send it
when the web services are called.
However I am getting the following error:
-- Message: System.Web.Services.Protocols.SoapException: Server was unable
to process request. ---> System.ApplicationException:...
|
by: Aaron |
last post by:
Complete code follows.
I am new to .NET programming (and programming in general) and I am having a
difficult time understanding how to fill a variable in one sub, and then
access it from another. I have tried declaring them as shared, public,
friend, etc and I always get an error stating that something is not valid
on a local variable declaration.
For example, in the following code for Sub DataGrid_Select, I have
CurrentID and...
|
by: gunimpi |
last post by:
http://www.vbforums.com/showthread.php?p=2745431#post2745431
********************************************************
VB6 OR VBA & Webbrowser DOM Tiny $50 Mini Project Programmer help
wanted
********************************************************
For this teeny job, please refer to:
http://feeds.reddit.com/feed/8fu/?o=25
| |
by: Brad Isaacs |
last post by:
I am working with ASP.NET 2.0 and using an SQL Server 2000 database.
I am using Visual Studio 2005 and developing on my Local machine. I am
working with Login controls ASP.Configuration, I wanted to move my work
and needed to place it on the server.
Using VS 2005 , went to BUILD
-Publish Web Site
Checked the box for :: Alow this precompiled site to be updatable.
|
by: j1mb0jay |
last post by:
I have had to create a simple string encryption program for coursework, I
have completed the task and now have to do a write up on how it could be
improved at a later date. If you could look through the code and point me in
the correct direction one would be very grateful.
Example Input : j1mb0jay
Example Output 1 :
rZHKZbYZWn/4UgL9mAjN2DUz7X/UpcpRxXM9SO1QkvkOe5nOPEKnZldpsB7uHUNZ
Example Output 2 :...
|
by: priyajohal |
last post by:
#include<fstream.h>
#include<process.h>
#include<stdlib.h>
#include<conio.h>
#include<string.h>
#include<dos.h>
#include<ctype.h>
#include<stdio.h>
void setup()
void help();
|
by: Apostle |
last post by:
Hi all, after thinking for sometimes, I thought it will be great opportunity to learn if I will start from scratch and build my own register/login system. Here is the thread that I will be posting the progress and I hope you guys will help me.
The code below is what I have so far. Just put two scripts in the same directory and that is! I hope you will help me
Thanks!
class.php
<?php
//php login sytem
class LoginRegister{
function...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
| |
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |