Click here to Skip to main content
15,886,080 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Partial postback and update panel problem Pin
Sandeep Mewara4-Dec-10 7:47
mveSandeep Mewara4-Dec-10 7:47 
GeneralRe: Partial postback and update panel problem Pin
Tridip Bhattacharjee5-Dec-10 4:55
professionalTridip Bhattacharjee5-Dec-10 4:55 
GeneralRe: Partial postback and update panel problem Pin
Sandeep Mewara5-Dec-10 4:55
mveSandeep Mewara5-Dec-10 4:55 
QuestionConfusion regarding c# property Pin
Tridip Bhattacharjee3-Dec-10 23:00
professionalTridip Bhattacharjee3-Dec-10 23:00 
AnswerRe: Confusion regarding c# property Pin
Keith Barrow3-Dec-10 23:55
professionalKeith Barrow3-Dec-10 23:55 
GeneralRe: Confusion regarding c# property Pin
Tridip Bhattacharjee4-Dec-10 4:34
professionalTridip Bhattacharjee4-Dec-10 4:34 
GeneralRe: Confusion regarding c# property Pin
Keith Barrow4-Dec-10 5:26
professionalKeith Barrow4-Dec-10 5:26 
QuestionJQuery unable to find controls on a page [modified] Pin
AndyASPVB3-Dec-10 22:13
AndyASPVB3-Dec-10 22:13 
Hi
I have a JQuery date mask, but when I run the page it throws an error "Microsoft JScript runtime error: Object doesn't support this property or method".

Now, the control that this particular JQuery is meant to be working is added dynamically to a repeater control. Through this, I have looked at the ids of the control, where it was breaking and stopping in Visual Studio and what is being shown on the aspx page. The ids are identical except of the "#" that JQuery has at the start, which is not on the page.

In my JQuery code I have:

JQuery(function ($) {

$('#<%=date.ClientID %>').mask("99/99/9999");

});



Is there away to tell JQuery not to include the "#" when finding the control? I have used UniqueID but this changes any underscore into "$", which is not the same as what is on the page. My only problem is with "#" sign at the start of the ID. I have even added an alert box to check that textbox was there and it came back as null. I have tried even adding a CssClass attribute to the textbox, but this through the same error, too.

Please note that the custom user control that has the textbox is added programatically to the repeater.



Can anyone help?



Thanks

modified on Saturday, December 4, 2010 4:21 AM

AnswerRe: JQuery unable to find controls on a page Pin
Not Active4-Dec-10 2:06
mentorNot Active4-Dec-10 2:06 
GeneralRe: JQuery unable to find controls on a page Pin
AndyASPVB4-Dec-10 3:13
AndyASPVB4-Dec-10 3:13 
GeneralRe: JQuery unable to find controls on a page Pin
Not Active4-Dec-10 3:35
mentorNot Active4-Dec-10 3:35 
GeneralRe: JQuery unable to find controls on a page Pin
AndyASPVB4-Dec-10 3:43
AndyASPVB4-Dec-10 3:43 
GeneralRe: JQuery unable to find controls on a page Pin
Not Active4-Dec-10 5:46
mentorNot Active4-Dec-10 5:46 
GeneralRe: JQuery unable to find controls on a page Pin
AndyASPVB6-Dec-10 10:49
AndyASPVB6-Dec-10 10:49 
GeneralRe: JQuery unable to find controls on a page Pin
Not Active6-Dec-10 13:27
mentorNot Active6-Dec-10 13:27 
QuestionASP.Net Newby Question On ListView Pin
Kevin Marois3-Dec-10 7:32
professionalKevin Marois3-Dec-10 7:32 
AnswerRe: ASP.Net Newby Question On ListView Pin
Not Active3-Dec-10 12:36
mentorNot Active3-Dec-10 12:36 
Questionregarding VS2008 IDE Pin
Tridip Bhattacharjee3-Dec-10 6:31
professionalTridip Bhattacharjee3-Dec-10 6:31 
AnswerRe: regarding VS2008 IDE Pin
Brij3-Dec-10 7:42
mentorBrij3-Dec-10 7:42 
GeneralRe: regarding VS2008 IDE Pin
Tridip Bhattacharjee3-Dec-10 23:05
professionalTridip Bhattacharjee3-Dec-10 23:05 
GeneralRe: regarding VS2008 IDE Pin
Brij4-Dec-10 5:14
mentorBrij4-Dec-10 5:14 
QuestionClear session after redirect Pin
Hanzaplast3-Dec-10 5:28
Hanzaplast3-Dec-10 5:28 
AnswerRe: Clear session after redirect Pin
Brij3-Dec-10 6:39
mentorBrij3-Dec-10 6:39 
AnswerRe: Clear session after redirect Pin
fjdiewornncalwe3-Dec-10 6:44
professionalfjdiewornncalwe3-Dec-10 6:44 
QuestionInterview task - what can I expect? Pin
Danpeking3-Dec-10 0:48
Danpeking3-Dec-10 0:48 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.