
SELECT users.member, news.U_idFROM usersINNER JOIN newsON users.U_id=news.U_iddiv.RadPanelBar_Scargill2 .rpGroup a.rpLink:hover, div.RadPanelBar_Scargill2 .rpGroup a.rpFocussed, div.RadPanelBar_Scargill2 .rpGroup a.rpFocused:hover, div.RadPanelBar_Scargill2 .rpGroup a.rpSelected, div.RadPanelBar_Scargill2 .rpGroup a.rpSelected:hover { background-color: white; color: #666; } <telerik:GridButtonColumn CommandName="Delete" Text="Supprimer" UniqueName="column2"></telerik:GridButtonColumn>string req = " SELECT rights from utilisateur WHERE login = '" + login + "'";int test = DA.DAConnexion.executeQueryScalar(req);Session["rights"] = test;
function Close1() { var oWindow = GetRadWindow(); oWindow.SetUrl("about:blank"); //Passing the argument to the close method oWindow.close("undefined"); }ctl00_....._btnSave and the getElementById returns a null value. When I do the same thing in a non RadWindow, everything works fine. Please help me solve this issue.
function ShowInsertForm(url, width, height, idName, idValue) {
var extUrl = [url, "?" + idName + "=", idValue];
var oWnd = window.radopen(extUrl.join(""));
oWnd.setSize(width, height);
oWnd.set_modal(true);
oWnd.set_visibleStatusbar(false);
oWnd.set_behaviors(Telerik.Web.UI.WindowBehaviors.Move + Telerik.Web.UI.WindowBehaviors.Close);
return false;
}
Protected Sub btnCancel_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnCancel.Click
If _presenter.IsDataChanged(Me.GetUserData()) Then
InjectScript.Text = "<script type='text/javascript'>askquestion('" & btnSave.ClientID & "')</script>"
Else
InjectScript.Text = "<script type='text/javascript'>CancelEdit()</script>"
End If
End Sub
In the Aspx code:
function askquestion() {
if (confirm("Data has changed. Do you want to save the changes?")) {
document.getElementById('<%=btnSave.ClientID %>').click();
}
else {
CancelEdit();
}
return false;
}