you should enable debugging and track down the error. its not normal.
i check my websites with, ie 6 (via vm), ie 7, firefox and safari for any
script, or rendering errors. you should also test with disabled binary
behaviors in IE
note: the first script error causes javascript to stop running.
-- bruce (sqlwork.com)
> Hey guys,
>
[quoted text clipped - 20 lines]
>
> TIA
John Kotuby - 18 Dec 2007 23:51 GMT
Thanks Bruce,
Here is the error I am getting. There are 3 of them, equal in number to the
HyperLinks that I converted to LinkButtons.
The HyperLinks generate no Javascript code. The LinkButtons generate code
that I have no control over.
A runtime error has occurred. Do you wish to debug?
Line 375:
Error: expected ')'
with Yes or No buttons.
If I click Yes the Script debugger brings me to some code that seems totally
unrelated to the error message.
If I click No, the page renders and the LinkButtons work just fine.
I don't understand how I can control code that ASP.NET generates for me?
I will look more closely at where the script debugger brings me...but so far
I see no rhyme nor reason to that location.
Note: The LinkButtons are inside of a repeater control. There are many
instances of all 3 controls on the rendered page. I figure that I am being
prompted for each initial instance of error only once. But maybe I'm wrong.
Hmmm, I see it doesn't say Script Error, just runtime error.
Thanks.....
> you should enable debugging and track down the error. its not normal.
>
[quoted text clipped - 33 lines]
>>
>> TIA
John Kotuby - 19 Dec 2007 20:54 GMT
Bruce,
You were absolutely correct.
The debugger brought me to a <td> tag.
Within the table cell about 8 lines down was an OnClick event attribute.
One of the parameters it was passing was a string that included a
single-quote and it ruined the call to the Script.
Thank you for your help.
> you should enable debugging and track down the error. its not normal.
>
[quoted text clipped - 33 lines]
>>
>> TIA