|
As far as I know, script tag does not have events, so onunload is meaningless here. You have a book, why aren't you reading it ?
http://msdn2.microsoft.com/en-us/library/ms536973.aspx[^]
If you knew how to use google, you'd find that ( apparently ) you can use 'for' and 'event' to write a script tag that is called when the unload event occurs. I didn't know that, but now I do. Because I know how to use google.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Hi,
I am creating a password recovery control. I successfully got the output in my mail. But their is a problem that output of recoverd data of my password is in hash data format.
But i realy want the output in clear and understandable format. Can anyone help me to get the clear data format of my password.
I also tried in fetching the date by means of username and roles. But roles also in encrypted format...
Can u help me to find the decrypted date??????????.........
|
|
|
|
|
Senthil S wrote: Can u help me to find the decrypted date??????????.........
Are you out of your mind, you can't decrypt one way hash algoritem. You can only reset password.
|
|
|
|
|
After user have logged in if he/she press the back button of internet browser, then he/she will back to login page. But if he/she then again press forward button of internet explorer then he/she should not get back to the page which he/she traversed before.
How is it possible?
It will be in asp.net 2.0.
Regards
Tutul Biswas
|
|
|
|
|
Tutul Biswas wrote: How is it possible?
This is how browsers works. You are seeing a cached preview of the page by browser. You need to check the session existence in the page_load. So when user clicks anywhere in the page after logging out, he/she will be thrown to login page.
|
|
|
|
|
Hello frnds
i want to set the background image for form thru coding(Run time i wnt to assign new image for form.
srinivasan
|
|
|
|
|
hi
u can help with this
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Change Background</title>
<script type="text/javascript">
function ChangeBackground(background)
{
switch (background)
{
case 1:
document.getElementById('myTableCell').style.backgroundImage =
'URL(/Images/Demos/ChangeBackground/Background1.gif)';
break;
case 2:
document.getElementById('myTableCell').style.backgroundImage =
'URL(/Images/Demos/ChangeBackground/Background2.gif)';
break;
}
}
</script>
</head>
<body>
<table width="250" border="0">
<tr>
<td id="myTableCell" style="background-image:URL
(/Images/Demos/ChangeBackground/Background1.gif);">
I am a cell with a background image<br /><br />
If you click one of the buttons, my background will change.
</td>
</tr>
</table>
<form id="frmTest" name="frmTest" action="" method="get">
<input type="button" id="btnDo1"
name="btnDo1" onclick="ChangeBackground(1)"
value="Click to change to Background 1" />
<input type="button" id="btnDo2"
name="btnDo2" onclick="ChangeBackground(2)"
value="Click to change to Background 2" />
</form>
</body>
</html>
no knowledge in .net
|
|
|
|
|
thnx for ur reply
frnd i want to set the image at the time of form loading.not at the time of button click.
srinivasan.s
|
|
|
|
|
Hi friend,
i used this code to display the menuitem by horizontally. But it displays only vertically. Could you help me to display horizontally please.
Example Here "Open" and "New" display only by vertically. But i need to display by HORIZONTALLY.
Please my guys help me.
<asp:Menu ID="Menu1" runat="server" Orientation="Horizontal">
<Items>
<asp:MenuItem Text="File" Value="File">
<asp:MenuItem Text="Open" Value="Open"></asp:MenuItem>
<asp:MenuItem Text="New" Value="New"></asp:MenuItem>
</asp:MenuItem>
<asp:MenuItem Text="edit" Value="edit">
<asp:MenuItem Text="Copy" Value="Copy"></asp:MenuItem>
</asp:MenuItem>
</Items>
</asp:Menu>
|
|
|
|
|
Hi Friends
I am using Ajax in C#.NET.
I have recently noticed that. I cannot fire Messagebox(Javascript-JS) if inside Update Panel.
I am using Update Panel on my GridView.
Only click of Delete Button i am firing one JS asking "Are You Sure"
My Code
LinkButton l = (LinkButton)e.Row.FindControl("lbtnDelete");
l.Attributes.Add("onclick", "javascript:return " +
"confirm('Are You Sure You want to Delete ? ')");
The Above Code works perfectly. But then i make a DataBase Check if that Record is used anywhere else.
So its like
if(CheckRecord)
Response.Write("<script>alert('Are you sure youw want to Continue?')</script>");
It doesnt work.
i tired another dll for msgbox, which also doesnt work.
I suspected for the Update panel. And i was right. If i remove the Update Panel both the options fire MessageBox for me.
But i am using Edit,Delete,AddNew methods in GridView henceforth i need Update Panel.
Now i have no Idea what should i do?
Any solutions would be appreciated.
Thanks
-- modified at 8:22 Friday 2nd November, 2007
Cheers
Menon
|
|
|
|
|
Menon,
You cannot use Response.Write while using Microsoft AJAX, since the page will not postbacks fo your request. You can use Client Script of the Microsoft AJAX.
Add handler for endRequest like below,
Sys.WebForms.PageRequestManager.getInstance().add_endRequest(CheckRecordCallBack);
CheckRecordCallBack(sender, arg){
if (args){
if (args.get_error()){
args.set_errorHandled(true);
alert(args.get_error().message);
}
}
}
You must throw the Message which you want to show after CheckRecord process from the CodeBehind.
For more reference, read http://www.asp.net/ajax/documentation/live/ClientReference/default.aspx[^]
|
|
|
|
|
Hi Venkatesh
Thanks for the reply i will try it.
I even found another solution for my question.
ScriptManager.RegisterStartupScript
This also works.
Thanks
Cheers
Menon
|
|
|
|
|
I want to image verification on my user registration asp.net forum. And I must be check between entered user verification code and image. So I need store code which on the image. If user click the button so page is post back and stored code is null. In this case I must be use viewstate (or session variable).
My question is viewstate value maybe stolen by bot. So Is it reasonable using viewstate variable for this process?
Do you have any idea?
Best Regards...
|
|
|
|
|
dataminers wrote: My question is viewstate value maybe stolen by bot.
I don't think so. Viewstate value can be tampered easily. So it's not recommended to keep sensitive information over there.
|
|
|
|
|
Ok, What is your recomendation?
|
|
|
|
|
Hi all,
I am working on web application there is some session timeout problem when it was deployed
In deployment server , while navigating to any of the page in the
application(Website) , it's going to login page(Irrespective of any requested page). But it is working fine in my local machine.
since
Session time out is 20 mins in web.config file.
any suggestions ??
Thanks&Regards
sarankumarv
Thanks&Regards
sarankumarv
|
|
|
|
|
because of server.its happenning like.
|
|
|
|
|
sorry to say this i am not able to get the answer u have posted can u explain in detail for me
Thanks&Regards
sarankumarv
|
|
|
|
|
I would check two things:
- Machine.config settings.
- Is session enabled on the server ?
HTH
/// -------------------------
Braulio Díez
tipsdotnet.com
/// -------------------------
|
|
|
|
|
Hi there,
We're getting ready to move onto ASP.NET 2 websites/webapps, and need some options on a reporting tool or controls that people use...
Don't want to use Crystal Reports due to their horrendous licensing fees, and have looked at DevExpress's XtraReports Suite and also ActiveReports by Data Dymanics, but can't decide
Any help greatly appreciated! We're (obviously!) looking for the best tool for the cheapest price.
Cheers!
Baz
|
|
|
|
|
you can use Reportviewer..
|
|
|
|
|
Err yeah I suppose we could, but I thought it was lacking in features that other 3rd party controls have (but that could just be my ignorance, as I have no real experience of using it - would be happy to find out more though...)
Baz
|
|
|
|
|
hello every buddy
suppose i have a checkboxlist containg 10 items.
and i want to select 2 items at a time then how can i ristrict it.
and also how can i show the messege related to restriction
rajeev kumar sharma
vri software pvt. ltd.
new delhi India
|
|
|
|
|
You need to write all of this in javascript, because you want it to happen on the client side. There's nothing built in to do it. you can handle the data bound event of the checkboxlist to inject attributes on the control, which is how you would handle the click or check changed events in order to fire your scripts. Then, you can just keep track of the ids of items that have been clicked and which ones are checked in your script and show a message if a third is clicked on.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
no no.
actualy i am showing messege througt javascript but i want to get the id of the checkbox for restrict the check if user has allready completed max checks.
rajeev kumar sharma
vri software pvt. ltd.
new delhi India
|
|
|
|