Click here to Skip to main content
15,903,033 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i create page and add into page daynamic textbox with placeholder.

this page Inheritance mastrepage.
how Get value of dynamic textbox in placeholder with use master pages.
C#
if ((TextBox)PlaceHolder1.FindControl("TSize") == null)
          txtsize = (TextBox)PlaceHolder1.FindControl("TSize");
        else
            txtsize.Text = "";
Posted

1 solution

C#
if ((TextBox)PlaceHolder1.FindControl("TSize") == null)
          txtsize = (TextBox)PlaceHolder1.FindControl("TSize")


should be

C#
if ((TextBox)PlaceHolder1.FindControl("TSize") != null)
          txtsize = (TextBox)PlaceHolder1.FindControl("TSize")
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900