Web Forms :: Page Clears User Choices After Postback With Internet Explorer
May 26, 2010
Alright, I am completely baffled by this one. When filling out this page in IE8, it will SOMETIMES clear all entered data (including radio choices) when you select Yes, No, or Not sure (line 892 in the code). This is a postback question, as it should potentially show more questions. This problem does not happen in any other browser, and rarely in IE8. I have no idea what is causing it, the code I am using has been used in similar applications and I can't find any change which results in this behavior.
The full code can be found here: http://pastebin.com/a12cPzyF
View 1 Replies
Similar Messages:
Jun 5, 2015
At my work I have 2 logins, my main login "mike", and another one that we use to login into servers to manage applications, user "tech_mike"
On my machine I am logged in as "mike", I published the web-application to the server (through FTP). I RDP into the server using "tech_mike", and setup the application in IIS (create app, disable basic authentication and set windows authentication for the app)
Now when I want to test the application from my computer (user logged in "mike"), in the browser I type the link to the app [URL] and it tells me that I am not authorized. In the logs I can see that it is trying to login as "tech_mike", even though the user that I am logged in from my computer is "mike".
If I try to open the app on my local machine (local IIS), it is using the correct user "mike"
If someone else (another developer, he has "tech_user" account also) opens the app on the server: [URL] then he is able to login because it takes the correct user that is logged in into windows (not the "tech_user" account).
It seems only I have this problem because I connected through RDP (using different user) to setup the application in IIS on the server.
This is happening on all apps on the server that are using Windows Authentication, IIS (I think) somehow replaces my user "mike" with "tech_mike"
View 2 Replies
Jan 22, 2010
I have a simple form written in asp.net/C# and when trying to hit enter while in the form's input box doesn't submit the form for some reason. I had implemented a fix for a previous bug where pressing enter would merely refresh the page without submitting the form data but now pressing enter just does nothing, the fix is below:
<div style="display: none">
<input type="text" name="hiddenText" />
</div>
anybody know about a fix for this or a workaround?
View 3 Replies
Jul 18, 2010
I have an ASP.NET problem. When I press Back on Internet explorer, the previous page will be appeared. I need to prevent this page form appearing. How can I do this
View 3 Replies
Jun 10, 2010
when i test this page http://www.catalogues4u.com.au/ViewCategory.aspx?catID=119 im getting the above error. to replicate this issue visit the above page in ie7 and you will get the prompt.
View 3 Replies
Aug 6, 2010
I'm trying to publish my page and received this error when open it:
[Code]....
When I browse it in the development environment using Microsoft Web Developer 2005 it view just fine. I then copy all my files & put in C:Inetpubwwwroot and open IE to view it, the above error showed up. In IE8|Tools|Internet Options|Advance, I uncheck "Show Friendly Http Error Msgs" in hoping that it'll show me something more than the basic error, but I'm not getting much more.
View 5 Replies
Jun 24, 2010
Can I disable all properties of an Internet Explorer when it opens a particular page called "help.aspx".I want that no option should be displayed on that page,just the content of the page which include the image of a person.
View 1 Replies
Sep 28, 2010
I have used jquery for mbscrollable it working fine but when i run application in Internet Explorer it gives error on button which redirects to next page. Error is: The state information is invalid for this page and might be corrupted. Server Error in '/maxnetecommerce' Application. The state information is invalid for this page and might be corrupted. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Web.HttpException: The state information is invalid for this page and might be corrupted.
Source Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. Stack Trace:
[FormatException: Invalid character in a Base-64 string.]
System.Convert.FromBase64String(String s) +0
System.Web.UI.ObjectStateFormatter.Deserialize(String inputString) +102
System.Web.UI.Util.DeserializeWithAssert(IStateFormatter formatter, String serializedState) +59
System.Web.UI.HiddenFieldPageStatePersister.Load() +124
[ViewStateException: Invalid viewstate.
Client IP: 182.72.17.210
Port: 54486
User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.1; .NET4.0C)
ViewState: /wEPDwULLTEwMjY3ODM1MjEPFgIeB2VuZERhdGUFAjMwFgJmD2QWAgIDD2QWBgIFD2QWAmYPFgIeBFRleHQF+CE8ZGl2IGlkPSdtZW51Jz48dWwgY2xhc3M9J21lbnUnPjxsaSBpZD0nMCcgb25DbGljaz0nc2V0Q29va2llKDApJz48YSBocmVmPSdEZWZhdWx0LmFzcHgnIGNsYXNzPSdwYXJlbnQnPjxzcGFuPkhvbWU8L3NwYW4+PC9hPjwvbGk+PGxpIGlkPScxJyBvbkNsaWNrPSdzZXRDb29raWUoMSknPjxhIGhyZWY9J1JlZ2lzdGVyLmFzcHgnIGNsYXNzPSdwYXJlbnQnPjxzcGFuPlJlZ2lzdGVyPC9zcGFuPjwvYT48L2xpPjxsaSAgaWQ9JzInIG9uQ2xpY2s9J3NldENvb2tpZSgyKSc+PGEgaHJlZj0nTG9naW5QYWdlLmFzcHgnIGNsYXNzPSdwYXJlbnQnPjxzcGFuPkxvZ2luPC9zcGFuPjwvYT48L2xpPjxsaSBpZD0zIG9uQ2xpY2s9J3NldENvb2tpZSgzKScgPjxhIGhyZWY9JyMnIGNsYXNzPSdwYXJlbnQnPjxzcGFuPkJpa2VzPC9zcGFuPjwvYT48ZGl2Pjx1bD4gPGxpIGlkPTMgb25DbGljaz0nc2V0Q29va2llKDMpJyA+PGEgaHJlZj0nQ2F0ZWdvcnlGZWF0dXJlZFByb2R1Y3RzLmFzcHg/UGFyZW50Q2F0aWQ9MzUmU3ViQ2...]
[HttpException (0x80004005): The state information is invalid for this page and might be corrupted.]
System.Web.UI.ViewStateException.ThrowError(Exception inner, String persistedState, String errorPageMessage, Boolean macValidationError) +148
System.Web.UI.HiddenFieldPageStatePersister.Load() +10956310
System.Web.UI.Page.LoadPageStateFromPersistenceMedium() +11040040
System.Web.UI.Page.LoadAllState() +46
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +11035559
System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +11035098
System.Web.UI.Page.ProcessRequest() +91
System.Web.UI.Page.ProcessRequest(HttpContext context) +240
ASP.default_aspx.ProcessRequest(HttpContext context) +52
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +599
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +171
But it works fine in Mozilla Firefox, when i remove mbscrollable from page no error comes
View 1 Replies
Jun 22, 2010
I am receiving the following error when browsing my asp.net page in internet explorer while in firefox mozilla everything works fine. I have tried different approaches as I believe there is a problem with VIEWSTATE as to
- <pages enableViewStateMac="false" >
- <pages enableViewState="false">
- <pages viewStateEncryptionMode="Never">
- <pages maxPageStateFieldLength="40">
but nothing seems to work. The error looks like below: Source Error: [No relevant source lines]
Source File: c:WINDOWSMicrosoft.NETFrameworkv2.0.50727Temporary ASP.NET Filesemportalermal7c94fef4cccf3353App_Web_mtkk1qfn.6.cs Line: 0
Stack Trace:
[FormatException: Invalid character in a Base-64 string.]
System.Convert.FromBase64String(String s) +0
System.Web.UI.ObjectStateFormatter.Deserialize(String inputString) +72
System.Web.UI.ObjectStateFormatter.System.Web.UI.IStateFormatter.Deserialize(String serializedState) +4
System.Web.UI.Util.DeserializeWithAssert(IStateFormatter formatter, String serializedState) +37
System.Web.UI.HiddenFieldPageStatePersister.Load() +113
[ViewStateException: Invalid viewstate.
Client IP: 127.0.0.1
Port:
User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)
ViewState: /wEPDwUKLTk3MzIyNTg5OA9kFgJmD2QWBAIBD2QWAgIJDxYCHgRocmVmBSV+L3Byb19kcm9wbGluZV8xL3Byb19kcm9wbGluZV9pbmQuY3NzZAIDD2QWBgIDD2QWAmYPZBYGAgkPFgIeBWNsYXNzBQZhY3RpdmVkAgsPFgIfAQUGYWN0aXZlZAJBDxYCHwAFFi4uL2FsL2NvbnRhY3RQYWdlLmFzcHhkAgUPZBYKAgEPZBYYAgEPDxYCHghJbWFnZVVybAUnLi4vaW1hZ2VzL0NhdGVnb3J5SW1hZ2VzL3BhcmFwYWd1YXIuZ2lmZGQCAw8PFgQeBFRleHQFCFN0YW5kYXJkHgtOYXZpZ2F0ZVVybAUULi4vYWwvcGFnZS5hc3B4P2lkPTRkZAIFDw8WAh4HVmlzaWJsZWhkZAIHDw8WCB4IQ3NzQ2xhc3MFDmNsaWNrZWRTdWJNZW51HwMFDlN1cGVyIFJpbmlyaW5nHwQFFi4uL2FsL3BhZ2UuYXNweD9pZD05MDgeBF8hU0ICAmRkAgkPDxYCHwVoZGQCCw8PFgIfBWhkZAINDw8WAh8CBSguLi9pbWFnZXMvQ2F0ZWdvcnlJbWFnZXMvbWUga29udHJhdGUuZ2lmZGQCDw8PFgQfAwUETGlmZR8EBRUuLi9hbC9wYWdlLmFzcHg/aWQ9NTBkZAIRDw8WBB8DBQZMaWZlICsfBAUVLi4vYWwvcGFnZS5hc3B4P2lkPTk2ZGQCEw8PFgQfAwUHTGlmZSA2MB...]
[HttpException (0x80004005): The state information is invalid for this page and might be corrupted.]
System.Web.UI.ViewStateException.ThrowError(Exception inner, String persistedState, String errorPageMessage, Boolean macValidationError) +106
System.Web.UI.ViewStateException.ThrowViewStateError(Exception inner, String persistedState) +14
System.Web.UI.HiddenFieldPageStatePersister.Load() +217
System.Web.UI.Page.LoadPageStateFromPersistenceMedium() +105
System.Web.UI.Page.LoadAllState() +43
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +6785
System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +242
System.Web.UI.Page.ProcessRequest() +80
System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) +21
System.Web.UI.Page.ProcessRequest(HttpContext context) +49
ASP.al_page_aspx.ProcessRequest(HttpContext context) in c:WINDOWSMicrosoft.NETFrameworkv2.0.50727Temporary ASP.NET Filesemportalermal7c94fef4cccf3353App_Web_mtkk1qfn.6.cs:0
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +181
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75
Remember that the error appear just in internet explorer
View 1 Replies
Jun 6, 2010
i want to close internet explorer on if a button is closed which i can do with this code
Page.ClientScript.RegisterClientScriptBlock(Me.GetType, "jcrCallerID", "window.close();", True)
this code is working fine for me but it is also coming up with warning which i dont want.
The warning is saying the webpage is trying to close do you want to continue closing the webpage yes /no
I want to avoide this warning and just close the browser windows.
View 3 Replies
Feb 3, 2010
isn't there any way except setting the website as an application in IIS??because i want to create it in filesystem.thare are lots of links andi i almost all of them but i'm confused and it doesn't work.
View 2 Replies
Jan 19, 2011
I have asp button control on my page. Upon running in IE, it is not doing anything even postback. While the same is running perfect in Firefox. I have surfed the web regarding the problems and almost applied all the things. I have no double forms tag. I found one solution to set UseSubmitBehavior="false". After this, it work but my text box controls lose its content. I am using framework 3.5.
View 8 Replies
Jul 15, 2010
i want to send mail to user using checkbox selection within Grid View so i write this code using this website: [URL] But problem is this is working in mozilla but not in IE 8 , my IE enable script debugging. here is my code:
<table>
<tr>
<td>
Select User Type:
</td>
<td>
<asp:DropDownList ID="DropDownList1" runat="server" OnTextChanged="DropDownList1_TextChanged" AutoPostBack="true">
<asp:ListItem Text="--Select--" Selected="True" Value="1"></asp:ListItem>
<asp:ListItem Text="Free User"></asp:ListItem>
<asp:ListItem Text="Paid User"></asp:ListItem>
<asp:ListItem Text="All User"></asp:ListItem>
</asp:DropDownList>
</td>
</tr>
<tr>
<td colspan="2" align="center">
<script language="javascript" type="text/javascript">
function SelectAllCheckboxes(spanChk)
{
// Added as ASPX uses SPAN for checkbox
var oItem = spanChk.children;
var theBox=(spanChk.type=="checkbox")?spanChk:spanChk.children.item[0];
xState=theBox.checked;
elm=theBox.form.elements;
for(i=0;i<elm.length;i++)
if(elm[i].type=="checkbox" && elm[i].id!=theBox.id)
{
//elm[i].click();
if(elm[i].checked!=xState)
elm[i].click();
//elm[i].checked=xState;
}
}
</script>
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataKeyNames="uid">
<Columns>
<asp:boundfield DataField="uid" HeaderText="uid" ReadOnly="True" InsertVisible="False" SortExpression="uid" Visible="False">
</asp:boundfield>
<asp:boundfield DataField="nregistration" HeaderText="Registration" SortExpression="nregistration">
<ItemStyle Width="100px" />
</asp:boundfield>
<asp:boundfield DataField="nname" HeaderText="Name" SortExpression="nname">
<ItemStyle Width="100px" />
</asp:boundfield>
<asp:templatefield HeaderText="Email" SortExpression="nemail">
<ItemTemplate>
<asp:Label ID="lblemail" runat="server" Text='<%# Eval("nemail") %>'>
</asp:Label>
</ItemTemplate>
</asp:templatefield>
<asp:boundfield DataField="ntelephone" HeaderText="Telephone" SortExpression="ntelephone" Visible="False">
</asp:boundfield>
<asp:boundfield DataField="naddress" HeaderText="Address" SortExpression="naddress" Visible="False">
</asp:boundfield>
<asp:boundfield DataField="ndate" HeaderText="Date" SortExpression="ndate" Visible="False">
</asp:boundfield>
<asp:boundfield DataField="uname" HeaderText="uname" SortExpression="uname" Visible="False">
</asp:boundfield>
<asp:boundfield DataField="upassword" HeaderText="upassword" SortExpression="upassword" Visible="False">
</asp:boundfield>
<asp:boundfield DataField="usertype" HeaderText="UserType" SortExpression="usertype">
<ItemStyle Width="100px" />
</asp:boundfield>
<asp:boundfield DataField="umonth" HeaderText="Month" SortExpression="umonth">
<ItemStyle Width="100px" />
</asp:boundfield>
<asp:templatefield HeaderText="Select">
<HeaderTemplate>
<input id="chkAll" onclick="javascript:SelectAllCheckboxes(this);" runat="server" type="checkbox" title="xyz" />
</HeaderTemplate>
<ItemTemplate>
<asp:CheckBox ID="chkSelect" runat="server" />
</ItemTemplate>
</asp:templatefield>
</Columns>
</asp:GridView>
<asp:AccessDataSource ID="AccessDataSource1" runat="server" DataFile="~/database/profit_street.mdb"
SelectCommand="SELECT * FROM [registration]"></asp:AccessDataSource>
</td>
</tr>
<tr>
<td>
Subject: </td>
<td>
<asp:TextBox ID="TextBox1" runat="server" Columns="60"></asp:TextBox>
</td>
</tr>
<tr>
<td>
Message:
</td>
<td>
<asp:TextBox ID="TextBox2" runat="server" Columns="60" Rows="8" TextMode="MultiLine"></asp:TextBox>
</td>
</tr>
<tr>
<td colspan="2" align="center">
<asp:Button ID="Button1" runat="server" Text="Send Mail" OnClick="Button1_Click" ValidationGroup="x1"/>
</td>
</tr>
</table>
===========================In CS===================================
protected void DropDownList1_TextChanged(object sender, EventArgs e)
{
if (DropDownList1.SelectedItem.Text=="Free User")
{
con.Open();
OleDbCommand cmd = new OleDbCommand("select * from registration where usertype='Free User'", con);
OleDbDataReader red = cmd.ExecuteReader();
GridView1.DataSource = red;
GridView1.DataBind();
con.Close();
}
else if (DropDownList1.SelectedItem.Text=="Paid User")
{
con.Open();
OleDbCommand cmd = new OleDbCommand("select * from registration where usertype='Paid User'", con);
OleDbDataReader red = cmd.ExecuteReader();
GridView1.DataSource = red;
GridView1.DataBind();
con.Close();
}
else if (DropDownList1.SelectedItem.Text == "All User")
{
con.Open();
OleDbCommand cmd = new OleDbCommand("select * from registration", con);
OleDbDataReader red = cmd.ExecuteReader();
GridView1.DataSource = red;
GridView1.DataBind();
con.Close();
}
}
protected void Button1_Click(object sender, EventArgs e)
{
con.Open();
foreach (GridViewRow gv in GridView1.Rows)
{
CheckBox deleteChkBxItem = (CheckBox)gv.FindControl("chkSelect");
if (deleteChkBxItem.Checked)
{
StringBuilder str = new StringBuilder();
string strMail = ((Label)gv.FindControl("lblemail")).Text.ToString();
SmtpClient sc = new SmtpClient();
MailMessage mm = new MailMessage("webtechno.in@gmail.com", strMail);
mm.Subject = TextBox1.Text;
mm.Body = TextBox2.Text;
sc.EnableSsl = true;
sc.Send(mm);
Response.Write(strMail);
}
}
con.Close();
}
View 5 Replies
May 6, 2010
I have a page that utilizes an IFrame to display another page within the first one. I am using ASP.NET 3.5 and when I click on a button to do a post back event, it causes Internet Explorer 7 to throw an error.
View 3 Replies
Feb 9, 2010
I created an active x dll and I am using this dll on my web page. whenever I try to run my web site and perform any action, it displays at the top
"Internet explorer has blocked this site from using ActiveX control in an unsafe manner. As a result, this page may not display correctly"
I tried to add my site in trusted sites, but trusted sites only takes the site that has https: prefix. Is their any way I can add my site to trusted sites. My security level is very low. I want to set up the security only for this site so that users can use it.
View 3 Replies
May 7, 2015
I have one ocx control. this ocx for getting information about keyboard events from client machine.I need to access this OCX from web page IE. this ocx should install in client machine.
View 1 Replies
Dec 6, 2010
I have a page with two data bound list box controls on it. When I there is data in the controls the page crashes and i get "Internet Explorer cannot display the webpage". I have tried to set break points to see what is going on. I have tries to fill the boxes in the code behind instead of using a data source in the page. I have tried setting the page time out to 3 minutes. Nothing is working and I'm not sure what the problem is. The page works fine as long as there is no data in the controls. I'm trying to figure out what I am missing.
Attached Files CodeProblem.txt (40.3 KB, 35 views) Frinavale EMM Join Date: Oct 2006 Location: Canada
Posts: 6,545
#2:
Dec 9 '10
Listbox causes page to Crash getting "Internet Explorer cannot display the webpage" Instead of posting your entire code for us to review, could you post the specific portion of the code that you think is causing the problem (probably the retrieval or setting of the data).
View 2 Replies
Feb 2, 2010
I have a problem.when i create a new web site and browse it with IE8 ,there is error(Internet Explorer cannot display the webpage) and now i am working with VS2008 and IE8.but i also have an older version of VS(VS2005) on the same computer.when i created a new web page with 2005 ,there is no problem and everything is ok. what is the problem with VS2008??i uninstalled it and reinstalled.but there is same error.i tried VS2008 on the another computer and i had no problem.
View 2 Replies
Feb 2, 2010
I used a ASP Image control using Visual Studio 2008 and defined the URL to the JPG picture as in :
asp:Image ID="Image1" runat="server" ImageUrl="~/App_Data/Stone Forest 2.jpg"
style="z-index: 1; left: 368px; top: 290px; position: absolute; height: 307px; width: 537px" />
When VS debugging view on the .aspx page on Internet Explorer 8, I don't see the picture except for a blank Image control box outline and at the top left corner, a symbol "X" in a square box was displayed. Is there some settings to do with IE8 or Visual Studio 2008 ?
View 5 Replies
Apr 29, 2010
how can i get around the following problem-i have a drop down list control on one of my pages- ddlEmployeeTypeit lists 1.Perminent2. Contract3.Tempon selected index change, if its contract or temp, then a text box appears where the user need to type in the contract expiry date-so changing from Perminent --> Contract text box appears- but when the internet explorer back button is clicked - the text box dissapears (which is fine) but the ddl does not change it still reads contract i wanted it to revert back to perminent.is there a solution to this problem?
View 4 Replies
Nov 4, 2010
I have a crystal report page where on clicking upon internet explorer button i need to show this message.Some time it shows the message and some time it doesn't ??
View 5 Replies
May 29, 2010
i have hosted a website on local IIS, when im trying to run the application by typing the url the webpage is getting closed itself.
The same thing is working fine on other system.
View 8 Replies
Feb 10, 2011
How can you get the width of the browzer window with Internet Explorer 9. Old methods don't appear to work!
View 2 Replies
Jun 7, 2012
I want put horizental line in my page i set this code in my page
<hr width="130px" color="black" size="1px" />
In chrome&FF It show correct but in IE size of line is thicker than 1px .
I want it show my horizental line 1px in IE too.
View 1 Replies
Mar 18, 2010
I have taken menu control to display pages on my project. it is working fine in mozilla bu not in safari and internet explorer.
In safari Even sub menu items are not coming. it is displaying like this.
T-Shirts Expand <b>T-Shirts</b> Caps Expand
<b>Caps</b> Bags Expand
<b>Bags</b> Neck
Ties Expand <b>Neck Ties</b> Gift
Items Expand <b>Gift Items</b> in Safari.
In Internet explorer sub menu items are not coming.
View 2 Replies