To terminate the console application from the code, we can use
- Environment.Exit
- Process.Kill
To terminate the console application from the code, we can use
dataTable.Columns.Contains("columnToBeSearched")
datatRow.Table.Columns.Contains("columnToBeSearched")
<script type="text/javascript">
function DisableControlOnSubmit()
{
var buttonToBeDisabled = document.getElementById("SubmitButton");
buttonToBeDisabled.disabled = true;
return false;
}
</script>
<form id="form1" runat="server" onsubmit=" DisableControlOnSubmit()">
<form id="form1"…………………… submitdisabledcontrols="true">
4. Set the “UseSubmitBehavior” attribute of the Submit button to “false”.
<asp:Button ……………UseSubmitBehavior="false" />
Ref : http://www.eggheadcafe.com/forumarchives/biztalkorchestration/Jun2005/post23246643.asp
/// <summary>
/// Handles the CheckedChanged event of the ItemSelectCheckBox control.
/// </summary>
/// <param name="sender">The source of the event.</param>
/// <param name="e">The <see cref="T:System.EventArgs"/> instance containing the event data.</param>
protected void ItemSelectCheckBox_CheckedChanged(object sender, EventArgs e)
{
CheckBox checkBox = (CheckBox)sender;
GridViewRow row = (GridViewRow)checkBox.NamingContainer;
...............................................
}
Reference:
http://www.geekswithblogs.net/sgreenberger/archive/2004/11/12/14871.aspx
While trying to run an Asp.Net2.0 application, if it prompts the following error message....
Error :Server Application Unavailable
The web application you are attempting to access on this web server is currently unavailable. Please hit the "Refresh" button in your web browser to retry your request.
Administrator Note: An error message detailing the cause of this specific request failure can be found in the application event log of the web server. Please review this log entry to discover what caused this error to occur.
And the message logged in the event log is:
aspnet_wp.exe could not be started. The error code for the failure is 80004005. This error can be caused when the worker process account has insufficient rights to read the .NET Framework files. Please ensure that the .NET Framework is correctly installed and that the ACLs on the installation directory allow access to the configured account.
Solution :
Execute the aspnet_regiis -i command from the Visual Studio 2005 Command Prompt and then run the same application.
In C#:
[ObsoleteAttribute("This method is obsolete. Please use Retrieve(iID) instead",
false)]
public DataSet Retrieve(string sProduct)
{
// Code here performs the retrieve
}
The first parameter of the ObsoleteAttribute is the message text that the developer
will see wherever the obsolete method is used. This message text will appear in the Task
List window.
The second parameter of the ObsoleteAttribute is whether the obsolete member usage
is considered to be an error. Set the parameter to False to specify that the developer using
the method will get a warning message in the Task List window, or to True to generate a
syntax error if the method is used.
Extracts from the eBook:
Best Kept Secrets in .NET DEBORAH KURATA
It is possible to cycle through the 20 recently copied items through
Ctrl + Shift + V