|
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
|
|
|
|
|
They will run side by side, the site will just need to be configured in IIS to run under the appropriate framework.
|
|
|
|
|
True, but I have heard of providers REMOVING 1.1 when dropping down 2.0 - usually as part of a re-install.....
Can cause a few "issues" hehe
"Now I guess I'll sit back and watch people misinterpret what I just said......"
Christian Graus At The Soapbox
|
|
|
|
|
RichardGrimmer wrote: True, but I have heard of providers REMOVING 1.1 when dropping down 2.0 - usually as part of a re-install.....
Do you mean above and beyond those documented by Microsoft as regards backwards compatibility? Or are you meaning that when 1.1 is removed there are issues with running 2.0 (esp with regards applications written for 1.1)?
I believe that this is precisely what "my" ISP is doing - removing 1.1 and replacing it with 2.0. They assure us that our sites will still work, as long as the code is compliant... I believe mine is. What I want to end up with is a working mirror-environemtn on my local machine. And I want to know whether Visual Studio 2003 will cope with it. ("It" being uninstalling 1.1 and installing 2.0)
I'd be interested to know more about - or have a link to - these "issues" that you refer to.
Thanks
Fred
|
|
|
|
|
Visual Studio 2003 and 2005 runs just fine side by side. I have them both installed myself.
Framework 1.1 and 2.0 also runs fine side by side. The issue with web sites is that all web sites in the same application pool has to use the same version. You can have one application pool for each version of the framework, and select application pool for each web site according to the framework version it is using.
I think that most ISP don't want to do this, though. It's simpler to just have one application pool and one framework version, and tell the customers that they have to use it.
Most 1.1 applications runs just fine in 2.0. There are some breaking changes[^] from 1.x to 2.0, but you are not very likely to run into any of them.
---
b { font-weight: normal; }
|
|
|
|
|
I am wondering if anyone knows good code that implements the Windows Explorer selection mechanism (for a DataGrid or HTML table). I know the basics of assigning attributes to DataGrid rows (eg. objDataGrid.Rows(index).Attributes("onclick")) which applies to HTML tables. But wondering if there's a good technique to do, for example:
1. Left-click on file/row to select it.
2. Left-click on a different file/row to select it, reseting previous selections.
3. Hold down CTRL + left-click on different files/rows to multiple select, thus retaining all selections during CTRL key is down.
4. Hold down SHIFT + left-click on different file/row and all files/rows between first left-click and second left-click + SHIFT key are selected.
5. Right-click on one of the selected files/rows brings up a context menu.
6. Right-click on a non-selected file/row selects it, deselects all others, and brings up context menu.
I have googled around and there are many examples, especially using the IE's onContextMenu event. However I still haven't found any code/library which does all 6 of the above (all-in-one). I am looking for something which is cross-browser too.
Anyone seen such a code/library that does the above 6?
|
|
|
|
|
You're gonna hate me, but I've just implememnted that in a grid control that we use here - complete with declarative context menus and graphics etc....unfortunately, with source code being our crown jewels, all I can do is offer to point you in the right dir....feel free to email
"Now I guess I'll sit back and watch people misinterpret what I just said......"
Christian Graus At The Soapbox
|
|
|
|