<
body>
<form id="form1" runat="server">
<div>
<asp:ScriptManager ID="ScriptManager1" runat="server"/>
<asp:LinqDataSource runat="server" ID="LinqDataSource1" ContextTypeName="AntoClassesDataContext"
TableName="M_Product" EnableDelete="True" EnableInsert="True" EnableUpdate="true">
</asp:LinqDataSource>
<telerik:RadGrid Skin="WebBlue" AutoGenerateDeleteColumn="true" AutoGenerateEditColumn="true" GroupingEnabled="true" ShowGroupPanel="true" runat="server" DataSourceID="LinqDataSource1" AllowAutomaticDeletes="true" AllowAutomaticInserts="true"
AllowAutomaticUpdates="true" AllowPaging="true" PageSize="8" AllowSorting="true"
AllowFilteringByColumn="true" ID="RadGrid1">
<MasterTableView DataKeyNames="ProductID" CommandItemDisplay="Top">
</MasterTableView>
<ClientSettings AllowColumnsReorder="true" AllowDragToGroup="true">
</ClientSettings>
</telerik:RadGrid>
</div>
</form>
</body>
int
TotalApp = Slot.Appointments.Count;
if (TotalApp == 0)
{
Set of Statements;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

| RadGridSCType_DetailTableDataBind() |
| Dim dsaddedDoc As New DataSet |
| dsaddedDoc = objSC_documentsBAL.SelectAllDocumentsofSC() |
| 'Revision Prefix |
| Dim revisionwithprefix As New DataColumn |
| dsaddedDoc.Tables(0).Columns.Add(revisionwithprefix) |
| dsaddedDoc.Tables(0).Columns("column1").ColumnName = "revisionwithprefix" |
| If dsaddedDoc.Tables(0).Rows.Count > 0 Then |
| Dim prefix As String = GetRevisionPrefix() |
| Dim row As DataRow |
| For Each row In dsaddedDoc.Tables(0).Rows |
| If row("Rev_No_Detail").ToString <> "" Then |
| row("revisionwithprefix") = prefix + row("Rev_No_Detail").ToString |
| End If |
| Next |
| End If |
| e.DetailTableView.DataSource = dsaddedDoc |
| RadGridSCType_ItemCommand () |
| If e.CommandName = "Export" Then |
| RadGridSCType.MasterTableView.HierarchyDefaultExpanded = True |
| RadGridSCType.Rebind() |
| RadGridSCType.ExportSettings.OpenInNewWindow = True |
| RadGridSCType.ExportSettings.ExportOnlyData = True |
| RadGridSCType.ExportSettings.IgnorePaging = True |
| RadGridSCType.MasterTableView.ExportToExcel() |