Friday, March 16, 2012

password in TextBox is not appeared in a new asp page

Hi All,

I am typing a password into a textBox with type="password", and then
submitting it into other page where I not see it in the textBox with
type="password" .
A password value is stored in a Session or a local variable.

Session["pwd"] = PasValue.Text;
..
..
..
PasValue.Text = Session["pwd"].ToString(); - is not appeared

Why it is occured?

Thanks & Regards,
KuanThis is by design with ASP.NET you need to-do sommething like...

PasValue.Attributes("Value") = Session["pwd"].ToString();

Kindest Regards,

Ryan Healey

InstantASP Ltd - ASP.NET Collaboration & Support Tools
-------------------
sales@.instantasp.co.uk
http://www.instantasp.co.uk
-------------------

"Kuan" <temir51@.hotmail.com> wrote in message
news:O5IJWdOtDHA.2224@.TK2MSFTNGP09.phx.gbl...
> Hi All,
> I am typing a password into a textBox with type="password", and then
> submitting it into other page where I not see it in the textBox with
> type="password" .
> A password value is stored in a Session or a local variable.
> Session["pwd"] = PasValue.Text;
> .
> .
> .
> PasValue.Text = Session["pwd"].ToString(); - is not appeared
> Why it is occured?
> Thanks & Regards,
> Kuan
>
Opps sorry that should be ...

PasValue.Attributes["Value"] = Session["pwd"].ToString();

for c# ;)

--
Kindest Regards,

Ryan Healey

InstantASP Ltd - ASP.NET Collaboration & Support Tools
-------------------
sales@.instantasp.co.uk
http://www.instantasp.co.uk
-------------------

"support@.instantasp.co.uk" <service@.instantasp.co.uk> wrote in message
news:eUQDiiPtDHA.2508@.TK2MSFTNGP12.phx.gbl...
> This is by design with ASP.NET you need to-do sommething like...
> PasValue.Attributes("Value") = Session["pwd"].ToString();
> Kindest Regards,
> Ryan Healey
> InstantASP Ltd - ASP.NET Collaboration & Support Tools
> -------------------
> sales@.instantasp.co.uk
> http://www.instantasp.co.uk
> -------------------
> "Kuan" <temir51@.hotmail.com> wrote in message
> news:O5IJWdOtDHA.2224@.TK2MSFTNGP09.phx.gbl...
> > Hi All,
> > I am typing a password into a textBox with type="password", and then
> > submitting it into other page where I not see it in the textBox with
> > type="password" .
> > A password value is stored in a Session or a local variable.
> > Session["pwd"] = PasValue.Text;
> > .
> > .
> > .
> > PasValue.Text = Session["pwd"].ToString(); - is not appeared
> > Why it is occured?
> > Thanks & Regards,
> > Kuan
Thank you!
It is working properly!

Best regards
Kuan

"support@.instantasp.co.uk" <service@.instantasp.co.uk> wrote in message
news:O5723QRtDHA.2248@.TK2MSFTNGP09.phx.gbl...
> Opps sorry that should be ...
> PasValue.Attributes["Value"] = Session["pwd"].ToString();
> for c# ;)
>
> --
> Kindest Regards,
> Ryan Healey
> InstantASP Ltd - ASP.NET Collaboration & Support Tools
> -------------------
> sales@.instantasp.co.uk
> http://www.instantasp.co.uk
> -------------------
> "support@.instantasp.co.uk" <service@.instantasp.co.uk> wrote in message
> news:eUQDiiPtDHA.2508@.TK2MSFTNGP12.phx.gbl...
> > This is by design with ASP.NET you need to-do sommething like...
> > PasValue.Attributes("Value") = Session["pwd"].ToString();
> > Kindest Regards,
> > Ryan Healey
> > InstantASP Ltd - ASP.NET Collaboration & Support Tools
> > -------------------
> > sales@.instantasp.co.uk
> > http://www.instantasp.co.uk
> > -------------------
> > "Kuan" <temir51@.hotmail.com> wrote in message
> > news:O5IJWdOtDHA.2224@.TK2MSFTNGP09.phx.gbl...
> > > Hi All,
> > > > I am typing a password into a textBox with type="password", and then
> > > submitting it into other page where I not see it in the textBox with
> > > type="password" .
> > > A password value is stored in a Session or a local variable.
> > > > Session["pwd"] = PasValue.Text;
> > > .
> > > .
> > > .
> > > PasValue.Text = Session["pwd"].ToString(); - is not appeared
> > > > Why it is occured?
> > > > Thanks & Regards,
> > > Kuan
> > > >

0 comments:

Post a Comment