Click here to Skip to main content
15,896,526 members

Comments by IrcdaemonZ (Top 1 by date)

IrcdaemonZ 18-Jun-19 1:57am View    
try to use below syntax....you cannot get value of input text directly if it's inside a masterpage or contentplaceholder. You need to find the object first and get the value.


ContentPlaceHolder test = (ContentPlaceHolder)Master.FindControl("ContentPlaceHolder1");

((HtmlInputText)test.FindControl("TextInputD")).Value.ToString()