Click here to Skip to main content
15,920,438 members
Home / Discussions / Web Development
   

Web Development

 
AnswerRe: CreateObject ("Word.Application") Pin
uktrips00715-Dec-05 1:45
uktrips00715-Dec-05 1:45 
QuestionHow to embed checklistbox control in HTML using JavaScript Pin
Wahaj Khan13-Dec-05 19:46
Wahaj Khan13-Dec-05 19:46 
AnswerRe: How to embed checklistbox control in HTML using JavaScript Pin
NeverHeardOfMe13-Dec-05 22:46
NeverHeardOfMe13-Dec-05 22:46 
GeneralRe: How to embed checklistbox control in HTML using JavaScript Pin
Wahaj Khan14-Dec-05 0:57
Wahaj Khan14-Dec-05 0:57 
GeneralRe: How to embed checklistbox control in HTML using JavaScript Pin
NeverHeardOfMe14-Dec-05 1:10
NeverHeardOfMe14-Dec-05 1:10 
Question[Message Deleted] Pin
momoo13-Dec-05 17:04
momoo13-Dec-05 17:04 
AnswerRe: Urgent help on ascx Pin
Christian Graus13-Dec-05 17:17
protectorChristian Graus13-Dec-05 17:17 
Questionproblem in passing a javascript variable to asp page using window.location Pin
bhavani_ge13-Dec-05 11:06
bhavani_ge13-Dec-05 11:06 
Hi,

I have a dropdown box and when a value is selected in that, a javascript function is called which takes the values into a variable and that is passed to the same asp page using window.location='svr_temp.asp?Campus=' +Campus
This variale is caught be request.querystring and that is used in executing a sql query whose result is populated into textbox.But, thre are few probs in this.

For the first time when i select something in dropdownbox nothing is happening in the page and from the second time the value is run against query and the result is displayed in the textbox....but immediately the page is reloading again and all the data in the textbox is lost............please help me in this...........same problem is occuring even if i use document.form.action methos instead of window.location.................

Here is the code.....
<%@ LANGUAGE="VBSCRIPT" %>
sub showform



@import "../inc/uopstu.css";



<title>SVR StartDate Selection


Select a Campus Name


<% Do While NOT MyRS1.EOF %>
"><%= MyRs1("CampusName")%>
<% MyRS1.MoveNext
loop %>



<%
if request.querystring("Campus") <> "" then
'response.Write("hi")
'response.End
MYSQL2="Select distinct substring(collector_name,13,5) AS Code from svr_compare where substring(collector_name,1,4)= (select Collector_Code from CampCollCode where Division='"& request.QueryString("Campus")& "')"
Set MyRs2=MyConn.Execute(MySQL2)
Dim str
str=MyRS2("Code")
MyRS2.MoveNext
Do While NOT MyRS2.EOF
str=str & "," & MyRS2("Code")
MyRS2.MoveNext
loop
end if
%>









<%

'Close the connection
'MyRs.Close
'Set MyRs = Nothing
'Set MyConn = Nothing
End Sub
GeneralRe: problem in passing a javascript variable to asp page using window.location Pin
Guffa14-Dec-05 2:56
Guffa14-Dec-05 2:56 
QuestionAJAX Pin
niansah13-Dec-05 8:21
niansah13-Dec-05 8:21 
QuestionASP.Net 2.0 - master pages Pin
dcarlton13-Dec-05 7:02
dcarlton13-Dec-05 7:02 
AnswerRe: ASP.Net 2.0 - master pages Pin
Brent Lamborn15-Dec-05 4:29
Brent Lamborn15-Dec-05 4:29 
QuestionExporting Report data Using Crystal Reports in Web App. Pin
Shashidhar13-Dec-05 3:53
Shashidhar13-Dec-05 3:53 
QuestionPopulating controls on webform using javascript Pin
Irshad Sulaimani13-Dec-05 1:19
Irshad Sulaimani13-Dec-05 1:19 
AnswerRe: Populating controls on webform using javascript Pin
Guffa13-Dec-05 3:59
Guffa13-Dec-05 3:59 
QuestionApplet Pin
dev_rfid13-Dec-05 1:16
dev_rfid13-Dec-05 1:16 
AnswerRe: Applet Pin
Curtis Schlak.13-Dec-05 4:58
Curtis Schlak.13-Dec-05 4:58 
Questionaccess denied problem javascript [urgent] Pin
uktrips00713-Dec-05 0:21
uktrips00713-Dec-05 0:21 
AnswerRe: access denied problem javascript [urgent] Pin
AfzalHassen13-Dec-05 1:11
AfzalHassen13-Dec-05 1:11 
GeneralRe: access denied problem javascript [urgent] Pin
uktrips00714-Dec-05 22:52
uktrips00714-Dec-05 22:52 
QuestionDropdownlist Datatextfield Pin
mcgann12-Dec-05 23:55
mcgann12-Dec-05 23:55 
AnswerRe: Dropdownlist Datatextfield Pin
NeverHeardOfMe13-Dec-05 10:23
NeverHeardOfMe13-Dec-05 10:23 
QuestionStreaming problem. Server to busy. Pin
Alsvha12-Dec-05 22:53
Alsvha12-Dec-05 22:53 
GeneralRe: Streaming problem. Server to busy. Pin
Guffa12-Dec-05 23:15
Guffa12-Dec-05 23:15 
GeneralRe: Streaming problem. Server to busy. Pin
Alsvha12-Dec-05 23:49
Alsvha12-Dec-05 23:49 

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.