This is a migrated thread and some comments may be shown as answers.

JavaScript Problem

0 Answers 16 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Anto (DLL Version : 2008.3.1314.35)
Top achievements
Rank 2
Anto (DLL Version : 2008.3.1314.35) asked on 26 Mar 2009, 07:57 AM
Hi All

I have done a app with a schedular and a tree.

If I drag and leave the product in the tree into he schedular it will assign for the time i have dropped.

now I have to validate it.

If I drag one more product and drop it at the top of the old one an message should appear.

That is i have a call a java script.

My Code:

int

TotalApp = Slot.Appointments.Count;

 

 

if (TotalApp == 0)

 

{

Set of Statements;
}
else
{

lblAlert.Text =

"<script type='text/javascript'>NodeAlert()</" + "script>";

 

 

//Anto for testing

 

BtnAlert_Click(sender,e);

}

Now it does not execute the java script. so i kept a button and while clicking the button the java script is executing.

So I made the button to be clicked through coding.

But even at this time it is not executing.


This is the coding for button:

 

protected

void BtnAlert_Click(object sender, EventArgs e)

 

{

lblAlert.Text =

"<script type='text/javascript'>NodeAlert()</" + "script>";

 

}

 


This is java script:

function
NodeAlert()

 

{

 

alert(

"Hi");

 

 

return false;

 

}

 

Note: If I click the button those two lines are executing.

Thanks

-Anto

No answers yet. Maybe you can help?

Tags
Scheduler
Asked by
Anto (DLL Version : 2008.3.1314.35)
Top achievements
Rank 2
Share this question
or