Hi,
I have problem by using "showmodaldialog" in my application. I am using ASP.NET with C#
here i submit some code
parent.aspx page
----------------
child.aspx
----------
Width="77px" />
child.aspx.cs
-------------
protected void Button1_Click(object sender, EventArgs e)
{
Response.Write(TextBox1.Text);
}
after open the child.aspx page, if i click "OK" mean, Its work properly
but if i did any other event without close the child page in popup window it will open new and normal webpage.
but the code will work in only firefox in another browser is not work(IE,Chrome,Opera)
So how can i solve it..... Help me
What is showmodaldialog and the function of it?
7 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Akkiraju IvaturiRank #474 · 5.2K pointsPosted Aug 4, 2012, 9:12 PM EDT
Kumar Shanmugam6 pointsPosted Aug 6, 2012, 12:42 AM EDT
Kumar Shanmugam6 pointsPosted Aug 10, 2012, 2:33 AM EDT
any one consider my problem and give the solution.....
this is my last request.........
Kumar
Akkiraju IvaturiRank #474 · 5.2K pointsPosted Aug 10, 2012, 5:51 AM EDT
I asked you to use the syntax targer = _self.
OK. I have taken your code and added the target and it works in IE. What is your browser version?
You have to add <base target="_self"/> after <head id = "Head1" runat="server">
as below:
<head if="head1" runat="server">
<base target="_self"/>
<title></title>
...
This you have to include in your child.aspx. Let me know if you are still facing the challenge. But do send me the browser version too.
If this satisfies your problem, mark the answer as accepted
Akkiraju IvaturiRank #474 · 5.2K pointsPosted Aug 10, 2012, 6:06 AM EDT
SIVAKUMAR LAKSHMANAN5 pointsPosted Aug 1, 2013, 5:36 AM EDT
SIVAKUMAR LAKSHMANAN5 pointsPosted Aug 1, 2013, 5:36 AM EDT