473,785 Members | 2,879 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1695
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*********@di scussions.micro soft.comwrote in message
news:0F******** *************** ***********@mic rosoft.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
notification s 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*********@di scussions.micro soft.comwrote in message
news:0F******** *************** ***********@mic rosoft.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
notification s 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
1665
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, and then run as a server control. I know how to attach client script to a server control, but I'm not sure how to access the control of the repeater item. Code follows: <ItemTemplate> <tr class="font8v"> <td><%#...
0
1407
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 everything works fine. However.. When I access the page using NUnitAsp the __doPostBack script, __EVENTTARGET, and __EVENTARGUMENT fields are missing. In ASP.NET 1.1, the page was emitted correctly using NUnitASP.
0
1312
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 functionality on the grid. Therefore, a LinkButton is added for every letter of the alphabet. I also have a numeric filter button and an "All" button that removes the filter. All of the LinkButtons are wired up to the same event called...
2
1358
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: and please for give the excessive text Object reference not set to an instance of an object. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about...
3
2773
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 the two buttons. Once the user clicks on the linkbutton a javascript dialog box popsup that says "Is the Lessee buying this vehicle?" and with two buttons "Yes" and "No". If user clicks "yes" it should go to DealerQuestions.aspx" and if "No" it...
0
1906
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 table gets successfully displayed on the browser with the LinkButton. When I click on the link button in the browser, my control does not go inside the custom even that I wrote for the link button. I have a table control as ProviderTbl in which...
5
2006
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 some pages I have applied a small client-script to trap the enter-key beeing pressed and re-route this action. With the new version this little script still works, it traps the enter-key. BUT it causes postback-errors on many other .NET control,...
2
1022
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 + "," + iValue2 + "," + Selected.ClientID + ");") i am getting exception ') ' exception on my click event. i know i am missig the quatation .can anyone help where i am missing. i tried
1
47488
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 on a link and after a moment or two a file download dialog box pops-up in your web browser and prompts you for some instructions, such as “open” or “save“. I’m going to show you how to do that using a perl script. What You Need Any recent...
0
9480
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10329
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10152
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10092
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8974
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5381
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4053
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3650
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2880
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.