Click here to Skip to main content
15,913,570 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: How to display modal popup dialog only if some statement is TRUE ? Pin
Paddy Boyd19-Sep-07 23:18
Paddy Boyd19-Sep-07 23:18 
GeneralRe: How to display modal popup dialog only if some statement is TRUE ? Pin
Malayil alex19-Sep-07 23:36
Malayil alex19-Sep-07 23:36 
AnswerRe: How to display modal popup dialog only if some statement is TRUE ? Pin
Sandeep Akhare19-Sep-07 23:20
Sandeep Akhare19-Sep-07 23:20 
GeneralRe: How to display modal popup dialog only if some statement is TRUE ? Pin
Malayil alex19-Sep-07 23:34
Malayil alex19-Sep-07 23:34 
GeneralRe: How to display modal popup dialog only if some statement is TRUE ? Pin
Sandeep Akhare19-Sep-07 23:45
Sandeep Akhare19-Sep-07 23:45 
GeneralRe: How to display modal popup dialog only if some statement is TRUE ? Pin
Malayil alex20-Sep-07 0:00
Malayil alex20-Sep-07 0:00 
GeneralRe: How to display modal popup dialog only if some statement is TRUE ? Pin
Sandeep Akhare20-Sep-07 0:06
Sandeep Akhare20-Sep-07 0:06 
GeneralRe: How to display modal popup dialog only if some statement is TRUE ? Pin
Malayil alex20-Sep-07 0:24
Malayil alex20-Sep-07 0:24 
hai,

The only problem is that alert is not coming the control is go through the code in catch and executing the script code also but alert is not coming....

alex.

my code block is give below....


protected void ChangeStatus(object sender, EventArgs e)
{
try
{
DamageReportHistory damageReportHistory = new DamageReportHistory();
DamageReportHistoryBO damageReportHistoryBO = new DamageReportHistoryBO();
DamageReportBO damageBO = new DamageReportBO();
DamageReportStatus damageReportStatus = new DamageReportStatus();

// we need the damage report again (because the hibernate session was ended at this point)
//DamageReport = (DamageReport)damageBO.GetObjectByID(Id);
DamageReport = new DamageReport();
DamageReport.DamageOldStatus = DamageReport.DamageStatus;
DamageReport.DamageStatus = drpStatus.SelectedItem.Text;


User user = CommonFunctions.GetCurrentUser();
damageBO.UpdateStatus(DamageReport, user);

//The section below is for updating damage report history table.

damageReportHistory.HistoryDetails = DamageReport.Description;
damageReportHistory.CreatedDate = DateTime.Now;
damageReportHistory.Comments = txtComments.Text;
damageReportHistory.HistoryXML = DamageReport.DamageReportXML;
damageReportHistory.CreatedUser = CommonFunctions.GetCurrentUser().UserName;
damageReportHistory.RelatedDamageReport = DamageReport;
damageReportStatus.Id = int.Parse(drpStatus.SelectedValue.ToString());
damageReportHistory.CurrentStatus = damageReportStatus;
damageReportHistoryBO.Save(damageReportHistory);

//Response.Redirect("DamageReportOverview.aspx");
}
catch (Exception ex)
{
ClientScript.RegisterStartupScript(this.GetType(), "AnyKey", "alert('dont do this ?');",true);
//Response.Write("mg='kkk'");


//(this.Master as View_pages_MasterPage).SetError("hihihji");
}


}


hoep you understand my problem again i remember you my controls are placed in
<asp:updatepanel id="UpdatePanel1" runat="server">



alex.
GeneralRe: How to display modal popup dialog only if some statement is TRUE ? Pin
Sandeep Akhare20-Sep-07 0:31
Sandeep Akhare20-Sep-07 0:31 
GeneralRe: How to display modal popup dialog only if some statement is TRUE ? Pin
Malayil alex20-Sep-07 0:35
Malayil alex20-Sep-07 0:35 
GeneralRe: How to display modal popup dialog only if some statement is TRUE ? Pin
Imran Khan Pathan20-Sep-07 0:59
Imran Khan Pathan20-Sep-07 0:59 
GeneralRe: How to display modal popup dialog only if some statement is TRUE ? Pin
Malayil alex20-Sep-07 1:02
Malayil alex20-Sep-07 1:02 
GeneralRe: How to display modal popup dialog only if some statement is TRUE ? Pin
Imran Khan Pathan20-Sep-07 1:06
Imran Khan Pathan20-Sep-07 1:06 
GeneralRe: How to display modal popup dialog only if some statement is TRUE ? Pin
Malayil alex20-Sep-07 1:15
Malayil alex20-Sep-07 1:15 
GeneralRe: How to display modal popup dialog only if some statement is TRUE ? Pin
Imran Khan Pathan20-Sep-07 1:25
Imran Khan Pathan20-Sep-07 1:25 
GeneralRe: How to display modal popup dialog only if some statement is TRUE ? Pin
Malayil alex20-Sep-07 1:56
Malayil alex20-Sep-07 1:56 
GeneralRe: How to display modal popup dialog only if some statement is TRUE ? Pin
Sandeep Akhare20-Sep-07 1:26
Sandeep Akhare20-Sep-07 1:26 
GeneralRe: How to display modal popup dialog only if some statement is TRUE ? Pin
Malayil alex20-Sep-07 1:45
Malayil alex20-Sep-07 1:45 
GeneralRe: How to display modal popup dialog only if some statement is TRUE ? Pin
Malcolm Smart20-Sep-07 1:33
Malcolm Smart20-Sep-07 1:33 
GeneralRe: How to display modal popup dialog only if some statement is TRUE ? Pin
Malayil alex20-Sep-07 1:54
Malayil alex20-Sep-07 1:54 
GeneralRe: How to display modal popup dialog only if some statement is TRUE ? Pin
Malcolm Smart20-Sep-07 2:20
Malcolm Smart20-Sep-07 2:20 
Questionurgent copy image from hard Drive on local host Pin
mavii19-Sep-07 22:54
mavii19-Sep-07 22:54 
AnswerRe: urgent copy image from hard Drive on local host Pin
Sandeep Akhare19-Sep-07 23:00
Sandeep Akhare19-Sep-07 23:00 
GeneralRe: urgent copy image from hard Drive on local host Pin
mavii19-Sep-07 23:06
mavii19-Sep-07 23:06 
GeneralRe: urgent copy image from hard Drive on local host Pin
Sandeep Akhare19-Sep-07 23:12
Sandeep Akhare19-Sep-07 23:12 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.