|
Hello,
This is my first time to work on web development so I don't know from where to start.
All I know is that I have a web site already designed by Java Script and I need to modify it and add to it login forms, accessing DataBase, retrieveing information , sending emails programmatically...
So, first thing that come to my mind is to work with ASP.NET ( correct me if u have a better option please), if so I would like to know how to add the ASP forms to the Javascript.
Thanks,
Nermeen:
|
|
|
|
|
I think you're a little confused. It sounds like you're being asked to modify a site that is going to be used, perhaps in a paid position. You need to buy a book and work through it if you want any chance of being able to do this.
An overview:
No website is 100% javascript. A web browser knows how to do three things:
1 - display HTML
2 - run javascript, which can modify HTML
3 - style HTML using CSS
It's possible you're looking at VB script code, in which case, your site is written in asp. ASP.NET is the best system I know of for writing web pages, but the real question is, what is the existing site written in, and how much work would it be to integrate those pages with ASP.NET, if that's what you intend to do ?
Every system, ASP.NET, J2EE, asp, PHP, all exist to take program code and use it to generate HTML. HTML is the only language that can cause a web page to display anything more than plain text.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Is it possible to detect the IP address & ban visitors from particular IP addrress from visiting the website or a page , like is it possible to detect the IP address using javascript or some other mean & match & block the visitors from the certain area.
Do Not Follow Where The Path May Lead.
Go Instead Where There Is No Path; and leave a Trail
|
|
|
|
|
Try Get Client IP.
P.S. I like your sig.
Trinity: Neo... nobody has ever done this before.
Neo: That's why it's going to work.
|
|
|
|
|
I think that it is possible (I think that you need some server side code ...) but consider an IP address is not unique for a specific user.
-if multiple computers access the internet using a router (NAT) they all share the same IP, so you can block for example an entire office
-without a public static IP the same IP can be used from multiple computers (the IP is dynamically assigned by the internet provider)
-I think that there are some services used to hide your IP and browse the internet using another IP
I'm not an expert on this subject but I think that block the visitor only by the IP is not the right solution.
Davide
|
|
|
|
|
DEVILSAN wrote: Go Instead Where There Is No Path; and leave a Trail
OT - Sign at beach: "Tern nesting area. Walking on sand dunes in punishable by $1000 fine".
|
|
|
|
|
Writing VBScript in a "classic" ASP page...
I have several similar instances of the following code in a file called mypage.asp
<a href="mypage.asp?myAction=action1&myValue=1">Action1</a>
At the top of the same file, I have the following code:
Dim sAction: sAction = request.QueryString("myAction")
Dim sValue: sValue = request.QueryString("myValue")
' CHECK QUERYSTRING HERE
select case sAction
case "action1"
DoSomethingWith1(sValue)
case "action2"
DoSomethingWith2(sValue)
case "action3"
DoSomethingWith3(sValue)
case "action4"
DoSomethingWith4(sValue)
end select
Everything looks normal, right? (BTW, I typed this from memory so pardon any minor typos.)
Bizarre - Part 1
The first two "actions" are processed as you would expect. When I check the querystring at the indicated position (I throw up an alert box with the values in it), I see the values I expect. When it processes either of the 2nd two post-backs, the query string is empty.
Bizarre - Part 2
If I leave the select statement alone, but change the NAME of either querystring parameter, I get the expected querystring parameters
---------------------------------
Does anyone have any idea as to what I might have done wrong?
"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
|
|
|
|
|
Are you sure that these functions don't change the values of QueryString collection?
Can you post a complete sample so I can run it locally and check it?
|
|
|
|
|
I'm not sure you could duplicate it on a simpler page. I haven't tried it yet myself, but I'm going to when I get to work today.
"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
|
|
|
|
|
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?
|
|
|
|