Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > Using client-side javascript to handle events on an TabStrip or Multipage - Can it be done?

Reply
Thread Tools

Using client-side javascript to handle events on an TabStrip or Multipage - Can it be done?

 
 
Blair Taylor
Guest
Posts: n/a
 
      08-06-2003
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", "javascriptoThis");

}

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



 
Reply With Quote
 
 
 
 
Alvin Bruney
Guest
Posts: n/a
 
      08-07-2003
why don't you just place your code into the treeview/tabstrip.htc file in
your web-client folder. That's where the treeview/tabstrip etc derives it's
behavior
"Blair Taylor" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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", "javascriptoThis");
>
> }
>
> 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
>
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How can i handle a control's Events on a Multipage control? konox ASP .Net 0 10-31-2005 09:10 AM
TabStrip/Multipage using UserControl (.ascx) contained within a UserControl(.ascx) shaileenpatel@yahoo.com ASP .Net Web Controls 2 05-03-2005 05:01 PM
Please help with handling events in a tabstrip/multipage/user control environment Aaron ASP .Net Web Controls 3 01-27-2005 10:15 PM
How can i use tabstrip without using multipage? David ASP .Net Web Controls 0 06-09-2004 12:18 PM
Using MS's IE MultiPage and TabStrip on public websites Stephen Miller ASP .Net 2 02-29-2004 09:13 AM



Advertisments