开发者

Accessing .Text property in a Master Page from the Master.cs

开发者 https://www.devze.com 2023-01-10 05:58 出处:网络
I have a textbox and a button, and I trying to give the user a search option in the master page. The onClick event of my button is fine, but the textbox.Text property is always empty.

I have a textbox and a button, and I trying to give the user a search option in the master page.

The onClick event of my button is fine, but the textbox.Text property is always empty.

I googled a little and fine many articles about accessing the开发者_如何学C Master from the ContentHolder, but I believe its no my case...

Help appreciated :)

Pedro Dusso


You should have it working.

Please check if there are any initialization of the TextBox.Text happening in Page.Onload() event.

0

精彩评论

暂无评论...
验证码 换一张
取 消