Click here to Skip to main content
15,880,364 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionNeed help in Window service timer sheduling Pin
anandr2104843-Nov-10 1:06
anandr2104843-Nov-10 1:06 
AnswerRe: Need help in Window service timer sheduling Pin
David Mujica3-Nov-10 3:34
David Mujica3-Nov-10 3:34 
GeneralRe: Need help in Window service timer sheduling Pin
anandr21048410-Nov-10 18:38
anandr21048410-Nov-10 18:38 
Questionweb.config Pin
Any_India2-Nov-10 20:37
Any_India2-Nov-10 20:37 
AnswerRe: web.config Pin
<<Tash18>>2-Nov-10 21:23
<<Tash18>>2-Nov-10 21:23 
Questiondownload link for mobile Pin
behzadcp2-Nov-10 20:32
professionalbehzadcp2-Nov-10 20:32 
AnswerRe: download link for mobile Pin
behzadcp2-Nov-10 22:14
professionalbehzadcp2-Nov-10 22:14 
QuestionJavascript confirm box with c# Pin
<<Tash18>>2-Nov-10 19:40
<<Tash18>>2-Nov-10 19:40 
Hi guyss.. Actually in my web page a person-X can assign a task to another person-Y and on the dash board of Y that task will be displayed on opening the task it will show him the details of the task. the task can be completed by a series if activity. Now i have a button called add activity on clicking the button it redirects to the activity page. Now here i need some help actually the activity page has a status dropdownlist which has two options which is open and closed.. a person can create an activity with status open and later when the activity is over he can edit the activity and change the status to close.. Now when a person changes the activity status to close i need a confirmation box to popup asking the user whether the TASK IS COMPLETED (Not the activity) if the user clicks ok then the task is closed otherwise wen he clicks cancel button it should just update the activity status. Now i have made the confirmation box to popup but the problem is i am using javascript for the confirmation box when user clicks ok it closes the task but wen i click cancel i cant make it to just update the activity status.. Im confused wher do i write the code when the user clicks cancel button.. please guide me.. My code is as follows:

When the status is changed to close:
private void ddlStatus_SelectedIndexChanged(object sender, System.EventArgs e)
		{
			if(ddlStatus.SelectedValue.ToString() == "Closed")
			{
				btnAdd.Attributes.Add("onClick","javascript:return(confirm('Are you sure you want to close the Activity?'));");
			}
		}


When user clicks ok the button click event gets fired:
private void btnAdd_Click(object sender, System.EventArgs e)
{
	if(ds.Tables.Count > 0)
				{
					if(ds.Tables[0].Rows.Count > 0)
					{
						int id = Convert.ToInt32(ds.Tables[0].Rows[0].ItemArray[0]);
						UpdateTextField(id,1,txtDesc.Text.Trim().Replace("'","''"));
						UpdateTextField(id,2,txtIssues.Text.Trim().Replace("'","''"));
						UpdateTextField(id,3,txtBusTechAdv.Text.Trim().Replace("'","''"));
					}
				}
}


but where do i place my code when the user clicks cancel button bcoz on clicking cancel idont think any event gets fired.. Please advise me..

Thanx in advance,
Tash.
QuestionHow to trace which hidden control's validator is failing? Pin
Rafferty Uy2-Nov-10 15:44
Rafferty Uy2-Nov-10 15:44 
AnswerRe: How to trace which hidden control's validator is failing? Pin
Brij2-Nov-10 18:29
mentorBrij2-Nov-10 18:29 
GeneralRe: How to trace which hidden control's validator is failing? Pin
Rafferty Uy2-Nov-10 20:54
Rafferty Uy2-Nov-10 20:54 
QuestionExporting Datasets Into Multiple Sheets In Excel Pin
raghvendrapanda2-Nov-10 0:50
raghvendrapanda2-Nov-10 0:50 
AnswerRe: Exporting Datasets Into Multiple Sheets In Excel Pin
thatraja2-Nov-10 2:08
professionalthatraja2-Nov-10 2:08 
GeneralRe: Exporting Datasets Into Multiple Sheets In Excel Pin
raghvendrapanda4-Nov-10 3:59
raghvendrapanda4-Nov-10 3:59 
Questionhow to create a dynamic session Pin
vishnukamath1-Nov-10 23:48
vishnukamath1-Nov-10 23:48 
AnswerRe: how to create a dynamic session Pin
NeverHeardOfMe2-Nov-10 0:07
NeverHeardOfMe2-Nov-10 0:07 
GeneralRe: how to create a dynamic session Pin
vishnukamath2-Nov-10 21:44
vishnukamath2-Nov-10 21:44 
AnswerRe: how to create a dynamic session Pin
Brij2-Nov-10 0:12
mentorBrij2-Nov-10 0:12 
AnswerRe: how to create a dynamic session Pin
Sujith C Jose2-Nov-10 0:55
Sujith C Jose2-Nov-10 0:55 
QuestionUFrame Pin
Jassim Rahma1-Nov-10 21:41
Jassim Rahma1-Nov-10 21:41 
AnswerRe: UFrame Pin
thatraja1-Nov-10 21:47
professionalthatraja1-Nov-10 21:47 
Questionproblem in timer Pin
Jassim Rahma1-Nov-10 21:06
Jassim Rahma1-Nov-10 21:06 
AnswerRe: problem in timer Pin
thatraja1-Nov-10 21:22
professionalthatraja1-Nov-10 21:22 
QuestionShowing error message Pin
future38391-Nov-10 15:43
future38391-Nov-10 15:43 
AnswerRe: Showing error message Pin
benams1-Nov-10 20:23
benams1-Nov-10 20:23 

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.