Hi Guys
i am opening a popup(asp.net) from a classic asp application like this
openModalWindow("http://localhost/ImportExport/Property_Addresss.aspx?parValuationID=" + ValuationId + "&Userid=" + '<%=Session("USER_ID")%>' , 'Property Address Edit', 600, 500);
and all my parameters are passed nicely and there is no problem the asp.net application gets opened and my asp.net page has the following html
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Property_Addresss.aspx.cs" Inherits="ImportExport.Property_Addresss" %>
<!DOCTYPE html>
<form id="form1" runat="server" target="_self">
<div>
<table border="1" width="100%" class="table">
<!--NAVIGATION BUTTONS-->
<tr class="Notes">
<td colspan="2">
EDIT PROPERTY ADDRESS</td>
</tr>
<tr class="Notes">
<td>
</td>
<td> </td>
</tr>
<!--end OF NAVIGATION BUTTONS-->
<tr class="Notes">
<td>
<p align="right"><b>PROPERTY KEY</b></p></td>
<td> <asp:TextBox runat="server" id="txtpropertykey" class="Number" name="txtpropertykey" size="13" tabindex="55" type="text" Enabled="False" ReadOnly="True" /></td>
</tr>
<tr class="Notes">
<td>
<p align="right">
<b>ADDRESS 1</b></p></td>
<td>
<asp:TextBox runat="server" id="txtADDRESS1" cols="36" name="txtaddress1" rows="3" tabindex="61"></asp:TextBox></td>
</tr>
<tr class="Notes">
<td>
<p align="right">
<b>ADDRESS 2</b></p></td>
<td>
<asp:TextBox runat="server" id="txtaddress2" cols="36" name="txtaddress2" rows="3" tabindex="61"></asp:TextBox></td>
</tr>
<tr class="Notes">
<td>
</td>
<td>
<asp:Button runat="server" ID="btnEdit" class="button" Text="SAVE & CLOSE" style="float: left" OnClick="btnEdit_Click" /></td>
</tr>
<tr class="Notes">
<td>
</td>
<td>
<asp:Label ID="lblerror" runat="server" style="font-weight: 700; color: #FF3300" ></asp:Label>
</td>
</tr>
</table>
</div>
</form>
</body>
</html>
now when i click the Button "
btnEdit " this fires a Postback and save the data in the DB but this opens another Page separately
Can
Thank you for posting at Dotnetfunda
[Administrator]