Hi all,
I have a textbox field in a form that has an associated checkbox.
When this checkbox is checked the field is greyed out and becomes readonly.
Currently I have the onCheckedChange event (with autopostback on)trigger some code that sets the attributes of the textbox to do this.
My problem is that when I click the checkbox the form resets to the top of the page because of the autopostback (I can't get the event to trigger without autopostback which I think is to be expected). I've partially solved this by putting a focus statement in the 'is postback' code. But this always set the focus to a set position that shows the textbox in question in a visible location. Trouble is this can be dissorientating if the user has this textbox in a different place on the screen (due to scroll bar location).
My question is - is there away to get the postback to remember the position of the scroll bar? Or can you trigger the onCheckedChange event code withoput doing a post back.
Thanks in advance
C
I have a textbox field in a form that has an associated checkbox.
When this checkbox is checked the field is greyed out and becomes readonly.
Currently I have the onCheckedChange event (with autopostback on)trigger some code that sets the attributes of the textbox to do this.
My problem is that when I click the checkbox the form resets to the top of the page because of the autopostback (I can't get the event to trigger without autopostback which I think is to be expected). I've partially solved this by putting a focus statement in the 'is postback' code. But this always set the focus to a set position that shows the textbox in question in a visible location. Trouble is this can be dissorientating if the user has this textbox in a different place on the screen (due to scroll bar location).
My question is - is there away to get the postback to remember the position of the scroll bar? Or can you trigger the onCheckedChange event code withoput doing a post back.
Thanks in advance
C