|
Okay - here's the page cut down to almost bare minimums
<%@ LANGUAGE="VBSCRIPT" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<meta http-equiv="Expires" content="0" />
</head>
<body>
<%
sub Alert(sMsg)
Response.Write("<script type='text/javascript' language='javascript'>" _
& "alert('" & sMsg & "');</script>")
end sub
function DoSomething(sAction)
DoSomething = "Something was done for " & sAction & "."
end function
Dim myAction: myAction = request.QueryString("myAction")
Dim sRoomToProcess: sRoomToProcess = request.QueryString("roomid")
Dim sSomethingDone: sSomethingDone = ""
Dim bNeedRedirect: bNeedRedirect = false
Alert myAction & "\n" & sRoomToProcess
select case myAction
case "moveUp"
sSomethingDone = DoSomething(myAction)
bNeedRedirect = true
case "moveDown"
sSomethingDone = DoSomething(myAction)
bNeedRedirect = true
case "addRoom"
sSomethingDone = DoSomething(myAction)
bNeedRedirect = true
case "deleteRoom"
sSomethingDone = DoSomething(myAction)
bNeedRedirect = true
case "editRoom"
sSomethingDone = DoSomething(myAction)
case else
sSomethingDone = "Nothing was done (no parameters found)."
end select
if bNeedRedirect then
Response.Redirect("erBoard_roommgr.asp")
end if
%>
<a href="erBoard_roommgr.asp?myAction=addRoom&roomid=Room 1">Add</a><br />
<a href="erBoard_roommgr.asp?myAction=deleteRoom&roomid=Room 2">Delete</a><br />
<a href="erBoard_roommgr.asp?myAction=editRoom&roomid=Room 3">Edit</a><br />
<a href="erBoard_roommgr.asp?myAction=moveUp&roomid=Room 4">Up</a><br />
<a href="erBoard_roommgr.asp?myAction=moveDown&roomid=Room 5">Down</a><br />
<br />
<br />
<p>
<%=sSomethingDone%>
</p>
</body>
</html>
The problem appears to be that it's processing the Response.Redirect line BEFORE it gets the parameters from the querystring. Everything except the "EDIT" link causes a redirect (for purposes of example).
My desire is to actually clear the querystring after retrieving the values to avoid adverse effects caused by the user refreshing the page. I'd have no problem with eliminating the use of Redirect if there's a way to do so.
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
Hello,
I have firefox installed and I usually use it as my primary browser. However, I want to test my web application in IE. When I run the application it comes up in Firefox. If I open IE and browse to the default.aspx file and try to open it, IE refuses to open it (no error message or anything. IE just minimizes. When I bring it back up, it's still showing the page it was showing before I tried to open my default.aspx page).
I'm new to web development. Help on this will be greatly appreciated!
Thanks!
Ian
|
|
|
|
|
OK, so I'm an idiot. Obviously I can't open an aspx file directly as the server has to "serve" it up. So I go ahead and start the project in Firefox, then paste the url into IE, thereby requesting the page from IIS (does that sound right? Please correct me if I'm being a moron here!)
Still, how do hit F5 and launch the project in IE instead of Firefox?
Thanks!
Ian
|
|
|
|
|
ibowler wrote: OK, so I'm an idiot.
Self-realization is a wonderful thing. Acknowledging that you have a problem is the first step towards fixing it.
You have to start IE and browse to the page - the URL is necessary so that it can load the appropriate css/js/php script files.
My advice is once you type in the url and successfully get the page to display in IE, bookmark it so you don't have to type it in again. (I only say this because you are a self-proclaimed idiot and I can't safely assume that you'd think of bookmarking it.)
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
Do you want this?
Right Click the project -> Select Browse With.
Regards,
Arun Kumar.A
|
|
|
|
|
|
Can anyone type how can i get type image, file or something else in PHP?
Socheat
................
|
|
|
|
|
I found this on google[^]
I don't know if it will work for you, and if it doesn't, try using google to find something more appropriate.
How can you call yourself a programmer if you're too lazy to do look stuff up on your own?
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
Thanks i'll my best
................
|
|
|
|
|
$path_parts = pathinfo($fullPath);
$ext = strtolower($path_parts["extension"]);
|
|
|
|
|
Hi Guys,
Im using c# asp.net,i had used datagrid to display the record from the database,in the datagrid i had used template column as textbox now i need to highlight the row onmouseover using javascript and also specify in server side how to hande this? help me
rgrds
Kanna..
|
|
|
|
|
So, I've searched and searched this group for a Calendar interface for my site. There are certainly a lot of different implementations of the concept. However what I'm looking for is a Calendar that provides a bit more functionality ... and not being a "code jockey", I can't figure out how to modify the Samples here to get what I need. Which is:
1. A normal ASP.NET or VB Calendar that comes up with dates "pre filled" with an Item on a specific date(s)
(e.g., 7 PM - Concert in SF )
2. When I click on that DATE/item on the Calendar, a POP-UP should come up that displays a bit more details
(e.g., 7-11Pm Concert in the Park. info: www.cityconcert.sf/event )
3. The URL referenced in that popup Item should actually allow for a launcn in a separate browser window to that Event detail.
Does anyone know of a Calendar-like ASP.NET (or VB) function that would do this?
Thanks so much ... a very cool site >!!!
|
|
|
|
|
Hi Guys,
I wanted to put my 5 buttons over the image. I am using ASP.Net/AJAX. Is there a way in asp.net to do it without using java scripting?
Thanks in advance Guys.
hifiger2004
|
|
|
|
|
You can set the image as the background of whatever page element is containing the buttons, eg div or table cell...
<style>
...
#imagediv { background-image: #url(myimage.gif) ; }
...
</style>
<div id="imagediv">
... (buttons here) ...
</div>
For fine tuning do some CSS research!
cheers
Fred
|
|
|
|
|
And how I am going to do it in asp.net vb code?
hifiger2004
|
|
|
|
|
What, exactly, are you trying to do?
|
|
|
|
|
please try to click this link http://cvd.harnesstheweb.com
You will see there 6 buttons, and I want that button to be put inside the gray bar, which is part of the image. But it can't be done.
I hope you can help me with this
hifiger2004
|
|
|
|
|
Here is a test page for you, with the code culled from your page - but put the main image in the same folder (or alter the code here) to try it out.
There are "better" ways (ie making better use of the CSS and not having it inline etc), but this works and shows the principle...)
cheers
F
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<title>Untitled Page</title>
</head>
<body>
<div id="ctl00_UpdatePanel1" style="height: 159px; background: #ffffff url(cvdh.gif) no-repeat;">
<table style="width: 780px">
<tr>
<td style="height: 148px; text-align: center" valign="bottom">
<input type="submit" name="ctl00$Button7" value="Button" id="ctl00_Button7" style="color:Black;background-color:White;border-color:Transparent;border-style:None;font-weight:bold;" /></td>
<td style="height: 148px; text-align: center" valign="bottom">
<input type="submit" name="ctl00$Button8" value="Button" id="ctl00_Button8" style="color:Black;background-color:White;border-style:None;font-weight:bold;" /></td>
<td style="height: 148px; text-align: center" valign="bottom">
<input type="submit" name="ctl00$Button9" value="Button" id="ctl00_Button9" style="color:Black;background-color:White;border-style:None;font-weight:bold;" /></td>
<td style="height: 148px; text-align: center" valign="bottom">
<input type="submit" name="ctl00$Button10" value="Button" id="ctl00_Button10" style="color:Black;background-color:White;border-style:None;font-weight:bold;" /></td>
<td style="height: 148px; text-align: center" valign="bottom">
<input type="submit" name="ctl00$Button11" value="Button" id="ctl00_Button11" style="color:Black;background-color:White;border-style:None;font-weight:bold;" /></td>
<td style="height: 148px; text-align: center" valign="bottom">
<input type="submit" name="ctl00$Button12" value="Button" id="ctl00_Button12" style="color:Black;background-color:White;border-style:None;font-weight:bold;" /></td>
</tr>
</table>
</div>
<p>CVD website home page<p>
</body>
</html>
-- modified at 15:51 Friday 11th May, 2007
|
|
|
|
|
thank you I will try this one. thanks
hifiger2004
|
|
|
|
|
Sorry - post above modofoed (must've forgotten to tick html tags thing as the vital lines got written out...!)
F
|
|
|
|
|
Fred, thanks for your help. I applied the same way how it will be coded... you can see it here http://cvd.harnesstheweb.com.
But I have one more question if you may. How can I do a mouseover for example when the mousepointer is pointing at "eDigests" the font color will change to blue and when lostfocus it will back to color black. How will it be done?
hifiger2004
|
|
|
|
|
about the mouseover, I got it. thanks Fred
hifiger2004
|
|
|
|
|
solved this problem...
--------------------------------------------------------------------------------------
hi, i have a problem.
no much more knowledge with asp, i m fresh, try to learning.
my problem is ;
have an mail adresses more than thousand,(155,000), and i create any e-bulten and sending to this adresses.
but manually,
how to automatically send this e-bulten to this adresses.
i mean, i have web mail server account and web page.how to create a page to send automatically any mail to this adresses.one and one.
thank you much more
-- modified at 3:29 Monday 14th May, 2007
|
|
|
|
|
The site in question is a "classic" ASP site using VBScript (not .net). Do not suggest that I use .Net because it's not in the requirements for what I'm doing (although in this case I admit it would be a better choice)...
One of the pages appends stuff to the query string so that the post-back will reload the page and cause the page to behave/appear differently. It looks something like this when the post back occurs:
mypage.asp?myAction=blahblah&thisOption=1
In the process of testing the page, I came to realize that if the user refreshes the page, the previous contents of the querystring are once again passed to the browser (in a way, I can understand why). The only way I've discovered to clear the querystring (to avoid the refresh problem) is to do a redirect back to the same asp page with no querystring, like so:
Response.Redirect("mypage.asp")
Is there a way to actually erase the querystring without using Redirect? The way I'm doing it seems like a noob hack.
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
If you have control of the referring page use the post method instead of the get method to pass variables so they don't appear in the url in the first place.
The redirect only cloaks the problem because the full url is still in the browsers history and can be retrieved by hitting the back button.
The point is that once you have navigated to the page with get variables tacked on to the url the full url is in the browser history and can be accessed. If you want it not to appear use the post method to pass parameters to the receiving page.
|
|
|
|