Click here to Skip to main content
15,913,944 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Pass the value to next page Pin
Faisal Khatri24-Apr-07 1:40
Faisal Khatri24-Apr-07 1:40 
QuestionAsp.Net Window Pop Up Pin
J Liang23-Apr-07 22:27
J Liang23-Apr-07 22:27 
AnswerRe: Asp.Net Window Pop Up Pin
enjoycrack23-Apr-07 23:41
enjoycrack23-Apr-07 23:41 
GeneralRe: Asp.Net Window Pop Up Pin
J Liang24-Apr-07 17:37
J Liang24-Apr-07 17:37 
GeneralRe: Asp.Net Window Pop Up Pin
J Liang24-Apr-07 17:43
J Liang24-Apr-07 17:43 
GeneralRe: Asp.Net Window Pop Up Pin
enjoycrack24-Apr-07 17:53
enjoycrack24-Apr-07 17:53 
GeneralRe: Asp.Net Window Pop Up Pin
J Liang24-Apr-07 18:35
J Liang24-Apr-07 18:35 
Questionmultiple scripts __doPostBack problem Pin
Russell Jones23-Apr-07 22:10
Russell Jones23-Apr-07 22:10 
I've got an aspx page that contains a combo box with a selectedindexchanged event hooked up. My page also needs some javascript contained in an include file. Every time I select an item from the combobox i get an error:

__doPostBack is undefined.(reported by firebug(IE was much less helpful))

The code in the included js file is working and if i remove the reference to the included file the postback works ok. I've checked that i should be able to use multiple script tags in a document and that seems like it should work.

What do i have to do to get both scripts running at the same time?

Thanks

Russell


<head id="ctl00_DocHeader"><link href="FormStyle.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="account.js" />
<title>

</title></head>
<body>
<form name="aspnetForm" method="post" action="AccountViewer.aspx" id="aspnetForm">
<div>
<input type="hidden" name="__EVENTTARGET" id="__EVENTTARGET" value="" />
<input type="hidden" name="__EVENTARGUMENT" id="__EVENTARGUMENT" value="" />
<input type="hidden" name="__LASTFOCUS" id="__LASTFOCUS" value="" />
<input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="<very long string>" />
</div>

<script type="text/javascript">
<!--
var theForm = document.forms['aspnetForm'];
if (!theForm) {
theForm = document.aspnetForm;
}
function __doPostBack(eventTarget, eventArgument) {
if (!theForm.onsubmit || (theForm.onsubmit() != false)) {
theForm.__EVENTTARGET.value = eventTarget;
theForm.__EVENTARGUMENT.value = eventArgument;
theForm.submit();
}
}
// -->
</script>
QuestionLogin control [modified] Pin
daviperke23-Apr-07 21:57
daviperke23-Apr-07 21:57 
AnswerRe: Login control Pin
szukuro23-Apr-07 22:25
szukuro23-Apr-07 22:25 
GeneralRe: Login control Pin
daviperke23-Apr-07 22:57
daviperke23-Apr-07 22:57 
GeneralRe: Login control Pin
szukuro23-Apr-07 23:18
szukuro23-Apr-07 23:18 
GeneralRe: Login control Pin
daviperke23-Apr-07 23:40
daviperke23-Apr-07 23:40 
GeneralRe: Login control Pin
szukuro24-Apr-07 1:04
szukuro24-Apr-07 1:04 
GeneralRe: Login control Pin
daviperke24-Apr-07 1:33
daviperke24-Apr-07 1:33 
GeneralRe: Login control Pin
szukuro24-Apr-07 3:35
szukuro24-Apr-07 3:35 
GeneralRe: Login control Pin
daviperke25-Apr-07 23:02
daviperke25-Apr-07 23:02 
GeneralRe: Login control Pin
szukuro26-Apr-07 1:28
szukuro26-Apr-07 1:28 
GeneralRe: Login control Pin
daviperke26-Apr-07 1:36
daviperke26-Apr-07 1:36 
GeneralRe: Login control Pin
szukuro26-Apr-07 2:31
szukuro26-Apr-07 2:31 
GeneralRe: Login control Pin
daviperke26-Apr-07 2:38
daviperke26-Apr-07 2:38 
Questionchat window Pin
saravanan0523-Apr-07 21:54
saravanan0523-Apr-07 21:54 
AnswerRe: chat window Pin
Shuaib wasif khan23-Apr-07 22:36
Shuaib wasif khan23-Apr-07 22:36 
AnswerRe: chat window Pin
enjoycrack23-Apr-07 23:45
enjoycrack23-Apr-07 23:45 
QuestionVideo streaming in asp.net web application Pin
gouravverma23-Apr-07 21:48
gouravverma23-Apr-07 21:48 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.