Note that there are some explanatory texts on larger screens.

plurals
  1. PODeployment issue asp.net web application
    primarykey
    data
    text
    <p>I have shopping cart web application. when I am running that in my local machine that works fine. But when i hosted my application online i am facing two issue</p> <ol> <li>when i login and uses my application after some time user automatically signout and redirected to login page.</li> <li>some of the pictures retrieved and shown by the datalist control not shown only the text is show</li> </ol> <p>I am using method FormsAuthentication.RedirectFromLoginPage(username, true) for the login the user</p> <p>my web.config file is</p> <pre><code>&lt;?xml version="1.0"?&gt; &lt;!-- For more information on how to configure your ASP.NET application, please visit http://go.microsoft.com/fwlink/?LinkId=169433 --&gt; &lt;configuration&gt; &lt;connectionStrings&gt; &lt;add name="shopingConnectionString1" connectionString="workstation id=shoppingpra.mssql.somee.com;packet size=4096;user id=pramuk98;pwd=kumarjha;data source=shoppingpra.mssql.somee.com;persist security info=False;initial catalog=shoppingpra" providerName="System.Data.SqlClient" /&gt; &lt;/connectionStrings&gt; &lt;system.web&gt; &lt;compilation debug="true" targetFramework="4.0" /&gt; &lt;authentication mode="Forms"&gt; &lt;forms defaultUrl="default.aspx" loginUrl="login1.aspx" timeout="1000000" cookieless="AutoDetect" &gt;&lt;/forms&gt; &lt;/authentication&gt; &lt;authorization&gt; &lt;deny users="?"/&gt; &lt;/authorization&gt; &lt;/system.web&gt; &lt;/configuration&gt; </code></pre> <p>And the login page code i'm using</p> <pre><code>User Name&lt;br /&gt; &lt;asp:TextBox ID="TextBox1" runat="server"&gt;&lt;/asp:TextBox&gt; &lt;asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="TextBox1" ErrorMessage="fill usename "&gt;&lt;/asp:RequiredFieldValidator&gt; &lt;br /&gt; Password&lt;br /&gt; &lt;asp:TextBox ID="TextBox2" runat="server" TextMode="Password"&gt;&lt;/asp:TextBox&gt; &lt;asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="TextBox2" ErrorMessage="fill password"&gt;&lt;/asp:RequiredFieldValidator&gt; &lt;br /&gt; &lt;asp:ImageButton ID="ImageButton3" runat="server" AlternateText="sign in" onclick="ImageButton3_Click" ImageUrl="~/img/str/buttons/sign in.bmp" /&gt; protected void ImageButton3_Click(object sender, ImageClickEventArgs e) { int flag = 0; SqlConnection con = new SqlConnection(ConfigurationManager.ConnectionStrings["shopingConnectionString1"].ConnectionString); string s = "select * from login"; SqlCommand com = new SqlCommand(s, con); con.Open(); if (con.State == ConnectionState.Open) { SqlDataReader dtr; dtr = com.ExecuteReader(); while (dtr.Read()) { if (dtr[0].ToString().Equals(TextBox1.Text) &amp;&amp; dtr[1].ToString().Equals(TextBox2.Text)) { flag = 1; Response.Cookies["uname"].Value = TextBox1.Text; Response.Cookies["pwd"].Value = TextBox2.Text; Response.Cookies["role"].Value = dtr[2].ToString(); FormsAuthentication.RedirectFromLoginPage(TextBox1.Text, false); } else { Label1.Text = "your credential are incorrect"; } } </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload