473,396 Members | 2,033 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Script Errors from LinkButton

Hey guys,

In IE7 where I am tesing my Web Apps written with VB in VS 2005 I have set
the IE option:

"Display Notification of all script errors" to be active.

Now that I have changed some asp:links to asp:linkbuttons, I am getting
notification of script errors whereas before on the same page I wasn't. It
has to be the Javascript DoPost with options that ASP.NET is generating, I
would think.

Has anyone else experienced this?

Of course I have noticed that in the last year I have seen script error
notifications from lots of web sites, even from some major fortune 500
companies (Microsoft itself, for example).

The site seems to perform exactly as expected, but the notifications are
annoying and look unprofessional.

Anybody know a way around this? Must I write my own Javascript routines?

TIA
Dec 18 '07 #1
3 1672
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)
"John Kotuby" wrote:
Hey guys,

In IE7 where I am tesing my Web Apps written with VB in VS 2005 I have set
the IE option:

"Display Notification of all script errors" to be active.

Now that I have changed some asp:links to asp:linkbuttons, I am getting
notification of script errors whereas before on the same page I wasn't. It
has to be the Javascript DoPost with options that ASP.NET is generating, I
would think.

Has anyone else experienced this?

Of course I have noticed that in the last year I have seen script error
notifications from lots of web sites, even from some major fortune 500
companies (Microsoft itself, for example).

The site seems to perform exactly as expected, but the notifications are
annoying and look unprofessional.

Anybody know a way around this? Must I write my own Javascript routines?

TIA
Dec 18 '07 #2
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.....

"bruce barker" <br*********@discussions.microsoft.comwrote in message
news:0F**********************************@microsof t.com...
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)
"John Kotuby" wrote:
>Hey guys,

In IE7 where I am tesing my Web Apps written with VB in VS 2005 I have
set
the IE option:

"Display Notification of all script errors" to be active.

Now that I have changed some asp:links to asp:linkbuttons, I am getting
notification of script errors whereas before on the same page I wasn't.
It
has to be the Javascript DoPost with options that ASP.NET is generating,
I
would think.

Has anyone else experienced this?

Of course I have noticed that in the last year I have seen script error
notifications from lots of web sites, even from some major fortune 500
companies (Microsoft itself, for example).

The site seems to perform exactly as expected, but the notifications are
annoying and look unprofessional.

Anybody know a way around this? Must I write my own Javascript routines?

TIA

Dec 18 '07 #3
Bruce,
You were absolutely correct.
The debugger brought me to a <tdtag.
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.

"bruce barker" <br*********@discussions.microsoft.comwrote in message
news:0F**********************************@microsof t.com...
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)
"John Kotuby" wrote:
>Hey guys,

In IE7 where I am tesing my Web Apps written with VB in VS 2005 I have
set
the IE option:

"Display Notification of all script errors" to be active.

Now that I have changed some asp:links to asp:linkbuttons, I am getting
notification of script errors whereas before on the same page I wasn't.
It
has to be the Javascript DoPost with options that ASP.NET is generating,
I
would think.

Has anyone else experienced this?

Of course I have noticed that in the last year I have seen script error
notifications from lots of web sites, even from some major fortune 500
companies (Microsoft itself, for example).

The site seems to perform exactly as expected, but the notifications are
annoying and look unprofessional.

Anybody know a way around this? Must I write my own Javascript routines?

TIA

Dec 19 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Joel Cade | last post by:
I'm using a repeater to show the rows in a data table. I'd like the have a link button beside each row that removes the record, firing a client script function to prompt the user for confirmation,...
0
by: Lance Ahlberg | last post by:
I have a aspx page with a LinkButton running under asp.net 2.0. When I access the page with Internet Explorer the __doPostBack script, __EVENTTARGET, and __EVENTARGUMENT field are present and...
0
by: Solomon Shaffer | last post by:
This is very interesting - and odd. I have a number of LinkButtons that are created in a custom data grid that I created. The purpose of the LinkButtons is to provide alphabetical filtering...
2
by: Kurt Schroeder | last post by:
Still new to code behind so i'm not sure what the problem is (i'm using visualStudio.net for the first time) like my last question i'll bet this has a quick answer. thanks kes here is the error:...
3
by: Learner | last post by:
Hello, I have two buttons on one of my VehicleDetails.aspx page. Obiviously these two buttons takes the user to two different pages. Now my client is interested in having a linkbutton instead of...
0
by: OceanBreeze | last post by:
I have added a LinkButton to a table cell programmatically inside the Page_Load method. I also added a custom event to that link button. The same custom event is valid for all the link buttons. The...
5
by: Bjorn Sagbakken | last post by:
Hello I have just migrated from VS 2003 to VS 2005, and .NET framework 1.1 to 2.0 I am at the end of debugging and fixing stuff. Now there is one error I just cannot find a solution to: On...
2
by: mpl | last post by:
hi i have my code in ascx.vb file for my javascritpt file function ColSelected in ascx file LinkButton.Attributes.Add("OnClick", "ColSelected(" + LinkButton.Text + "," + iValue.ToString + "," +...
1
KevinADC
by: KevinADC | last post by:
Note: You may skip to the end of the article if all you want is the perl code. Introduction Many websites have a form or a link you can use to download a file. You click a form button or click...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.