Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx_beginners thread: img source href


Message #1 by "Chadrick" <chadm@d...> on Wed, 7 Aug 2002 11:38:21 -0400
How do I make sure the Img Src href is pointing to the file by document
root relative or site root relative instead of using the file system?

When I add an image it uses the file path. When I drag and drop an image
into the project from the Solutions Explorer it gets put in document
root relative. How do I configure this?

Chadrick Mahaffey



Message #2 by "Ken Schaefer" <ken@a...> on Thu, 8 Aug 2002 13:34:09 +1000
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
From: "Chadrick" <chadm@d...>
Subject: [aspx_beginners] img source href


: How do I make sure the Img Src href is pointing to the file by document
: root relative or site root relative instead of using the file system?
: 
: When I add an image it uses the file path. 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

I'll let you in on a secret - none of the people on this list can:
a) read your mind or
b) see what is happening on your computer :-)

When you say "it" is doing "x", what exactly is "it"? 

Cheers
Ken

Message #3 by "Mrinal Srivastava" <mrinal.srivastava@p...> on Tue, 13 Aug 2002 11:50:38 +0530
Hi,
Here is a real beginner's question.
If I'm suign IIs as my webserver, where should I physically store my aspx
pages and how to access them?
And next question is, Why isn't this code working.

<%@ Page Language="C#" %>
<html>
   <head>
   </head>

   <body>

     <% for (int i=0; i<10; i++) {
       Console.WriteLine("Mrinal <BR>");
     } %>

   </body>
</html>

Please respond once you are done laughing at this stupid question.
:-)

Regards

Message #4 by "Hovik Melkomian" <melvik@b...> on Tue, 13 Aug 2002 10:56:17 +0430
Dear Friend:
Fisrt dont be up set cuz all r not perfessional at first.
Then, when u r useing ur IIS as web server it works under a location.
u work with a Virtual Directory: It means u have a directory like
D:\PAGES then u give a name (alias) to it as PG  OK!?!?
Then since u r working under ur IIS, u'll use ur localhost.
so, now u have a Folder (D:\PAGES) & an alias to it in IIS (PG)
u'll put ur pages in ur filder & to access them just write
\\localhost\pg it'll access ur default page in IIS witch normally is
index.htm, index.asp, default.htm, default.asp to use aspx files as
a default page make them set in ur IIS setup.

eg: to access a page like form.aspx in ur PG virsualDirectory use
\\localhost\pg\form.aspx

thats all,
Hovik.

----- Original Message -----
From: "Mrinal Srivastava" <mrinal.srivastava@p...>
To: "aspx_beginners" <aspx_beginners@p...>
Sent: Tuesday, August 13, 2002 10:50 AM
Subject: [aspx_beginners] Re: img source href


Hi,
Here is a real beginner's question.
If I'm suign IIs as my webserver, where should I physically store my aspx
pages and how to access them?
And next question is, Why isn't this code working.

<%@ Page Language="C#" %>
<html>
   <head>
   </head>

   <body>

     <% for (int i=0; i<10; i++) {
       Console.WriteLine("Mrinal <BR>");
     } %>

   </body>
</html>

Please respond once you are done laughing at this stupid question.
:-)

Regards





  Return to Index