|
Hi,
I get error while using this code ?
<asp:TemplateField>
<ItemTemplate >
<asp:ImageButton ID="ImageDeleteBuyingKala" ImageUrl="~/ServerFile/ApplicationFiles/Icons/Button/add.png"
Width="25" runat="server" OnClientClick="Open('<%# Eval("Id") %>')" />
</ItemTemplate>
</asp:TemplateField>
I have Solved this via :
<script type="text/javascript">
function Open(IdItem) {
// to handle in IE 7.0
if (window.showModalDialog) {
window.showModalDialog(location.protocol + "//" + location.host + "/" + "WorkFlows/Forms/BuyingKala/Estelam.aspx?Id=" + IdItem, "Show Popup Window", "dialogHeight:450px,dialogWidth:80%,toolbar=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,modal=yes,center:yes");
}
// to handle in Firefox
else {
window.open(location.protocol + "//" + location.host + "/" + "WorkFlows/Forms/BuyingKala/Estelam.aspx?Id=" + IdItem, "Show Popup Window", "height=450px,width=80%,toolbar=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,modal=yes,center:yes");
}
// window.showModalDialog(location.protocol + "//" + location.host + "/" + "WorkFlows/Forms/BuyingKala/Estelam.aspx?Id=" + IdItem, null, "height=290px,width=400px,toolbar=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,modal=yes")
}
</script>
<ItemTemplate>
<asp:ImageButton ID="ImageEstelamBuyingKala" ImageUrl="~/ServerFile/ApplicationFiles/Icons/Button/add.png"
Width="25" runat="server" OnClientClick='<%# " Open("+ DataBinder.Eval(Container.DataItem,"Id") + ");" %>' />
</ItemTemplate>
now the problem is that when that child page open and i click the save button to save the items in the gridview in child page it repoen that child page once more .
modified 17-Dec-12 5:32am.
|
|
|
|
|
What is the error?
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|