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:
}
else
{
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