|
I am a newbie, so excuse my lack of knowledge. Long ago, a couple years I wrote a very basic web page to hit a local server. When I try to open the project, located on the server I get an error
"Unable to open Web Project "XXX". The file path "w:\inetpub\wwwroot" does not correspond to the URL "http://LocalHost:XXX" the two need to map to the same server location. HTTP Error 404: Object Not Found"
I recall setting someting up long ago with IIS... as I mention it has been a long time since I have looked at this, can anyone point me in the right direction?
Thanks in advance
|
|
|
|
|
i think you have store the prject in the default root directory i.e wwwroot
check the home directory settings of the IIS in its properties or
create a virtual directory and store the project in it Might helpfull
<l>Thanks and Regards
Sandeep
|
|
|
|
|
Hi,
Generally what this script does is gets dates input by a user and then redirects to another page to get values from a mysql database where the dates match those input. My problem is that when you go back to change the dates the infromd and indepartd lists are blank rather than having them populated with the previously selected months values. (The selected months are still selected!). Would be greatfull for any help.
<br />
<br />
function daysInMonth(month,year) {<br />
var dd = new Date(year, month, 0);<br />
return dd.getDate();<br />
}<br />
<br />
<br />
function change1(month,list)<br />
{ <br />
if(list == "infromm")<br />
var fromlist = document.emuas.infromd;<br />
else if(list != "infromm")<br />
var fromlist = document.emuas.indepartd;<br />
<br />
fromlist.options.length=0;<br />
var days = daysInMonth(month, 2007);<br />
for(i=1;i<(1+days);i++){<br />
fromlist.options[i] = new Option(i,i,false,false);<br />
}<br />
}<br />
(in the body tag and in a form called emuas)<br />
<select name="infromd" id="infromd" class="trans" title=""><br />
<br />
</select><br />
<br />
/<br />
<select class="trans" name="infromm" title="" onchange="change1(this.selectedIndex,this.name)"> <br />
<option value="00">Month</option><br />
<option value="1">Jan</option><br />
...etc<br />
<option value="8">Aug</option><br />
<option value="9">Sep</option><br />
<option value="10">Oct</option><br />
<option value="11">Nov</option><br />
<option value="12">Dec</option><br />
</select><br />
<div class="select2"><span>Depart:</span></div> <br />
<select class="trans" id="indepartd" name="indepartd" title=""><br />
<br />
</select><br />
/<br />
<select class="trans" name="indepartm" title="" onchange="change1(this.selectedIndex,this.name)"><br />
<option value="00">Month</option><br />
<option value="1">Jan</option><br />
....etc<br />
<option value="12">Dec</option><br />
</select><input type="submit" name="Submit" value="Submit" /></form>';<br />
<br />
Thanks
Nicky
|
|
|
|
|
Hi, I just wrote some javascript codes to move a div object by mouse-moving.
But the smoothness of the moving is not perfect.
I can correct this problem in IE by using setCapture & releaseCapture functions,
but I can't in firefox.
If anybody knows how to fix that problem, then help me.
Thank you.
The following code is the code I mentioned.
<html>
<style>
.Obj
{
width:100px;
height:100px;
background:red;
position:absolute;
z-index:100;
};
</style>
<script>
var bFlag = false;
var offsetX, offsetY;
function fnInit()
{
div1.addEventListener("mousedown", fnDown, false );
div1.addEventListener("mouseup", fnUp, false );
div1.addEventListener("mousemove", fnMove, false );
}
function fnDown()
{
bFlag = true;
offsetX = arguments[0].clientX - parseInt(div1.style.left);
offsetY = arguments[0].clientY - parseInt(div1.style.top);
}
function fnUp()
{
bFlag = false;
}
function fnMove()
{
if(bFlag)
{
div1.style.left = arguments[0].clientX - offsetX;
div1.style.top = arguments[0].clientY - offsetY;
}
}
</script>
<body onload="fnInit()">
<p>asdlfj lfkasdlfkj aslkjasdlf; asdklfj asdlfkj </p>
<p>asdlfj lfkasdlfkj aslkjasdlf; asdklfj asdlfkj </p>
<p>asdlfj lfkasdlfkj aslkjasdlf; asdklfj asdlfkj </p>
<p>asdlfj lfkasdlfkj aslkjasdlf; asdklfj asdlfkj </p>
<p>asdlfj lfkasdlfkj aslkjasdlf; asdklfj asdlfkj </p>
<p>asdlfj lfkasdlfkj aslkjasdlf; asdklfj asdlfkj </p>
<p>asdlfj lfkasdlfkj aslkjasdlf; asdklfj asdlfkj </p>
<p>asdlfj lfkasdlfkj aslkjasdlf; asdklfj asdlfkj </p>
<p>asdlfj lfkasdlfkj aslkjasdlf; asdklfj asdlfkj </p>
<p>asdlfj lfkasdlfkj aslkjasdlf; asdklfj asdlfkj </p>
<p>asdlfj lfkasdlfkj aslkjasdlf; asdklfj asdlfkj </p>
<input type="text" id = "txt1" />
<div class="Obj" id = "div1" style="{left:20;top:50;}"></div>
</body>
</html>
|
|
|
|
|
Hi All
I need some help. I'm not to clued up on this topic.
I have writen a web service that performs as I need it. ( On my development machine XP) when I install the web service on a clients machine (XP) the web service install correctly with the install program but when I try to edit my web.config file via my web service I get access denied. I can set the security settings when the machine is part of a domain. But this needs to happen automatically. I can not set the securtiy settings (dont know how) when the machine is not part of the domain.
Help in this regard will be much appreciated.
Kind regards
|
|
|
|
|
you rewrite the web.config as environment.config.current and use that one for making any changes
<l>Thanks and Regards
Sandeep
|
|
|
|
|
hi !!
I'hv scroll bar with tag.
I can capture the onscroll event and also get scroll value on runtime.
but I am not able to set Min and Max value, smallchange and large change
for scroll bar.
Pl. help me out
Shital
|
|
|
|
|
<link rel="stylesheet" type="text/css" href="mlogic.css" />
When I add this line to an XHTML transitional page, I get the following error:
end tag for element "HEAD" which is not open.
document type does not allow element "BODY" here.
when I validate with the w3c XHTML validator at http://validator.w3.org/[^]
If I remove the line, the errors are gone.
The document looks like:
<br />
<?xml version="1.0" encoding="utf-8" ?><br />
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"<br />
"http://www.w3.org/TR/html4/loose.dtd"><br />
<html><br />
<head><br />
<title>Welcome to Micrologic Networks</title><br />
<link rel="stylesheet" type="text/css" href="mlogic.css" /><br />
</head><br />
modified 29-Aug-18 21:01pm.
|
|
|
|
|
I found the answer. In XHTML,
<br />
<link rel="stylesheet" type="text/css" href="mlogic.css" /> should be replaced by
<link rel="stylesheet" type="text/css" href="mlogic.css">
modified 29-Aug-18 21:01pm.
|
|
|
|
|
That isn't Valid Xhtml
Brad
Australian
- Christian Graus on "Best books for VBscript"
A big thick one, so you can whack yourself on the head with it.
|
|
|
|
|
|
From the W3c:
(note that this is not the case with XHTML).
Brad
Australian
- Christian Graus on "Best books for VBscript"
A big thick one, so you can whack yourself on the head with it.
|
|
|
|
|
Exactly, but it still gives an error. As you said, a problem with the validator. I started writing XHTML today; are there any better validators?
Thomas
modified 29-Aug-18 21:01pm.
|
|
|
|
|
Not that I have come across. The best way to write Valid Xhtml is to take full advantage of layout. Be VERY strict about tabs and things like that. Pretend you are writing XML (Which you essentially are). Dreamweaver has a reasonably good tool, but I would not rely on it.
Another good posibility are the many firefox addons. These are free and often quite good.
Brad
Australian
- Christian Graus on "Best books for VBscript"
A big thick one, so you can whack yourself on the head with it.
|
|
|
|
|
The w3c doesn't know what it is doing.
Brad
Australian
- Christian Graus on "Best books for VBscript"
A big thick one, so you can whack yourself on the head with it.
|
|
|
|
|
You're trying to validate a HTML 4 document. For XHTML start with:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
Try validating after this change.
|
|
|
|
|
Thank you
modified 29-Aug-18 21:01pm.
|
|
|
|
|
|
There is a MySQL ADO.NET library available on the MySQL site, with that you won't need ODBC at all.
Find it here
|
|
|
|
|
Hi!
i have to play videos in my aspx pages but i cant find any control for that. So, is there any control to be downloaded in my application to play videos. In html i know how to use media player control but i need to code in C#.
thanx
|
|
|
|
|
You can ask this question as often as you like. The answer will not change. Your C# code runs on your server. The client will just run the HTML and javascript. The best you can do, is create HTML that does what you want, via a C# control. You will almost certainly do this using the media player control.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
u just leave this questions its out of ur undersatnding
|
|
|
|
|
I don't know whether to laugh or cry?!
You don't need to do it in C#, an aspx page can contain as much HTML as you like. If you already know how to do it that way use it!
|
|
|
|
|
coz we have done it just before a while 
|
|
|
|
|
ROTFL - that's brilliant.
You *can* run C# on the client, if you create controls and embedd them in the page. It just opens security hassles, and would be stupid to do for something as simple as a media player.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|