Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


asp page cache

 
Logged in as: Guest
arrSession:exec spGetSession 2,3,1927
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> ASP >> asp page cache
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 asp page cache - 1/29/2005 12:05:18 AM   
  vir_pat98

 

Posts: 8
Score: 0
Joined: 10/22/2004
From:
Status: offline
this is for iis 6 administration.


<html>
<body>
<form action="viral.asp" method="post">
Host name:
<br />
<input type="text" name="hname" size="20"><br />
<br />
IP Addres:
<br />
<input type="text" name="hip" size="20"><br />
<br />
Port:
<br />
<input type="text" name="hport" size="20"><br />
<br />
Site Discription:
<br />
<input type="text" name="hdisc" size="20"><br />
<br />
<input type="submit" value="Submit">
<br />
</form>

<%
dim hname
dim hip
dim hport
dim hdisc1

strComputer = "."
Set objWMIService = GetObject _
("winmgmts:{authenticationLevel=pktPrivacy}\\" _
& strComputer & "\root\microsoftiisv2")

Set objWebService = objWMIService.ExecQuery _
("Select * From IISWebService")

arrBindings = Array(0)
Set arrBindings(0) = _
objWMIService.Get("ServerBinding").SpawnInstance_()
arrBindings(0).IP = Request.Form("hip")
arrBindings(0).Port = Request.Form("hport")
arrBindings(0).Hostname = Request.Form("hname")
hdisc1=cstr(Request.Form("hdisc"))

For Each objItem in objWebService
objItem.CreateNewSite hdisc1, arrBindings, _
"c:\inetpub\wwwroot"
Next

Response.Redirect("/confirm.htm")
%>
</body>
</html>



after executing this page, when i press refresh, it says "the page cannot be refreshed without resending the information. Click retry to send the information again." and if i click retry, it adds the same entry again in IIS. what i want is, clear the information after sending it once, so that if someone refreshes the page, no info should get sent to the server. Also i also want it to give error if i try to add the same host again.
 
 
Post #: 1
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> ASP >> asp page cache Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts