Hi I want to convert System.Web.UI.HtmlControls.HtmlInputText value into string.
Actually I am using authentication function in which i am using HTML controls :
private void Authenticate_User(System.Web.UI.HtmlControls.HtmlInputText username, System.Web.UI.HtmlControls.HtmlInputText password)
{
//-- doing some code here & Save credentials into cookies.
}
*Now I am check above function on page_load :*
protected void Page_Load(object sender, EventArgs e)
{
string userid = Request.Cookies["UserDetails"]["UserName"].ToString();
string pass = Request.Cookies["UserDetails"]["Password"].ToString();
Authenticate_User(userid, pass); //---- It gives some conversation error (HTML contorl to string )
}
Any suggestion regarding.