Hey there, I'm having issues retrieving data from a password textbox. Here is my ASP code:
<asp:TextBox ID="txtConfirmPassword" TextMode="Password" runat="server"></asp:TextBox>
And here is my C# code on the server side:
NameValueCollection nvc = Request.Form;
if (!string.IsNullOrEmpty(nvc["txtConfirmPassword"]))
{ string pass = nvc["txtConfirmPassword"].ToString(); }
But unfortunately, every time the result is nvc["txtConfirmPassword"] = null
. I am unable to retrieve the password value in the code site.
Can anyone please assist me with this issue?