Click here to Skip to main content
15,915,075 members
Home / Discussions / Web Development
   

Web Development

 
GeneralRe: ASP Session question... Pin
l a u r e n30-Jan-04 11:35
l a u r e n30-Jan-04 11:35 
GeneralRe: ASP Session question... Pin
theJazzyBrain31-Jan-04 3:48
theJazzyBrain31-Jan-04 3:48 
GeneralRe: ASP Session question... Pin
lanying_wzw26-Feb-04 1:53
lanying_wzw26-Feb-04 1:53 
GeneralPopup the entire content of a list control Pin
Anonymous30-Jan-04 1:49
Anonymous30-Jan-04 1:49 
GeneralRe: Popup the entire content of a list control Pin
Nathan Ridley31-Jan-04 12:18
Nathan Ridley31-Jan-04 12:18 
Questionhow to create email account on exchange server 2003 through programatically using asp.net,adsi,LDAP Pin
jillellamudi30-Jan-04 1:43
jillellamudi30-Jan-04 1:43 
AnswerRe: how to create email account on exchange server 2003 through programatically using asp.net,adsi,LDAP Pin
Member 36362836-Mar-11 4:34
Member 36362836-Mar-11 4:34 
GeneralResponse.Redirect problem in ASP Pin
Mohit Raj30-Jan-04 0:04
Mohit Raj30-Jan-04 0:04 
Hi, i am in urgent need of help in creating an asp script. I Will be very
greatful if someone can help me out.

Basically i have the following script that checks the record in the database ,
if it founds one then it dispalys some text on the page. else it inserts a new
record in the database and redirects to the second page.

We are using the following code...


---------------------------------------------------------

sub createNewUserschedule()

Dim strQuery
Dim rsScheduleSpec
Dim rsSchedule
strQuery= " Select * from User_Schedule_info where (UserId=" & UserId & " and
UserScheduleName='" & trim(UserScheduleName) & "')"

Set rsScheduleSpec = Server.CreateObject("ADODB.Recordset")
rsScheduleSpec.Open strQuery, cn, 1,1

If rsScheduleSpec.recordCount <= 0 Then
rsScheduleSpec.close
set rsScheduleSpec = nothing
'if already exists alerts the user

Response.Write("<html> <center><big><BR><BR><BR><BR><BR><BR><BR><BR><BR><b> User
Schedule Already Exists</b> </big></center></html>")

else

strQuery = "INSERT INTO USER_SCHEDULE_INFO
(UserId,UserScheduleName,DateCreated,DateModified) Values ( "& UserId & ",'" &
UserScheduleName & "' ,'" & FormatDatem(date()) & "','" & FormatDatem(date())
& "')"
cn.execute strQuery
strQuery="select UserScheduleId from USER_SCHEDULE_INFO where UserId =" &
UserId & " and UserScheduleName='" & UserScheduleName & "'"

set rsSchedule = Server.CreateObject("ADODB.Recordset")
rsSchedule.open strQuery, cn,1,1
if rsSchedule.RecordCount > 0 then
UserScheduleId=rsSchedule.Fields.Item("UserScheduleId").value
Response.Redirect("UserSchedule.asp?User_Id=" & UserId &
"&UserScheduleId=" & UserScheduleId )
end if
rsSchedule.close
set rsSchedule = nothing

End If
End Sub
'execute the function
createNewUserschedule
--------------------------------------------------------

We are getting the userId and the UserSchedule NAme from a previous form.

But the problem is that in some cases when a new name is provided it inserts the
values in the database but is not able to redirect it to the new page ...
that is although it sends the 302 request but then instead of moving to the new
page it calls the same page and then founds the record and displays the text in
the if condition




Mohit Raj
(mohit.raj@mailcity.com)
GeneralRe: Response.Redirect problem in ASP Pin
Anonymous30-Jan-04 23:54
Anonymous30-Jan-04 23:54 
GeneralPrinting without header and footer in Internet Explorer Pin
Member 32088429-Jan-04 21:42
Member 32088429-Jan-04 21:42 
GeneralSending message from Web Service to Client Pin
Majid Shahabfar29-Jan-04 9:33
Majid Shahabfar29-Jan-04 9:33 
GeneralRe: Sending message from Web Service to Client Pin
Mazdak29-Jan-04 9:55
Mazdak29-Jan-04 9:55 
Generalexternal javascript files... Pin
l a u r e n29-Jan-04 9:05
l a u r e n29-Jan-04 9:05 
GeneralRe: external javascript files... Pin
alex.barylski29-Jan-04 11:35
alex.barylski29-Jan-04 11:35 
GeneralMulti file upload Pin
alex.barylski29-Jan-04 7:54
alex.barylski29-Jan-04 7:54 
GeneralRe: Multi file upload Pin
l a u r e n29-Jan-04 9:01
l a u r e n29-Jan-04 9:01 
GeneralRe: Multi file upload Pin
alex.barylski29-Jan-04 11:28
alex.barylski29-Jan-04 11:28 
GeneralSuggest an MS project in Web Development Pin
fidodidoo29-Jan-04 6:59
fidodidoo29-Jan-04 6:59 
GeneralRe: Suggest an MS project in Web Development Pin
alex.barylski29-Jan-04 7:51
alex.barylski29-Jan-04 7:51 
Generalclient side programming in asp .net using c# Pin
POKRI29-Jan-04 1:10
POKRI29-Jan-04 1:10 
GeneralRe: client side programming in asp .net using c# Pin
Ian Darling29-Jan-04 2:26
Ian Darling29-Jan-04 2:26 
GeneralRe: client side programming in asp .net using c# Pin
POKRI29-Jan-04 23:04
POKRI29-Jan-04 23:04 
QuestionWhat is Document.MM_sr and Document.MM_P Pin
Inam29-Jan-04 1:03
Inam29-Jan-04 1:03 
AnswerRe: What is Document.MM_sr and Document.MM_P Pin
hxxbin29-Jan-04 6:38
hxxbin29-Jan-04 6:38 
Generalembedding mediaplayer in a webpage... Pin
l a u r e n28-Jan-04 14:29
l a u r e n28-Jan-04 14:29 

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.