Greetings and thank you in advance for the help. I created a user control in VB.NET that uses a jQuery datepicker. I am at an impasse. The code I have works for one datepicker control on the page but because I can only register the client script once, it will not work for multiple instances/datepickers on the same page. What is the best way to go about initiating the jQuery script for this control so I can use it multiple times on one page? Can I append to ClientScript.RegisterStartupScript? Thanks again.
Dim sJS As String = "$(function() { " & vbCrLf
sJS += " var dates = $('#" & txtDate1.UniqueID
sJS += "').datepicker({" & vbCrLf
sJS += " changeMonth: '" & _bMonthDropDown & "', changeYear: '" & _bMonthDropDown
sJS += "', numberOfMonths: '" & _numberOfMonths
...
sJS += "'}); });" & vbCrLf
Page.ClientScript.RegisterStartupScript(GetType(Page), "DatePicker", sJS, True)