473,395 Members | 1,761 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,395 software developers and data experts.

ASP.NET __doPostBack javascript error

I've got a series of 3 drop down menus that validate my
form. on my local win2k machine, the script works fine.
When i upload it to my win2k3 production server, the
__doPostBack function generates errors

its giving me for element names with colons (":") in it.
its trying to reference "mkn:header:navigation.dropdown1"

Ive found the problem in MSDN, its a problem with ASP.NET
the hotfix rollup from this article is what i need:
http://support.microsoft.com/default.aspx?scid=kb;EN-
US;818803

however, when i try to get support from microsoft online,
they tell me my Product ID is invalid or not supported in
Canada or the USA.

where can i get this hotfix or is there another solution
to this problem?
Nov 22 '05 #1
2 1978
Here is a workaround until you can find the fix. The problem is with the
colon. It needs to be an _ . You may need to change the control ids or
modify this for you particular need by the idea is to override the render
and replace the offending text.

Protected Overrides Sub Render(ByVal writer As HtmlTextWriter)

Dim _stringBuilder As StringBuilder = New StringBuilder()
Dim _stringWriter As StringWriter = New StringWriter(_stringBuilder)
Dim _htmlWriter As HtmlTextWriter = New HtmlTextWriter(_stringWriter)
MyBase.Render(_htmlWriter)
Dim html As String = _stringBuilder.ToString()
Dim start As Integer = html.IndexOf("document._ctl1:_ctl0;")
if start <> -1 then
html.Replace("document._ctl1:_ctl0", "document._ctl1__ctl0")
end if
writer.Write(html)

End Sub
"Alex Lein" <al***@baka.ca> wrote in message
news:02****************************@phx.gbl...
I've got a series of 3 drop down menus that validate my
form. on my local win2k machine, the script works fine.
When i upload it to my win2k3 production server, the
__doPostBack function generates errors

its giving me for element names with colons (":") in it.
its trying to reference "mkn:header:navigation.dropdown1"

Ive found the problem in MSDN, its a problem with ASP.NET
the hotfix rollup from this article is what i need:
http://support.microsoft.com/default.aspx?scid=kb;EN-
US;818803

however, when i try to get support from microsoft online,
they tell me my Product ID is invalid or not supported in
Canada or the USA.

where can i get this hotfix or is there another solution
to this problem?

Nov 22 '05 #2
Anyone else having this problem can download the file here.

http://support.instantasp.co.uk/shwmessage.aspx?
forumid=25&messageid=654

It took me 17 pages of google to find it, but I got it. I
haven't installed it on the server yet, but I plan to
tonight.

-----Original Message-----
I've got a series of 3 drop down menus that validate my
form. on my local win2k machine, the script works fine.
When i upload it to my win2k3 production server, the
__doPostBack function generates errors

its giving me for element names with colons (":") in it.
its trying to reference "mkn:header:navigation.dropdown1"

Ive found the problem in MSDN, its a problem with ASP.NET
the hotfix rollup from this article is what i need:
http://support.microsoft.com/default.aspx?scid=kb;EN-
US;818803

however, when i try to get support from microsoft online,
they tell me my Product ID is invalid or not supported in
Canada or the USA.

where can i get this hotfix or is there another solution
to this problem?
.

Nov 22 '05 #3

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

Similar topics

0
by: Frankieboy | last post by:
Where is __doPostBack-function defined? I've got an application which generates a different __doPostBack-function when the code is being run on the server compared to the one on my laptop. The...
1
by: paul reed | last post by:
Hello, I am having some weird behavior between two machines...one which is running the 1.1 framework and one which is running 1.0. After opening a child form from a parent...I update the...
3
by: E | last post by:
I have 2 aspx pages... neither of which do anything out of the ordinary. One of the pages automatically generates this block of code when viewed at the client:...
3
by: Nikhil Patel | last post by:
Hi all, I have developed a web page with a sortable DataGrid with Select button column in ASP.Net. It works fine in inernet explorer. The purpose of the web page is to display it in a third party...
1
by: Adrian | last post by:
I appear to be losing ViewState information when calling the __doPostBack function. I am attempting to use the showModalDialog to load a new web page which confirms that a user wishes to save a...
3
by: Marcelo | last post by:
Hello, I am trying to create a postback event, and it is working, just not calling the sub. I have a datagrid which has <asp:DataGrid id="Mensajes" ... <Columns> <asp:HyperLinkColumn ....
1
by: Philip | last post by:
I am attempting to use the ASP.NET generated __doPostBack JavaScript function in my custom JavaScript and I can use it successfully but only after the web page is loaded and idle. I prefer to...
3
by: Smokey Grindel | last post by:
I have a page with no ASP.NET controls on it put I have links that use the __doPostBack('','') javascript method on it, it wont work, oh course I know why, the script isnt registered.. because if...
0
by: =?Utf-8?B?Uml0YUc=?= | last post by:
Hello. I'm maintaining a C# Web based project that has a class which adds a "Show All" / "Show By Page" functionality to a datagrid that allows paginating. This class works when there are...
0
by: codeshelp | last post by:
I have a gridview that has a ButtonField(Insert) that calls a detailsview which allows you to insert data to the gridview. The postback for this buttonField is:...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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,...
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.