开发者

AJAX Calendar Format & VB.NET

开发者 https://www.devze.com 2023-03-10 05:37 出处:网络
I keep bombing out with the following code. I\'m getting a \'There is no source code available for the current location\' when the debugger hits the CalControl.Format = \"MM/DD/YYYY\" statement. Pleas

I keep bombing out with the following code. I'm getting a 'There is no source code available for the current location' when the debugger hits the CalControl.Format = "MM/DD/YYYY" statement. Please see below:

Dim CalControl as AjaxControlToolkit.CalendarExtender

                CalControl.ID = LetterVariables._key & "Calendar"
                CalControl.TargetControlID = LetterVariables._key
                CalC开发者_运维百科ontrol.Format = "MM/DD/YYYY"
                pnlVars.Controls.Add(CalControl)

Any ideas?

Thanks,

Jason


New it up?

Dim CalControl as New AjaxControlToolkit.CalendarExtender

                CalControl.ID = LetterVariables._key & "Calendar"
                CalControl.TargetControlID = LetterVariables._key
                CalControl.Format = "MM/DD/YYYY"
                pnlVars.Controls.Add(CalControl)


Believe it or not, this issue was caused by a space being in the CalControl.ID property. Eliminate spaces, eliminate bugs.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号