|
Hi,
I'd like to host two intranet sites on one IIS server, without using subdirectories. They don't necessarily need meaningful names, but it would be nice anyway.
I know it's possible - but how?? :puzzled:
TIA
Peter
skulls don't kiss for an explanation - wait for the vacation photos! [sighist]
|
|
|
|
|
peterchen wrote:
without using subdirectories
Do you mean you want it so that you will have two intranets where the URLs contain no sub-directiors? e.g. http://intranet1 and http://intranet2 as opposed to http://intranet/1 and http://intranet/2 .
Either way, this article seems quite helpful: How to Create Multiple Websites with one IP address [^]
Paul Watson Bluegrass Cape Town, South Africa Ray Cassick wrote: Well I am not female, not gay and I am not Paul Watson
|
|
|
|
|
This one leaves me a bit puzzled (although it seems to do what I want to).
Where do I specify the location of the second sites's files?
(The "different port" solution would be ok with me )
skulls don't kiss for an explanation - wait for the vacation photos! [sighist]
|
|
|
|
|
If I remember correct from NT4 days, you will need to setup host headers, quite easy via the IIS manager, but only works on the server versions of IIS, else you can use some cheap scripts that doesnt really qualify as virtual hosting.
Hope this helps
"I dont have a life, I have a program."
|
|
|
|
|
Hi,
In my form, I have two text fields called txt1 and txt2. I am using javascript pop up calender and creating date value for txt1 and calling a function onchange="popVal()" in txt1.
function popVal(){
window.document.form1.txt2.value = window.document.form1.txt1.value
}
this does not insert the txt1 date value into txt2. I tried onblur, onfocus as well. can any body help?!
I will be most greatful. Thank you.
Bravo Two Zero
A pen is mighter then a sword.
|
|
|
|
|
BravoTwoZero wrote:
and calling a function onchange="popVal()" in txt1.
function popVal(){
window.document.form1.txt2.value = window.document.form1.txt1.value
}
This won't work as you have noted when you are setting the values programmtically. No "event" has taken place for that function to be called. I would assume that you are either loading the pop up calendar either with the onLoad event or by clicking a button. I would suggest that you add an additional function call to check the value of txt1 after the function has returned, then populate txt2. Hope this helps.
Nick Parker
May your glass be ever full.
May the roof over your head be always strong.
And may you be in heaven half an hour before the devil knows you’re dead. - Irish Blessing
|
|
|
|
|
I try to get a 1 pixel size border at the bottom of my cell in a table:
style="border-bottom-style: solid"
This will give me a bold border...
I tried this but it didn't worked:
style="border-bottom-style: 1 solid"
This gave me nothing... huh? okay.. can you suggest something?
Rickard Andersson@Suza Computing
C# and C++ programmer from SWEDEN!
UIN: 50302279
E-Mail: nikado@pc.nu
Speciality: I love C#, ASP.NET and C++!
|
|
|
|
|
style="border-bottom-width : 1; border-bottom-style: solid"
Back to real work : D-20.
|
|
|
|
|
Rickard Andersson wrote:
style="border-bottom-style: 1 solid"
You cannot do that. Basically there are many ways of specifing the border.
One is like so: border: solid 1px #000000
Or you can break that up into:
border-width: 1px;
border-style: solid;
border-color: #000000;
Now that can be done for border-top , border-right , border-bottom and border-left
e.g. border-bottom: solid 1px #000000 or
border-botton-width: 1px;
border-botton-style: solid;
border-botton-color: #000000;
CSS gives you quite a few options to suite your coding style. I prefer the "all on one line" option and it is naturally lighter on bandwidth (which matters when a CSS file is downloaded hundreds of thousands of times a day.)
What you were trying to do is set the style of the border-bottom to a width of 1 .
Also remember to put in the units for widths, e.g. px, em, % or pt. If you leave it out then different browers default to different things, which is bad
Paul Watson Bluegrass Cape Town, South Africa Ray Cassick wrote: Well I am not female, not gay and I am not Paul Watson
|
|
|
|
|
Paul Watson wrote:
Also remember to put in the units for widths, e.g. px, em, % or pt. If you leave it out then different browers default to different things, which is bad
Ought... I think I have much work to do!
Thank you for all that!
Rickard Andersson@Suza Computing
C# and C++ programmer from SWEDEN!
UIN: 50302279
E-Mail: nikado@pc.nu
Speciality: I love C#, ASP.NET and C++!
|
|
|
|
|
I've finally gotten around to playing with ASP (yeah only a few years behind everyone else - I've been busy!) and I love it! I had an ADO data access page working great this week until I tried to get cutesy and put the connection object in an include page. Theoretically this would allow me to use the same connection across many pages. In practice, it crashes IIS 5.0 with the message "exception 'Runtime Error'" whenever I try to access the calling page.
I tried enabling all verbs for .asp extensions on the virtual direcory that contains the files, but that didn't help. I tried restarting IIS after making that change, but after stopping it I found that I can no longer start IIS - it reports a duplicate address in use. The MS Knowledge Base offered a few clues, all wrong as usual, and using two different port scanners I confirmed that no other program is using port 80. Rebooting the machine solved the problem of being unable to start IIS, but it didn't help the problem of using SSI scripts - it still doesn't work, providing the helpful meesage that an Object was expected in the calling script. The object in question is a connection created by the included file.
Is there a switch in IIS that I need to set to allow SSIs to work? It's not a big deal, as I can create connections on every page and make it work nicely. But it's a pain to do so, and I suspect that it's a poor practice, as well. I'd really like to make SSI work - any thoughts?
"When in danger, fear, or doubt, run in circles, scream and shout!" - Lorelei and Lapis Lazuli Long
|
|
|
|
|
Hi,
I have once seen this problem. I tried re-installing MDAC -- Microsoft Data Access Component and a reboot after that solved the problems associated with
Server.CreateObject("ADODB.Connection")
Perhaps you can try reinstalling MDAC 2.7 (which is the latest one now)
Deepak Kumar Vasudevan
http://deepak.portland.co.uk/
|
|
|
|
|
That's a good thought, but the problem isn't with creating the connection. When I put the connection code in the main page it works fine. The errors occur when I try to put the connection code in an include file. The main page then acts as if the #include never happenned, and the object was never created. I copied and pasted working code from the main page to the include file, then added the include directive to the top of the main page, saved everything, and it all stopped working. That led me to suspect that my installation of IIS may be corrupted, so I reinstalled it tonight. I haven't played with the site anymore tonight, but a quick check indicates that the reinstallation helped something. My default site was hacked last April replacing a lot of the content, and I thought I had it all cleaned out. But since then it has been impossible to contact http://localhost, and now that's working again. Maybe ASP will work again, too!
"When in danger, fear, or doubt, run in circles, scream and shout!" - Lorelei and Lapis Lazuli Long
|
|
|
|
|
Has everyone here tried asp.net web matrix on
http://www.asp.net/webmatrix?
I think it's worth while trying,
But it seems to have a major problems,that is can't be used outside english codes,I mean it can't display any other languages characters other that english?
What is your opinion?
this is my signature for forums quoted from shog*9:
I can't help but feel, somewhere deep within that withered, bitter, scheming person, there is a small child, frightened, looking a way out.
|
|
|
|
|
This should go in the ASP.NET forum...but I'll answer it anyway.
Yeah. I have used WebMatrix. Let me say this, I love VS.NET...it is way cool. That being said, I find that I am most productive when I use both side by side. Sometimes when I'm done developing, and I'm testing on the actual server instead of my laptop, and something doesn't work...I love WebMatrix. I can FTP into the server, change the stuff, hit save, and it re-uploads everything...very cool. Also, there's some nifty stuff built into WebMatrix like the Online component gallery.
My only complaint is that it doesn't support code-behind. I use code behind everywhere. Mainly because I use VS.NET and it has all the benefits geared towards code-behind and because I hated the ASP model of things with "spaghetti code".
But overall, it's really geared for small stuff. Tinkering that you need to do last minute. I wouldn't dream of creating an entire site in it. But I find it exceedingly useful for maintenance stuff and the tiny stuff that needs reworking occasionally.
You will now find yourself in a wonderous, magical place, filled with talking gnomes, mythical squirrels, and, almost as an afterthought, your bookmarks
-Shog9 teaching Mel Feik how to bookmark
I don't know whether it's just the light but I swear the database server gives me dirty looks everytime I wander past.
-Chris Maunder
|
|
|
|
|
Hi. David.
From USA?and only use english,lucky,then you will not encounter the problems I faced now.
The web matrix did not load aspx files properly when there are chars other than english in that file,such as chinese can't be displayed?
I want opinions from using web matrix in non-english languages?
Thanks.
this is my signature for forums quoted from shog*9:
I can't help but feel, somewhere deep within that withered, bitter, scheming person, there is a small child, frightened, looking a way out.
|
|
|
|
|
Sorry about that. Didn't realize that you were just asking for non-English speaking people's opinions. Well, now you know what I think of WebMatrix.
You will now find yourself in a wonderous, magical place, filled with talking gnomes, mythical squirrels, and, almost as an afterthought, your bookmarks
-Shog9 teaching Mel Feik how to bookmark
I don't know whether it's just the light but I swear the database server gives me dirty looks everytime I wander past.
-Chris Maunder
|
|
|
|
|
zhoujun wrote:
But it seems to have a major problems,that is can't be used outside english codes,I mean it can't display any other languages characters other that english?
Search a week down in the ASP.NET forums. Mazdak gave an answer, the other person was trying to work with Swedish characters...cant remember exact details...
"I dont have a life, I have a program."
|
|
|
|
|
I searched,but seems they were not talking about web matrix?
regards,
zhoujun.
|
|
|
|
|
zhoujun wrote:
What is your opinion?
My opinion is that it is a free tool and we should be thankful it exists at all.
If you need more advanced features, then you are probably in a commercial environment and then should get a hold of VS.NET.
Paul Watson Bluegrass Cape Town, South Africa Ray Cassick wrote: Well I am not female, not gay and I am not Paul Watson
|
|
|
|
|
Is there any option to align the text inside the table justified both left and right as it can be done in WORD??
|
|
|
|
|
Ever heard of WYSIWYG tools such as FrontPage, Dreamweaver,... ?
I am not saying you should always use such tool to produce HTML code, but isn't it obvious these tools provide you with answers such like how to do text alignment in html by just applying the alignment first and see the resulting html code in the source code view ?
Back to real work : D-21.
|
|
|
|
|
That option is not in frontpage (I think so). Have not tried dreamweaver.....
Thanks....
|
|
|
|
|
I haven't mentioned any option. I have showed a general way to solve your html coding problems.
I could answer you for the very practical issue you have here, but as you can see for yourself someone else has also answered you.
|
|
|
|
|
|