Ask a Question related to ASP.NET General, Design and Development.
-
Steve - DND #1
Click Event for TableRow?
Is there any way to create a click event for a TableRow? It doesn't seem to
be built in by default. If anyone knows how this can be implemented it would
be most appreciated.
Thanks,
Steve
Steve - DND Guest
-
CreateChildControls Event before Click Event
Issue: I want to create a control that will accept a click event and then in response completely change it's look and feel. This could potentially... -
double click causes click-event anddoubleClick-event
I too am interested in a response to this. I see all kinds of information on how to enable the double-click event, but not how to distinguish... -
stumped...table - row - click event, cancel checkbox event
I have a html table and mutliple rows. On each row i put an onclick event that opesn a modal window and prompts the user for some information. I... -
Click Event Not Firing
In Framework 1.1 (VS 2003, C#) I've written a server control that contains a button. If I place the control on a page surface, it renders fine and... -
Button.Init? how Do I know if click event has been fired? TextBox.TextChanged event before Button.Click in a CompositeCustomControl.
Hello I have the following situation: (everything is dynamic (controls.add)) 1. Button.Init { WasButtonClickFired = true } 2.... -
Ram #2
Re: Click Event for TableRow?
"Steve - DND" <steve!@!digitalnothing.com> wrote in message news:<#EuyBrvVDHA.1280@tk2msftngp13.phx.gbl>...
You can write a client side click event for a table row using javascript.> Is there any way to create a click event for a TableRow? It doesn't seem to
> be built in by default. If anyone knows how this can be implemented it would
> be most appreciated.
>
> Thanks,
> Steve
Thanks
Ram
Ram Guest
-
Saravana #3
Re: Click Event for TableRow?
Check out this article, here i have created onclick event for tablerow.
[url]http://www.microsoft.com/india/msdn/articles/Master%20Detail%20DataGrid.aspx[/url]
or
[url]http://www.extremeexperts.com/Net/Articles/default.aspx[/url]
--
Saravana
Microsoft India Community Star,MC**
[url]www.ExtremeExperts.com[/url]
"Steve - DND" <steve!@!digitalnothing.com> wrote in message
news:#EuyBrvVDHA.1280@tk2msftngp13.phx.gbl...to> Is there any way to create a click event for a TableRow? It doesn't seemwould> be built in by default. If anyone knows how this can be implemented it> be most appreciated.
>
> Thanks,
> Steve
>
>
Saravana Guest
-
Steve - DND #4
Re: Click Event for TableRow?
Thanks Natty, that did the trick.
"Natty Gur" <natty@dao2com.com> wrote in message
news:OB1fH5xVDHA.1560@TK2MSFTNGP11.phx.gbl...> Hi,
>
> yes, but you need to do it yourself.
>
> 1) Add client side javascript that will catch table clicks and check
> using event.source if the type of the source element is TD. Then use
> __DoPostBack('MyTRClickEvent','AnyParameter'). To indicate the server
> side that your event needs to be raise.
>
> 2) Declare event in your page code behind. This event will occur on the
> server side.
> public event EventHandler TRClick;
>
>
> 3) In the Page_Init check if the value in the __EVENTTARGET field is
> 'MyTRClickEvent'. If so raise the event
>
> if (this.Request.Form["__EVENTTARGET"] == "devnetmenu")
> {
> if (MenuClick != null) // check if event hanler declared
> MenuClick(this,oEvent);
> }
>
> 4) write your code in the event handler
Steve - DND Guest



Reply With Quote

