|
i try to open the .asp file in IE but it keep asking me to save the aso file!! after i save nothing happen? even i press open nothing happen!???
|
|
|
|
|
Are you sure You made virtual directory and your IIS server is properly runing.Try http://localhost/ then enter .This will show is IIS running properly
|
|
|
|
|
oh it said the page cannot be displayed..?? i'm using windows XP home edition.... can i create the IIS server with it????
|
|
|
|
|
Ok GO to add/remove programe in control pannel.Then click on add/remove winows component.Here in give list check IIS and click next .It will ask you to insert windowsxp CD also.On completion try
http://localhost/
it should not show that "page cannot be displayed insted it show some local host set up.Then Tell me till here progress
|
|
|
|
|
Ok GO to add/remove programe in control pannel.Then click on add/remove winows component.Here in give list check IIS and click next .It will ask you to insert windowsxp CD also.On completion try
http://localhost/
it should not show that "page cannot be displayed insted it show some local host set up.Then Tell me till here progress
|
|
|
|
|
i'm not really sure wat is the global.asa use for? i have read some article but... still not sure with it... is it use for databse stuff?? can i use it to show the templete of my site such as header and footer?
|
|
|
|
|
Its is such a file which is accessible from all pages in that directory.Suppose you want to add Session_on_start event .Then If you write it in Global.asa file then its accessible from all pages and all pages can change the value of variable used in global.asa file.
|
|
|
|
|
how to use this kind of file??? put wat coding on each of my content page??
in the global.asa can i link all my page to have open the header and footer??
header.asp, footer.asp
|
|
|
|
|
global.asa
that's a first events in the application, when application star(end) or session start(end)
Everlasting love for angela.
|
|
|
|
|
Hi,
I'm trying to build a page that have a header, middle pane, and a footer.
The footer should be always floating on the lower edge of the window, and the header and footer heights should remain constant.
I created 3 div sections. And the only way I found to do this is to always resize the height of the middle pane when the user resizes the window and make it equal to window height minus header and footer heights.
But this caused the page to be flickering so much while user is resizing the page.
Does anyone has an idea about how could I stop this flickering?
Thanks,
Ahmed
|
|
|
|
|
It seems that this happens only on IE as it raises the onResize event multiple times until the user stops resizing the window.
You can try introducing a delay in calling the resizing function, like the example below:
<SCRIPT type="text/javascript">
<!--
var resizeDelay;
function resize()
{
<code>
document.body.style.backgroundColor=(document.body.style.backgroundColor=="black")?"white":"black";
}
onresize=function()
{
<code>
clearTimeout(resizeDelay);
resizeDelay=setTimeout("resize()", 200);
}
</SCRIPT>
"Democracy is two wolves and a sheep voting on what to have for dinner" - Ross
Edbert
Sydney, Australia
|
|
|
|
|
anyone use dreamweaver to create.asp website???
i have so many question on it, such as the using include for the header and footer, when i test the site press F12 in dreamweaver it come out correctly but when i type in the address in my browser the header and footer is gone!?? anyone know wat happen any how to fix it?? even when i try test again in dreamweaver by pressing F12, the site show correctly, but when i try to link it to other page, those footer and header also gone!?? i did put the code include command inside... anyone have the solution?
the include code i put is like this
content page.....
|
|
|
|
|
What address do you type in? You have to view the page through IIS for the SSI (server side includes) to work. You can't just view the file through the file system.
---
b { font-weight: normal; }
|
|
|
|
|
wat is the IIS? actully when i design in dreamweaver i press F12 to preview it, it work correctly. but when i click on the link to other page let said page2.asp the header and footer was not there, where i had already put the incude header and footer in the page2.asp....
|
|
|
|
|
IIS is Internet Information Server. It's the web server that comes with Windows (except XP home).
I've never used Dreamweaver so I don't know how it previews pages. What is the URL of the page when you preview it?
---
b { font-weight: normal; }
|
|
|
|
|
i havent post on the web. i just try to open it on my local computer, my page actually not yet include asp code yet, only interface,javascript and some information.
i'm thinking to try the global.asa which i found in article about to change templete with the site more easily... do u have any more resource about it?
|
|
|
|
|
I have written this code for a text box which accepts only number, but it is failing when I press any other key with shift button, can any body help me to solve this problem.
function isNumericKeyStroke()
{
var returnValue = false;
var keyCode = (window.event.which) ? window.event.which : window.event.keyCode;
if ( ((keyCode >= 48) && (keyCode <= 57)) || // All numerics
(keyCode == 8) || // Backspace
(keyCode == 13) ) // Carriage Return
returnValue = true;
if ( window.event.returnValue )
window.event.returnValue = returnValue;
return returnValue;
}
|
|
|
|
|
This worked in IE (not FF):
function isNumericKeyStroke()<br />
{<br />
var returnValue = false;<br />
var keyCode = (window.event.which) ? window.event.which : window.event.keyCode;<br />
<br />
if (!window.event.shiftKey)<br />
{<br />
if ( ((keyCode >= 48) && (keyCode <= 57)) ||
(keyCode == 8) ||
(keyCode == 13) )
returnValue = true;<br />
}<br />
<br />
if ( window.event.returnValue )<br />
window.event.returnValue = returnValue;<br />
<br />
return returnValue;<br />
}<br />
I used
onkeypress="return isNumericKeyStroke();"
[edit]removed should say onkeypress (still wrestling with what CP "removes")[/edit]
- S
50 cups of coffee and you know it's on!
-- modified at 1:54 Friday 23rd June, 2006
|
|
|
|
|
What do you mean by "failing"? What happens, and how does that differ from what you expect?
---
b { font-weight: normal; }
|
|
|
|
|
I am wanting to use POST method for an IDENT ID for people to access database stored documents, and then display it on a page using ASP Datagrid's from Visual Studio 2005 out of a SQL Server 2005 database. What I need is to allow that POST variable to be used in the SQL SELECT statement as seen below. (and yes I know the risks of SQL data injection, will be an internal archive and will address the injection problem later)
<%
dim varIDENT
varIDENT = Request.Form("varIDENT")
If varIDENT <> "" Then
Response.Write(varIDENT)
End If
%>
<asp:gridview id="GridView6" runat="server" autogeneratecolumns="False"
datasourceid="SqlDataSource6" emptydatatext="There are no data records to display." border="0" width="100%">
" SelectCommand="SELECT [OVERVIEW] FROM [SUDS_TRD] WHERE [IDENT]='"& varIDENT &"'">
Please help thanks!
Sincerely,
Jesse Myer
-- modified at 10:31 Thursday 22nd June, 2006
|
|
|
|
|
Two options:
+ Define a Select Parameter with the FormParameter class for the SqlDataSource control.
+ Create a handler for the Selecting event of the SqldataSource control, and you can add the varIDENT value in the method.
For more information, see Using Parameters with the SqlDataSource Control [^]
|
|
|
|
|
|
I am still having troubles, how do I pass a PostForm variable from a previous page into the SELECT statement of the ASP Datagrid?
|
|
|
|
|
I am currently using .net 1.1 with Visual Studio 2003. What happens if I just download and install .net 2.0 (nb I do not want to upgrade to VS2005 - not just yet, anyway)? Will it over-write 1.1? Will VS automatically use 2.0? Will my projects written using 1.1 load in VS2003 and switch to 2.0?
thanks
Fred
|
|
|
|
|
I am prompted to ask because my hosting company has recently announced that it will be upgrading it's servers to 2.0 in the new future, and that "this will be a direct replacement of ASP.NET 1.1"
I had been under the illusion that the two frameworks could run side by side. Should I be looking at uninstalling 1.1 and then installing 2.0? WIl VS2003 cope with that?
I want to be able to run my applications locally in the same environment as the remote server.
ta
Fred
|
|
|
|