Hello, I have a really weird problem. I have a web application written in asp.net and it works perfectly locally, the problem appears when I deploy it to my remote server. Everything works fine except for a button, it updates information in a database. The thing is that the problem only appears in Internet Explorer (I'm using Internet Explorer 9) when I click update it reloads the page (it should do that and bring the updated information) but then it kind of loses the session because it does not recognize the user, the information never shows and It kind of …

Member Avatar
Member Avatar
+0 forum 1

I have a messagebox to display a error message from code behind, when i click ok on the message box, the parent window gets a postback. The parent window consists of Jquery code. Any solution for this issue ?

Member Avatar
Member Avatar
+0 forum 1

I would apprecaite any assistance with this task.. SourceForm.aspx contains a databound gridview which I have added a checkbox column for multiple row selection. OnClick of a button I want to display any selected rows on another page, Target.aspx So far I have successfully captured textbox input properites using PostBackUrl between the two, e.g. SourcePage.aspx <div> Enter your name: <asp:TextBox ID="_nameTextBox" runat="server" /><br /> Enter your age: <asp:TextBox ID="_ageTextBox" runat="server" /><br /> <asp:CheckBox ID="_marriedCheckBox" runat="server" Text="Married?" /><br /> <asp:Button ID="_nextPageButton" runat="server" Text="Next page" PostBackUrl="Target.aspx"/> <asp:Label ID="LabelTest" runat="server" Text="Hello anyway"></asp:Label> </div> Target.aspx Protected Sub Page_Load(sender As Object, e As System.EventArgs) Handles …

Member Avatar
Member Avatar
+0 forum 1

Hi, Please someone explain me what is viewstate and postback properties in simple words. I have sean many notes but still confused. Please explain with example and considering me as totaly new to IT (actually i am not). Please help i am very confused. Thank you.

Member Avatar
Member Avatar
+0 forum 2

the code in php: name it as postback.php [CODE=PHP] <?php $q=$_GET['q']; $query_type=$_GET['query_type']; $words=explode(' ',$q); $con = mysql_connect('localhost', 'root', '')or die('Could not connect: ' . mysql_error()); mysql_select_db("clc_books", $con)or die('cannot connect'); $q = preg_replace('/\s\s+/', ' ', $q); // remove extra space echo "<table border='1'>"; echo" <tr> <th>book id</th> <th>book number</th> <th>book name</th> <th>Author</th> <th>SRP</th> </tr>"; $operator=""; $condition=""; for( $i = 0; $i < count($words); ++$i ){ $condition.=$operator." CONCAT(".$query_type.") LIKE CONVERT(_utf8 '%".$words[$i]."%' USING latin1) COLLATE latin1_swedish_ci"; $operator=" OR "; } $sql = "SELECT *,CONCAT(".$query_type.") as fullname FROM `clc_books_list` "; if ($condition!="") $sql .= " where ($condition) "; $result = mysql_query($sql) or die('cannot query …

Member Avatar
+0 forum 0

I have two files here.... index.html and postback.php index.html [CODE=HTML] <html> <head> <script type="text/javascript"> function showUser(str) { if (str=="") { document.getElementById("txtHint").innerHTML=""; return; } if (window.XMLHttpRequest) {// code for IE7+, Firefox, Chrome, Opera, Safari xmlhttp=new XMLHttpRequest(); } else {// code for IE6, IE5 xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); } xmlhttp.onreadystatechange=function() { if (xmlhttp.readyState==4 && xmlhttp.status==200) { document.getElementById("txtHint").innerHTML=xmlhttp.responseText; } } xmlhttp.open("GET","postback.php?q="+str,true); xmlhttp.send(); } </script> </head> <body> <form> <!--<select name="users" onchange="showUser(this.value)"> <option value="">Select a person:</option> <option value="1">Peter Griffin</option> <option value="2">Lois Griffin</option> <option value="3">Glenn Quagmire</option> <option value="4">Joseph Swanson</option> </select>--> <input type="text" name="users" onchange="showUser(this.value)"> </form> <br /> <div id="txtHint"><b>Person info will be listed here.</b></div> </body> </html> [/CODE] postback.php …

Member Avatar
Member Avatar
+0 forum 8

Hi there, I'm using asp.net with the ScriptManager control from AJAX and some Javascript code., and came across this weird problem. The thing is that I have a page in which i placed the script manager and refreshed according to the interval of a timer. Some images are placed inside the ContentTemplate. The refreshing part works fine, but its the way objects are displayed on the window when reloading that causes me a problem. The point of using AJAX was to eliminate the flickering that happens when you load images or controls again because my project requires me to reload …

Member Avatar
+0 forum 0

I have a simple ASP.NET page where after the initial page load the user enters a username and a password to two text boxes. Note that I can not use the built-in login control in ASP.NET, as my purpose of using this username and password is slightly different. Now, I want the user to enter the said two values only once. Afterwards, using those two values I perform several tasks. Now here's the tricky part; since I set the TextMode property of the password text box to 'password', every time a button click occurs it clears the password field, and …

Member Avatar
Member Avatar
+0 forum 9

I have a DropDownList that is populated from an ObjectDataSource [CODE] <asp:DropDownList ID="ddlDepartment" runat="server" AutoPostBack="True" DataSourceID="odsGetDeptByFaculty" DataTextField="Dept" DataValueField="FID" onselectedindexchanged="ddlDepartment_SelectedIndexChanged"> </asp:DropDownList> <asp:ObjectDataSource ID="odsGetDeptByFaculty" runat="server" SelectMethod="usp_GetDeptByFaculty" TypeName="DataLayer.StoredProcs"> <SelectParameters> <asp:ControlParameter ControlID="ddlFaulty" Name="fCode" PropertyName="SelectedValue" Type="String" /> </SelectParameters> </asp:ObjectDataSource> [/CODE] My problem is when I run the program and select the option from the dropdownlist when the postback happens it returns to the first value in the list. Please help me nip resolve this issue. Many thanks in advance.

Member Avatar
Member Avatar
+0 forum 1

Hi everyone. I am writing a form that is builds an XML file. The form is multiple pages. Whenever I try to go to to the page after the next page, it tells me that it cannot access the XML file because it is in use by another process. It happens on the doc.load() method. Here is my code: [CODE] protected void next_Click(object sender, EventArgs e) { XmlDocument doc = new XmlDocument(); string fileName = (string)Session["FileName"]; try { doc.Load(fileName); } catch (System.IO.FileNotFoundException) { Server.Transfer("WebForm2.aspx"); } XmlElement question = doc.CreateElement("Question"); XmlAttribute questionattr = doc.CreateAttribute("ID"); questionattr.Value = questionIndex.ToString(); question.SetAttributeNode(questionattr); XmlElement questionText = …

Member Avatar
Member Avatar
+0 forum 2

I'm building an AJAX application for my company, and in the main screen there is a login form. The login form has a submit button which calls an ajax function that checks with a php page the validation for the login credentials, and sends back a confirmation message. This message is read by a javascript function, and, if invalid, changes the text in a [icode]div[/icode] tag for an error message. If valid, it submits the form to another php page which does the rest of the operations for login (cookie storage, user validation, etc). The thing is, whe I try …

Member Avatar
Member Avatar
+0 forum 3

We recently had a big code update which is causing error pages to appear when browsing our website, until such point that this is all fixed, it would be helpful if our users could post back the URL of the error page they appear at so we can fix that file and identify other files that may be affected. An error URL may look like this: /ErrorPages/PageNotFound.aspx?aspxerrorpath=/control/shop/Customers/ShopCustomerDetail.aspx Hopefully there is a standard, automated way of doing this as I do not want to ask our users to email the URL they see in their address bar as this isn't something …

Member Avatar
+0 forum 0

The End.