|
it should be placed in the folder -
C:\Inetpub\wwwroot\aspnet_client\system_web\1_1_4322 (if the path doesn't exist try creating it)
where is the WebUIValidation.js file currently?
|
|
|
|
|
There is already has a copy at the location you mentioned. But it still said it can't find the location.
Thanks,
Chiari
|
|
|
|
|
Hi,
I'm trying to write something on Session Timeout. I want to display a message box before it redirects the page to the login page. I'm using .ASP net.I have configure the web.config under the sessionstate as timeout 1 min, but the Session_OnEnd event I wrote doesn't fire. Can anyone help me on it?
Thanks in advance,
Chiari
|
|
|
|
|
Thats because the session hasn't ended and just timed out. If you close the browser window you should be able to see the event being fired.
|
|
|
|
|
Closing the browser window doesn't fire the Session_OnEnd event.
---
b { font-weight: normal; }
|
|
|
|
|
You can't interact with the user in any way from the Session_OnEnd method. You can't display a message box. You can't redirect any page as there is no page that is created.
Once the page is sent to the browser, the server knows nothing about the page. There is no connection from the server to the page, so you can't do anything to the page once it is sent to the browser. It doesn't help that the page is still shown in the browser, the server doesn't know that.
I'm sure that the Sesson_OnEnd event fires just fine, but you are trying to do something that simply is not supported by the http protocol.
---
b { font-weight: normal; }
|
|
|
|
|
Is there a solution for me? I want the message box to be show and redirect to the login page after the session time out.
Thanks,
Chiari
|
|
|
|
|
You can't send anything from the server to the client without the client asking for it.
You could request the status from the server periodically, but then the session would never time out, so you would have to manage the timeout completely by yourself.
---
b { font-weight: normal; }
|
|
|
|
|
Hello I have downloaded your web based active directory login and need some help.
when I try to lunch it I am told:
Server object error 'ASP 0177 : 800401f3'
Server.CreateObject Failed
/hrdev/login/login.asp, line 6
Invalid ProgID. For additional information specific to this message please visit the Microsoft Online Support site located at: http://www.microsoft.com/contentredirect.asp.
Can anyone please help me with this?
Thank you
Heather
|
|
|
|
|
Could you tell us more about your environment i.e. what version of iis you are using and what version of windows? Also post the code were the error is happening.
|
|
|
|
|
Hi everybody,
I hava a IFrame on my web to write in it. When it page load I call a JavaScript function to change designMode property:
mytext.document.designMode="On";
I want to capture onkeyup event so I have in the same function:
mytext.attachEvent("mytext.document.onkeyup", funcion());
The problem is this event only throw when page is loading. Then, writing in IFrame event does not throw. I try this too, but does not work:
mytext.document.onkeyup = funcion();
Thank you very much,
iAtreyu
|
|
|
|
|
When you want to reference a function, skip the parentheses. If you put the parentheses after the function name, you will be calling the function and then put the return value of the function in the event reference.
---
b { font-weight: normal; }
|
|
|
|
|
This was the problem.
Thank you very much.
iAtreyu
The computers are silly very rapid
-- modified at 9:54 Thursday 6th October, 2005
|
|
|
|
|
hi, i'm a beginner in .net. recently, i'm facing the problem of passing variable using post method...
*** Response.Redirect("webForm2.aspx?id=01&name=neo") ***
dim id as string = Request.Form("id")
dim name as string = Request.Form("name")
this is the sample.
now, in webForm2.aspx, i would like to retrieve the value using request.Form.
automatically, .net will use "get" method to send the value(coz the data is append at the end of the url). but i would like to hide my data..
how can i do that ?
|
|
|
|
|
neo_6053 wrote:
but i would like to hide my data..
yep, u can use hidden html controls to store ur data...
<< >>
|
|
|
|
|
|
To post the data, you need a form. To have a form you need a page, so you have to output a page to the browser, containing a form. In the form you put hidden fields with the data you want to send.
Then you need to put a javascript in the page, that posts the form. Some users has disabled javascript, if you need to support them also, you would have to put a submit button in the form also, or they would just face a blank page.
---
b { font-weight: normal; }
|
|
|
|
|
I want to find the editor which helps me to debug javascript code! Can you introduce some editor! Thanks!
Hung
|
|
|
|
|
Hi Hung,
You can use the Visual Studio[^] to debug your client side scripts.
|
|
|
|
|
Any other editors can I use?
Hung
|
|
|
|
|
I guess you might want to ask your friend Google[^], also you can narrow the finding scope by providing the technology that you are using to develop your web application.
|
|
|
|
|
I have a numeric keypad on a panel and the number keys are pressed it populates the field that currently has focus. I think that I have done this in a rather clunky way, but can't think of anything else - can anyone help?
I store focus in a textbox field that will be hidden away.
In the pageload id do the following:
TextBox1.Attributes.Add("onFocus", "UpdateText('TextBox1','textBoxFocus')");
TextBox2.Attributes.Add("onFocus", "UpdateText('TextBox2','textBoxFocus')");
The aspx file is:-
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<title>Untitled Page
<asp:textbox id="TextBox1" runat="server"><asp:textbox id="textBoxFocus"
="" runat="server">
<asp:textbox id="TextBox2" runat="server" textmode="Password">
<asp:panel id="Panel1" runat="server" height="154px" width="185px" cssclass="panel">
function numClicked(elem) {
try {
if (document.getElementById("textBoxFocus").value == "TextBox1")
if (document.getElementById("TextBox1").value.length < document.getElementById("TextBox1").getAttribute('maxlength'))
document.getElementById("TextBox1").value+=elem.value;
if (document.getElementById("textBoxFocus").value == "TextBox2")
if (document.getElementById("TextBox2").value.length < document.getElementById("TextBox2").getAttribute('maxlength'))
document.getElementById("TextBox2").value+=elem.value;
}
catch(e)
{
response.write(e);
}
}
function UpdateText(x, TxtCntrl2)
{
document.getElementById(TxtCntrl2).value = x;
}
Clueless
|
|
|
|
|
I have developed a search engine in asp(vbscript) which search the text on whole web page if found then display its link. but i want to search whole page but not tags.means that if desired text exists in tag it not be searched.remaing page will search
wht should i do .can any body give me idea
|
|
|
|
|
Hi,
I'm trying to ask a web button to fire an event in javascript which is called PrntPreview(). But when I run, it gave this error below:
BC30456: 'PrntPreview' is not a member of 'ASP.DisplayStkCode_aspx'.
Anyone can tell me wat is wrong?
<asp:Button id="btnPreview" OnClick="PrntPreview()" runat="server" Text="Print Preview"></asp:Button>
Thanks in advance,
Chiari
|
|
|
|
|
Hi there,
The onclick is the server side event of the button web control, so you need to provide the PrntPreview method which will be running at the server side, and you cannot assign a client side function to the event in the html editor. If you just want to add the client side function for the onlick event, you can do that as below:
btnPreview.Attributes.Add("onclick", "PrntPreview();");
|
|
|
|