Click here to Skip to main content
15,888,968 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Questionweb.config Pin
Member 1108003313-Sep-14 5:40
Member 1108003313-Sep-14 5:40 
AnswerRe: web.config Pin
jkirkerx15-Sep-14 7:09
professionaljkirkerx15-Sep-14 7:09 
AnswerRe: web.config Pin
Sibeesh KV29-Sep-14 1:18
professionalSibeesh KV29-Sep-14 1:18 
Questionasp.net membership Pin
msc92013-Sep-14 3:48
msc92013-Sep-14 3:48 
AnswerRe: asp.net membership Pin
hypermellow18-Sep-14 5:32
professionalhypermellow18-Sep-14 5:32 
GeneralRe: asp.net membership Pin
msc92022-Sep-14 0:55
msc92022-Sep-14 0:55 
QuestionJquery-ui ASP Update Panels and User Controls Pin
Wierdbeard6512-Sep-14 7:08
Wierdbeard6512-Sep-14 7:08 
AnswerJquery DatePicker Pin
jkirkerx15-Sep-14 9:37
professionaljkirkerx15-Sep-14 9:37 
Let's fix one thing at a time, so I'll tackle the datepicker
I didn't see an update panel, so if there is none, the try will catch the error and contrinue to load the script.
Make sure you place the code below in the web form's, content place holder and not the master page like in your example.

I personally don't like the jquery.ui everthing, and prefer to just load the core, and the datepicker.

I switched the way you discover the textbox to bind to from css to the actual id of the textbox, using a wildcard to filter anything the is prefixed in front of the actual ID name of the textbox, will is standard behavior for using an update panel, in which $CT100_ is prefixed.

WebForm.aspx
<asp:Content ID="HeadContent" ContentPlaceHolderID="HeadContent" runat="Server">
<script src="Scripts/jquery.js" type="text/javascript"></script>
<script src="Scripts/jquery-ui-core.js" type="text/javascript"></script>
<script src="Scripts/jquery-ui-datepicker.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function () {
    initializeBinding();
    try {
      Sys.WebForms.PageRequestManager.getInstance().add_endRequest(EndRequestHandler);
    }
    catch (e) {

    }
});
function EndRequestHandler(sender, args) {
    initializeBinding();
}

function initializeBinding() {
    $('[id*="TextBoxGoLive"]').datepicker({
        autoSize: true
    });
}
</script>
</asp:Content>


[EDIT]
Test the code on your dev machine, using internet explorer 9+, and press F12 in IE, and clickon the bug for Debug. IE will throw an error like the webdev highlighting the error in yellow and red, showing where the script failed and why.
Then fix the error and run it again.

[EDIT 2]
Fix the path of the scripts, by deleting them, and using the project explorer to drag the jquery file into the editor, in which the correct path will be generated for that page.
GeneralRe: Jquery DatePicker Pin
Wierdbeard6520-Sep-14 12:18
Wierdbeard6520-Sep-14 12:18 
GeneralRe: Jquery DatePicker Pin
jkirkerx20-Sep-14 12:40
professionaljkirkerx20-Sep-14 12:40 
QuestionError: The resource cannot be found. Pin
Member 876166711-Sep-14 8:42
Member 876166711-Sep-14 8:42 
AnswerRe: Error: The resource cannot be found. Pin
ZurdoDev11-Sep-14 8:45
professionalZurdoDev11-Sep-14 8:45 
GeneralRe: Error: The resource cannot be found. Pin
Member 876166711-Sep-14 9:03
Member 876166711-Sep-14 9:03 
AnswerRe: Error: The resource cannot be found. Pin
ZurdoDev11-Sep-14 9:06
professionalZurdoDev11-Sep-14 9:06 
GeneralRe: Error: The resource cannot be found. Pin
Member 876166711-Sep-14 9:15
Member 876166711-Sep-14 9:15 
AnswerRe: Error: The resource cannot be found. Pin
ZurdoDev11-Sep-14 9:31
professionalZurdoDev11-Sep-14 9:31 
GeneralRe: Error: The resource cannot be found. Pin
Member 876166711-Sep-14 9:33
Member 876166711-Sep-14 9:33 
SuggestionRe: Error: The resource cannot be found. Pin
Richard Deeming11-Sep-14 9:49
mveRichard Deeming11-Sep-14 9:49 
GeneralRe: Error: The resource cannot be found. Pin
Member 876166711-Sep-14 10:16
Member 876166711-Sep-14 10:16 
GeneralRe: Error: The resource cannot be found. Pin
Richard Deeming12-Sep-14 1:37
mveRichard Deeming12-Sep-14 1:37 
GeneralRe: Error: The resource cannot be found. Pin
Member 876166713-Sep-14 8:34
Member 876166713-Sep-14 8:34 
GeneralRe: Error: The resource cannot be found. Pin
Richard Deeming15-Sep-14 1:56
mveRichard Deeming15-Sep-14 1:56 
GeneralRe: Error: The resource cannot be found. Pin
Member 876166715-Sep-14 2:30
Member 876166715-Sep-14 2:30 
GeneralRe: Error: The resource cannot be found. Pin
ZurdoDev11-Sep-14 10:53
professionalZurdoDev11-Sep-14 10:53 
QuestionMVC jQuery dropdown context menu Pin
Stephen Holdorf11-Sep-14 3:35
Stephen Holdorf11-Sep-14 3:35 

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.