B
Blair Taylor
Can you use client-side javascript to handle events on an TabStrip or
Multipage?
I can process the events server-side, but cannot fire even the simplest
Javascript routine client-side.
I have tried using two different approaches:
1) Registering a client script
private void Page_Load(object sender, System.EventArgs e)
{
// Put user code to initialize the page here
Page.RegisterClientScriptBlock("DoThis",
this.BuildClientsideEventhandler());
TabStrip1.Attributes.Add("onselectedindexchange", "javascript
oThis");
}
2) Providing a JavaScript function to handle the event:
<script language="javascript" event="onselectedindexchange"
for="MultiPage1">
function doThis() {
alert('hello');
}
</script>
Neither Works.
Can this be done? Does anyone have a working example?
Thanks,
Blair Taylor
Multipage?
I can process the events server-side, but cannot fire even the simplest
Javascript routine client-side.
I have tried using two different approaches:
1) Registering a client script
private void Page_Load(object sender, System.EventArgs e)
{
// Put user code to initialize the page here
Page.RegisterClientScriptBlock("DoThis",
this.BuildClientsideEventhandler());
TabStrip1.Attributes.Add("onselectedindexchange", "javascript
}
2) Providing a JavaScript function to handle the event:
<script language="javascript" event="onselectedindexchange"
for="MultiPage1">
function doThis() {
alert('hello');
}
</script>
Neither Works.
Can this be done? Does anyone have a working example?
Thanks,
Blair Taylor