|
If you put the link tag or script tag in the master page, you have to specify the location of the file relative to the master page. If the page that uses the master page is in a different folder, the address will be corrected to still point to the correct file.
For an example if have the master page /Profile/Master.master that has the tag:
<script type="text/javascript" src="scripts/test.js"></script>
and use the master page in the page /Content/Info.aspx, the tag will end up as:
<script type="text/javascript" src="../Profile/scripts/test.js"></script>
---
b { font-weight: normal; }
|
|
|
|
|
im working in asp.net for quite a while. but still naive in asp.
i ve some asp web site pages, which i need to run and review.
i created a folder (say myapp) and created an application using IIS and put all the asp pages in that Folder.
when i run http://localhost/myapp/index.asp it throws error
page cannot be found "subfolder/header.asp"
"subfolder" is a folder inside "myapp" folder
i understand ( ) there is a code within the index.asp
which i learned as a server side includes.
how can i figure out whether my server (IIS) supports SSI. i ve .net 1.1 installed in my machine and can run asp.net applications well.
what i ve to do to include the subfolders inside "myapp" to the application to run it properly.
Thanks for ur attention,
Harsha
-- modified at 3:56 Saturday 16th September, 2006
|
|
|
|
|
harshActsw wrote: how can i figure out whether my server (IIS) supports SSI.
It does.
harshActsw wrote: what i ve to do to include the subfolders inside "myapp" to the application to run it properly.
You have to write a proper path to the file that you want to include. As you are using a virtual path, it will start from the root of the web application. If you have created a web application for the folder, the root will be located at c:\inetpub\wwwroot\myapp . If you just created a folder inside the default web application, the root will be located at c:\inetpub\wwwroot . You have to write the path to the file relative to the root.
You can also use a relative path, by using the file keyword instead of virtual . Then you specify the path from the location of the page that is including the file.
---
b { font-weight: normal; }
|
|
|
|
|
Thanks a lot,It works fine.
|
|
|
|
|
Hi,
Could someone explain to me what a closure is and where are they used? I prefer an explaination in javascript.
thanks
|
|
|
|
|
|
Have you ever tried Google Notebook? After installing the software, it will add a button at the bottom-right corner of IE. Dose anybody know how to implement that ? Any reply is appreciated.
Thanks
R.Y.J
|
|
|
|
|
Please don't cross post.
---
b { font-weight: normal; }
|
|
|
|
|
Hi everybody
I'm trying to create a simple IM (based on IP), but I have far more basic problem.
I'm trying to ping my girlfriend's computer, but for some unknown reason I cannot see her ip (I'm getting "request time out").
my computer is connected to the net directly, while her computer is connected through a router to the net.
lets say that my internet IP is: 44.0.0.1(according to whatismyip.com)
my girlfriend's internet IP is: 77.0.0.1 (according to whatismyip.com)
my girlfriend's router IP (in her local network) is: 192.168.0.1
my girlfriend's computer IP (int her local network) is: 192.168.0.2
now, from my computer and her's I can ping to random sites like www.yahoo.com etc., but when I'm pinging from my computer to hers (from 44.0.0.1 to 77.0.0.1) I get request time out.
I REALLY don't understand why is that, and how to solve it (I will need it if I want to connect to her computer directly).
Besides, if I ever get this problem solved , I still need to direct myself into her comptuer in her local network (tell the router that I want to address 192.168.0.2 which is her computer).
Thanks alot for any kind of help! I am extremely stuck!
|
|
|
|
|
Green Fuze wrote: when I'm pinging from my computer to hers (from 44.0.0.1 to 77.0.0.1) I get request time out.
The router may be set up to not accept ping, or a software firewall on the computer may be.
Besides, if I ever get this problem solved , I still need to direct myself into her comptuer in her local network (tell the router that I want to address 192.168.0.2 which is her computer).
No, you don't. You use the ip address of the router when you communicate with her computer. The router translates back and forth between the external ip address and the internal ip address.
---
b { font-weight: normal; }
|
|
|
|
|
can u plz tell me how to pass an xml node from a webservice to a client.it gives me an error at this line of code which is at the client side
xmlnode node=service.getnode();
it gives some soap error that value cant be null.
any help wud be highly appreciated!!!
bia ali
|
|
|
|
|
Hi Friends,
I want to develop a system which allow users to upload large size files to web server.
I'll be using classical asp to do that,
I found some code on web and used that but it allows me to upload only small files.
Whenever i try to upload large file it doesn't show any progress.
is there any size limit for classical asp (for uploading files)?
Can any one help me compeleting this small application.
Any code or article will be welcomed.
tahnks
Naveed Kamboh
|
|
|
|
|
Are you doing this with a hosted server, or is it your own (or your company's). I ask, because it sounds more like ti could be an issue with the server.
If your server is hosted, I would contact your web hosts and ask them about it.
Words fade as the meanings change, but somehow, it don't bother me.
|
|
|
|
|
I m working on my local computer.
Naveed Kamboh
|
|
|
|
|
You could try using the AspUpload component. This allows you to specify a max size for you upload. If you set that above the highest size of the files you were trying to upload, it might possibly solve your problem.
http://www.aspupload.com/manual_simple.html[^]
Words fade as the meanings change, but somehow, it don't bother me.
|
|
|
|
|
Hi!
You should consider Server.ScriptTimeout value when you want to upload large files.
|
|
|
|
|
I have developed a web application in VS2005 which basically reads in a lot of different information from database, lets a user edit the data, and then compiles it all into a series of web pages to be printed by the user. It was required that the web pages are all displayed together so the user only has to print from one window.
I created a page which out puts the urls of the resultant pages into iframes. This has to be done dynamically, as the user selects the number of pages to print, and which ones he wants.
At first I found that for every page being printed, IE would print an extra blank page. After searching MS's knowledge base, and Google, I found that a table row stretched over the length of a page can cause this, so I got rid of the table. Now my page will print a single blank sheet before printing the rest of the pages. The HTML generated is below:
<form name="Form1" method="post" action="PrintPack.aspx" id="Form1">
<input type="hidden" name="__VIEWSTATE" value="dDwxNzcyNjM0OTY0Ozs+3OMqI2WcXXaduGBz58B1RA42Upw=" />
<div id="Panel1">
<IFRAME src="TruckPMSIP.aspx?SheetNo=1" frameBorder="0" width="722" scrolling="no" height="1002" style="margin ; padding "></IFRAME>
<IFRAME src="TruckService.aspx?Sheet=1&SheetNo=2" frameBorder="0" width="722" scrolling="no" height="1002" style="margin ; padding "></IFRAME>
<IFRAME src="TruckDefect.aspx?SheetNo=3" frameBorder="0" width="722" scrolling="no" height="1002" style="margin ; padding "></IFRAME>
</div>
<script language='javascript'>window.print()</script>
</form>
This only happens in IE, but my users will all be using IE, so I need to try and solve this problem. Any ideas would be very welcome.
|
|
|
|
|
Hello everyone
I have two submit buttons in same form with different value.the form having there comboboxes .. i want to validate three comboboxes when first submit button is clicked... and two combobox when second submit is clicked using javascript...i have tried but i am not able to get desired solution..
please reply me very soon.....thank you for reading my
question.....
|
|
|
|
|
First! do not define these buttons as submit buttons. Just define them as normal buttons and then check onclick. When click occurs, call a javascript and perform the validations you want. See onclick example below.
The statement above will look validatecombo1() function in scripting block. Do the same think for 2nd button but give a different name because of different validation.
I hope it works out for you!
|
|
|
|
|
i need to read the values in the datagrid row once the row is cliked and put them in textboxes without causing the page to postback, i tried to call a javascript function when the 'onItemCommand' event trigerred but it keep telling me (at run time) that the javascript function is not a member of the aspx page although its declared in the head tag? can you please help me.
Note: the datagrid has two rows, one is buttonColumn which i need it to cause the textboxes to be filled (its data will be filled in the first textbox), the other is a bound column that its data will be filled in the second textbox.
Ghassan
|
|
|
|
|
How you have associated the javascript to the button in the datagrid?
Best Regards,
Apurva Kaushal
|
|
|
|
|
i add ann attribute to the datagrid in the code behind (vb.net):
mydatagrid.attributes.add("onitemcommand","javascript function name")
thanx
Ghassan
|
|
|
|
|
Hi
I need to provide the user a way to select 30 minute slots across a 24 hour 7 day period. Using checkboxes looks awful - a grid of 48 x 7 (or 7 x48 ).
Also, if they want to block out a 3 hour period for example , they have to click 6 different boxes. The same period every day of the week - 6 * 7 clicks.
Any ideas how I can represent this?
Regards
Malc
*********************************************
|
|
|
|
|
Could you do something with drag & drop? For instance, to block out a 3 hour time slot, could place a block on the screen and allow the user to grab an edge and drag to the required size...
"Now I guess I'll sit back and watch people misinterpret what I just said......"
Christian Graus At The Soapbox
|
|
|
|
|
using Divs and DHTML? I'd have to trap the event.x event.y, translate them back to screen co-ords etc wouldn't I? Sounds a tad beyond me - unless I am missing something obvious and need hitting with a blunt instrument. Can you explain a little more info, or as they say alot on these forums...
plz give me the codes man that let me do this.
Thanks for you time.
Regards
Malc
*********************************************
|
|
|
|