Hi all,
In my web app i call C# function inside javascript
function DeletePage(intPageID) {
alert(intPageID);
document.getElementById("ctl00_ContentPlaceHolder1_hdnPageID").value = intPageID;
if (confirm("Are you sure you want to delete selected file?")) {
alert(document.getElementById("ctl00_ContentPlaceHolder1_hdnPageID").value);
<% DeleteData(intPageID); %>
window.location.href = "MiniSite_Pages.aspx";
}
}
in code behind
public void DeleteData(int intPageID)
{
MiniSitePagesService objMiniSitePagesService = new MiniSitePagesService();
objMiniSitePagesService.Delete(intPageID);
}
but i have error 'The name 'intPageID' does not exist in the current context'
can anyone help me please?
Thanks in advance.
...
Go to the complete details ...