472,804 Members | 735 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

question about doPostback javascript function + others


Forgive me if I have posted this in the wrong group, it's my first post
and wasn't sure where it should go. If it should be in another group
please let me know.

Right, let me explain my situation.

I am client side developer (js/css/etc) plus I did asp/php server side
stuff. So I know my way about. I'm just starting on the .NET (VB.NET to
be exact) and I have a question about the way the <asp:> controls are
generated client side.

1) function __doPostBack() { }
Can I rewrite this function, it's pretty poor coding and is invalid.
Even the option to put it into an external js file (at least getting it
away from being inline). If so, how do I do this?

2) When adding an element of type "LinkButton" it produces markup like
this.. <a href="javascript:__doPostBack('_ctl1','')">my Link</a> ..which
apart from being shockingly bad markup, it also renders the website
completely inaccessible (due to the reliance of js in the page). I would
like to know how to amend the format that it is outputted as, for
example if I can do this.. <a href="somelink"
onclick="__doPostBack('blah','blah')"> .. instead
I'll leave it at that, I have a lot of questions relating to markup,
accessibility and validation that MS seem to not have thought about when
using the generic controls (I presume the more advanced you get you tend
to build up a library of your own) but an idea on how to solve those 2
questions would be appreciated.

Thanks in advance.

Aug 19 '05 #1
3 1907

Let me start that one of the most major improvements that are done in the
next versions of Net are in the designer of the webpage.

In fact are all serverside controls predefined extended HTML controls or a
complex of HTML controls (or other tags) which you know probably all.

To create from a HTML control a serverside control than is this one of the
ways to do.

<iframe id="midFrame" name="midFrame" runat="server"></iframe>

(And I can tell you that I have as well search long for this simple thing
and found it by just reading a message from somebody (Terry Burns), who was
just answering like me in one of these newsgroups)


The same as you do I leave it at that.

I hope it helps something


Aug 19 '05 #2

Thanks for the reply. I will check out Terry Burns' thread.

However... "...major improvements that are done in the next versions of
Net" is no good for me, I am using VB.NET 2003 and will be for some
time. Microsoft (as part of W3C) shouldn't of overlooked the glaring
mistakes in accessibility/markup/etc.

I don't want to sacrifice my end result because of the inflexibility of
the framework.

But as I say, thank you for the reply.

Aug 19 '05 #3
Thanks for the reply. I will check out Terry Burns' thread.

Although Terry lives in the area of the world where the best English is
spoken, has he never long messages. Telling this was the only thing he told
in that thread I saw it.

(Not that he is not able to write nice, I have seen very nice messages and
webpages from Terry). Terry is normally known in these newsgroup as OHM is a
while not active. Probably to busy with his new business.

However searching for OHM will give you a terrible bunch of messages.


Aug 19 '05 #4

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

Similar topics

by: Mike | last post by:
Is there a key that can be used to pass to the Page.IsClientScriptBlockRegistered() to check if the dopostback() function has already been registered to the page? If not any ideas on how to check...
by: Matt Petteys | last post by:
I'm using 1.1 framework and IE 6.0. A form within a user control generates the following doPostBack method. The control ID of the form is not a valid javascript variable name, ie...
by: Mad Scientist Jr | last post by:
I have some javascript I would like to run after a doPostBack occurs: onchange="javascript:__doPostBack('Text1','');" The doPostBack is being added dynamically by .NET when it renders the...
by: Zuel | last post by:
Hi Folks. So I have a small problem. My DoPostBack function is not writen to the HTML page nor are the asp:buttons calling the DoPostBack. My Goal is to create a totaly dynamic web page where...
by: masoud bayan | last post by:
Hi , I used your suggested code to replace doPostBack in my application, but it seems window.onbeforeunload is called before, window.__doPostBack, so it can not change the condition for showing...
by: DSipp | last post by:
First, I am not a developer. My company works with a partner. This partner has a web app that we interact with. All of my systems can connect and login to this site. When we select an issue link,...
by: Mark Olbert | last post by:
The doPostBack javascript functioning is not submitting the page when called by linkbuttons (or an autopostback checkbox, for that matter). I'm aware of a problem with Netscape browsers and the...
by: Ric Paton | last post by:
Guys, Forgive me if I have posted this in the wrong group, it's my first post and wasn't sure where it should go. If it should be in another group please let me know. Right, let me explain my...
by: yeti349 | last post by:
Hi, I'm using the following code to retrieve data from an xml file and populate a javascript array. The data is then displayed in html table form. I would like to then be able to sort by each...
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 2 August 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
by: linyimin | last post by:
Spring Startup Analyzer generates an interactive Spring application startup report that lets you understand what contributes to the application startup time and helps to optimize it. Support for...
by: erikbower65 | last post by:
Here's a concise step-by-step guide for manually installing IntelliJ IDEA: 1. Download: Visit the official JetBrains website and download the IntelliJ IDEA Community or Ultimate edition based on...
by: kcodez | last post by:
As a H5 game development enthusiast, I recently wrote a very interesting little game - Toy Claw ((http://claw.kjeek.com/))。Here I will summarize and share the development experience here, and hope it...
by: Taofi | last post by:
I try to insert a new record but the error message says the number of query names and destination fields are not the same This are my field names ID, Budgeted, Actual, Status and Differences ...
by: DJRhino1175 | last post by:
When I run this code I get an error, its Run-time error# 424 Object required...This is my first attempt at doing something like this. I test the entire code and it worked until I added this - If...
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
by: lllomh | last post by:
How does React native implement an English player?
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...

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.