0

Hi,

I have a Edit Button(which is a Image Button) and when I click that ImageButton a new browser window should open and it should load the values previously entered by the user. The new window should contain the old values and now should be able to edit them.

For example,
If a user clicks on the Edit button whose userId= 329 it should open in a new window with the values entered by the user.

 <%--<asp:ImageButton ID="ibtnEdit" runat="server" Text="Edit" ToolTip="Edit" ImageUrl="~/images/edit-icon.gif" />--%>
                                         <%--<script type="text/javascript">
                                         function EditInNewWindow()
                                         {
                                         window.open("abc.aspx?bid="+document.getElementById('<%#Eval("UserID") %>'));
                                         }

                                         </script>--%>

Can anyone plzz help.
I may be doing a blunder.

Thanks in Advance

Edited by mike_2000_17: Fixed formatting

3
Contributors
4
Replies
5
Views
7 Years
Discussion Span
Last Post by rajarajan07
0

I dont know whether asp tag include some of the parameters that html tag have, but I implement the same here. Give it a try.

<%--<asp:ImageButton ID="ibtnEdit" runat="server" Text="Edit" ToolTip="Edit" ImageUrl="~/images/edit-icon.gif" onClick="EditInNewWindow" />--%>
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.