D
Davix
Hi,
Maybe I'm crazy but...
I'm going to try to explain this ¿"bug"?
I've 2 aspx pages.
In page 1:
1 checkbox with default properties
1 textbox with autopostback=true
1 button
Page 2 is a blank page.
First I've checked the checkbox control and then I've click the
button.
Page 2 is open and then I close this second page.
Then when Page 1 appears again checkbox checked property value is
false!!!
How it's possible??
If I set autopostback property of textbox control to false, everything
works fine!!!
Thanks in advance.
Page 1 aspx
code-----------------------------------------------------------------------
<%@ Page Language="VB" AutoEventWireup="false"
CodeFile="_test.aspx.vb" Inherits="_test" Debug="false"
Explicit="true" Strict="true" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://
www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Página sin título</title>
</head>
<body>
<form id="form1" runat="server">
AutoPostBack="True"></asp:TextBox>
<br />
<asp:Button ID="Button1" runat="server" Text="Button" />
<br />
</div>
</form>
</body>
</html>
Page 1 codebehind--------------------------------------------------
Partial Class _test
Inherits System.Web.UI.Page
Protected Sub Button1_Click(ByVal sender As Object, ByVal e As
System.EventArgs) Handles Button1.Click
Dim strscript As String
strscript =
"<script>window.showModalDialog('_nothing.aspx','','dialogWidth:
460px;dialogHeight:350px'); __doPostBack('','');</script>"
ClientScript.RegisterClientScriptBlock(GetType(_test),
"s_window", strscript, False)
End Sub
End Class
Page 2 aspx
code------------------------------------------------------------
<%@ Page Language="VB" AutoEventWireup="false"
CodeFile="_nothing.aspx.vb" Inherits="_nothing" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://
www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Página sin título</title>
</head>
<body>
<form id="form1" runat="server">
<div>
</div>
</form>
</body>
</html>
Maybe I'm crazy but...
I'm going to try to explain this ¿"bug"?
I've 2 aspx pages.
In page 1:
1 checkbox with default properties
1 textbox with autopostback=true
1 button
Page 2 is a blank page.
First I've checked the checkbox control and then I've click the
button.
Page 2 is open and then I close this second page.
Then when Page 1 appears again checkbox checked property value is
false!!!
How it's possible??
If I set autopostback property of textbox control to false, everything
works fine!!!
Thanks in advance.
Page 1 aspx
code-----------------------------------------------------------------------
<%@ Page Language="VB" AutoEventWireup="false"
CodeFile="_test.aspx.vb" Inherits="_test" Debug="false"
Explicit="true" Strict="true" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://
www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Página sin título</title>
</head>
<body>
<form id="form1" runat="server">
<asp:TextBox ID="TextBox1" runat="server"said:<br />
AutoPostBack="True"></asp:TextBox>
<br />
<asp:Button ID="Button1" runat="server" Text="Button" />
<br />
</div>
</form>
</body>
</html>
Page 1 codebehind--------------------------------------------------
Partial Class _test
Inherits System.Web.UI.Page
Protected Sub Button1_Click(ByVal sender As Object, ByVal e As
System.EventArgs) Handles Button1.Click
Dim strscript As String
strscript =
"<script>window.showModalDialog('_nothing.aspx','','dialogWidth:
460px;dialogHeight:350px'); __doPostBack('','');</script>"
ClientScript.RegisterClientScriptBlock(GetType(_test),
"s_window", strscript, False)
End Sub
End Class
Page 2 aspx
code------------------------------------------------------------
<%@ Page Language="VB" AutoEventWireup="false"
CodeFile="_nothing.aspx.vb" Inherits="_nothing" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://
www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Página sin título</title>
</head>
<body>
<form id="form1" runat="server">
<div>
</div>
</form>
</body>
</html>