|
It has to be registerd under the 64bit framework as in
C:\WINDOWS\Microsoft.NET\Framework64\v2.0.50727>regsvcs "D:\Development\MyProdjekt\Main\bin\My.BusinessLogicObjects.dll"
That was freeking many hours wasted!!!
|
|
|
|
|
Dont worry for wasted the time.
You got the solution and I got the information. Tnx
Balasubramanian K.
|
|
|
|
|
Is it possible to stop the execute of the program. Iam check for a condition.If it is true i want to stop the execution. How it is possible?
|
|
|
|
|
Yes it is possible. If the condition is false, simply you can come out of the block or redirect it to another one.
Balasubramanian K.
|
|
|
|
|
You can use
System.Windows.Forms.Application.Exit() for Windows Apps
and Response.End for Web Application.
Regards,
Cybernate
|
|
|
|
|
Hi,
I need to close the form in ASP.net C# on clicking the submit button of my form after the records are saved.
Help me out plz.......
Dev
|
|
|
|
|
Hi,
By adding clientscript at the serverside,you can close the page ....
ie; by using ClientScript.RegisterClientScriptBlock() you can achieve this...
|
|
|
|
|
Thanks kumar but can u give me some more detail of this function.
|
|
|
|
|
How can you be working on a presumably paid project, which has requirements, but not know how to use google, or know about the basics of ASP.NET ?
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
hi,
The function will work like this:
syntax:
ClientScript.RegisterClientScriptBlock(
Me.GetType(), "Ur ScriptName", "Ur javascript code for closing page ")
|
|
|
|
|
If you do, the user will be asked if they want to close the form. Why do you need to do that ?
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
It is required as i m opening this form using window.open alongwith my main form to save partner record and on its close button i hav applied some javascript fucntion so that it could be get on main page. But in case it closed directly from window's close(X) then that function is not executed and some other reasons also forced me to get it close on Submit button's click aftr records are saved.
So if you can help me out , i wud b really thankful to you.
|
|
|
|
|
OK, in that case, do what the other guy said. The event that does the save, inserts the script to close the form into the page, so it closes on reload.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Can u help me plz that how could i add my javascript function with clientsidde script.
Or can u tell me how could i call the close button event after my submit operation completes.
|
|
|
|
|
hi,
The function will work like this:
syntax:
ClientScript.RegisterClientScriptBlock(
Me.GetType(), "Ur ScriptName", "<script>Ur javascript code for closing page </script>")
|
|
|
|
|
use javascript on that button click to close that form.
|
|
|
|
|
plz refer the foll code of default.aspx page:-
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Untitled Page</title>
<script language="javascript">
function hi()
{
window.close();
}
</script>
</head>
<body>
<form id="form1" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server" />
<div>
<asp:Button ID="Button1" runat="server" OnClientClick="javascript:hi()" Text="Submit" /></div>
</form>
</body>
</html>
|
|
|
|
|
Hi, I designed a login form in my website. when a user login active field in a table will be set to true. Its working.
But i keep my logout control in the master page. So how to set active field to false when the user logout from any page. Can anyone give idea ?
|
|
|
|
|
Write down your code in the master page itself...
Balasubramanian K.
|
|
|
|
|
But in master page how can access the Session variables of all the forms? For example if Iam in Form5, and there is session variable of the user name,How can i fetch the value of session variable to set the active field false? Can u send the code?
|
|
|
|
|
Hi,
you can write the logout functionality in master page itself ie; you can set the active filed to false is master page it self only...
|
|
|
|
|
But in master page how can access the Session variables of all the forms? For example if Iam in Form5, and there is session variable of the user name,How can i fetch the value of session variable to set the active field false?
|
|
|
|
|
You can access the Session normally as you would do in the form 5.
As long as the value is added to the session you will be able to access it from anywhere in you code using the session property.
Regards,
Cybernate
|
|
|
|
|
Hi,
you can use this code for clearing all the cookies and session variables...
Response.Cookies.Remove(FormsAuthentication.FormsCookieName)
Response.Cookies.Remove("YOUR COOKIE NAME")'for a particular cookie
Session.RemoveAll()
Session.Abandon()
|
|
|
|
|
I write this for erase the session variable. Its working.
Session.Abandon();
But i want to set the active field in the database table to false. How it is possible?
|
|
|
|