Well my problem is as follows:
I have a javascript user control, a grid, wich is on an .aspx page.
On the grid I can scroll between records, up and down, and click them.
Now I want to create an event in the grid that lets the page know if a different record is chosen, a record is changed and so on.
I tried using event/delegates to solve this and I do get the information from the javascript to the page but when I try to change a label on the page, the label stays the same, with the original text value.
The Page_Load for .aspx page.
Expand|Select|Wrap|Line Numbers
- protected void Page_Load(object sender, EventArgs e)
- {
- NAVPointScriptServiceHandler.Basics.sendMessageToThePage += new NAVPointScriptServiceHandler.SendMessageToThePageHandler(Basics_sendMessageToThePage);
- }
- void Basics_sendMessageToThePage(string messageToThePage)
- {
- lblUserControlTextBoxValue.Text = messageToThePage;
- }
Can anyone help me explain why or point me to a better way of doing this, preferably without using UpdatePanel? :)
Thanks.