[jQuery] Re: ASP.NET IDs

2007-08-20 Thread Sam Collett
On Aug 19, 6:31 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Thank you all very much for the replies. They came in very useful! > > One quick question for Sam, though. You said you don't use gridviews, > etc... what do you do then? Manually write the tables? I use a repeater and create

[jQuery] Re: ASP.NET IDs

2007-08-19 Thread seedy
This should only happen on databound (templated) controls. If its a submit button or textbox ect that you have placed on the form with the designer, or dynamically with codebehind you should have no problem accessing it using $('#ServerID'). I have been doing so with much success. [EMAIL PROT

[jQuery] Re: ASP.NET IDs

2007-08-19 Thread [EMAIL PROTECTED]
Thank you all very much for the replies. They came in very useful! One quick question for Sam, though. You said you don't use gridviews, etc... what do you do then? Manually write the tables? On Aug 19, 1:52 pm, Stephan Beal <[EMAIL PROTECTED]> wrote: > On Aug 18, 10:29 pm, "[EMAIL PROTECTED]

[jQuery] Re: ASP.NET IDs

2007-08-19 Thread Stephan Beal
On Aug 18, 10:29 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > 2) I'm also using AJAX update panel to update a gridview. Everything > is working great. However, once I update the gridview and it's > refreshed in AJAX, my jQuery no longer works, even though the code is > there. This sound

[jQuery] Re: ASP.NET IDs

2007-08-19 Thread Armand Datema
@Sam I always use this as well but maybe a trick for you ineed a bit more design freedom over every piece of repeated data In my repeater item template I always include a multiview control with several views. This way on databound of the repeater i can determine which view of the multiview to u

[jQuery] Re: ASP.NET IDs

2007-08-19 Thread Sam Collett
I use $("[EMAIL PROTECTED]"]) to get any input elements whose id ends with MyID (i.e. whatever you set in your ASPX page). Either that, or use a class instead. As for the 2nd question, I don't use anything other than the basic controls (repeater, dropdownlist etc - DataGrid's and GridViews I don'

[jQuery] Re: ASP.NET IDs

2007-08-18 Thread Josh Bush
The easiest way around the asp.net control id rewriting is something like this: var $myControl=$("#<%=MyControl.ClientID%>"); When that page is generated, the server will substitute in the real ID of the control it has generated. On Aug 18, 3:29 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote