All Forumshttp://forums.asp.net/default.aspxAll ForumsFri, 24 May 2013 20:00:22 -0400urn:uuid:00000000-0000-0000-0000-000000000000urn:uuid:00000000-0000-0000-0000-000005404800http://forums.asp.net/p/1909440/5404800.aspx/1?What+am+I+doing+wrong+What am I doing wrong? <p>Hi,</p> <p>In MemberShipGetUser I call a stored procedure to get the information on the customer. I need to pass customerid to the stored procedure.</p> <pre class="prettyprint">public override MembershipUser GetUser(string username, bool userIsOnline) { SqlConnection conn = new SqlConnection(System.Configuration.ConfigurationManager.ConnectionStrings[&quot;Test&quot;].ConnectionString); SqlCommand cmd = new SqlCommand(&quot;spGetUserByEmail&quot;, conn); cmd.Parameters.AddWithValue(&quot;@CustomerAddressBookID&quot;, Util.customerid); cmd.CommandType = CommandType.StoredProcedure; DataTable dt = new DataTable(); SqlDataAdapter da = new SqlDataAdapter(cmd); da.Fill(dt); if (dt == null || dt.Rows.Count == 0) return null; DataRow dr = dt.Rows[0]; int customerid= int.Parse(dr[&quot;customerid&quot;].ToString()); //I load other objects as well TMembershipUser u = new TMembershipUser(customerid...); return u; }</pre> <p><br />I pass&nbsp;</p> <pre class="prettyprint">Util.customerid</pre> <p>to the stored procedure in order to get all the required information.</p> <p>In the different class, I validated the user:</p> <pre class="prettyprint">public static bool ValidateUser(string email, string password) { SqlConnection conn = new SqlConnection(System.Configuration.ConfigurationManager.ConnectionStrings["Test"].ConnectionString); SqlCommand cmd = new SqlCommand("spValidateUser", conn); cmd.Parameters.AddWithValue("@Email", email); cmd.Parameters.AddWithValue("@Password", password); cmd.CommandType = CommandType.StoredProcedure; DataTable dt = new DataTable(); SqlDataAdapter da = new SqlDataAdapter(cmd); da.Fill(dt); if (dt == null || dt.Rows.Count == 0) return true; // int valid = (int)dt.Rows[0][0]; DataRow dr = dt.Rows[0]; customerid= int.Parse(dr["customerid"].ToString()); userid= int.Parse(dr["userid"].ToString()); if (dt.Rows.Count &gt;0) return true; else return false; }</pre> <p><br />In here, in a databale I return userid and customer ID. &nbsp;Everything works, fine until this point.</p> <p>In the master page, I have a dropdownlist</p> <pre class="prettyprint">&lt;asp:DropDownList ID="DropDownList1" runat="server" Height="30px" Width = "160px" onselectedindexchanged="DropDownList1_SelectedIndexChanged" Visible="False" BackColor="#A6B1BC" ForeColor="White" AutoPostBack="True" DataSourceID="SqlDataSource1" DataTextField="CustomerName" DataValueField="CustomerID" &gt; &lt;asp:ListItem&gt;Select Division&lt;/asp:ListItem&gt; &lt;/asp:DropDownList&gt; &lt;asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="&lt;%&#36; ConnectionStrings:Test %&gt;" SelectCommand="SELECT [customerid], [CustomerName] FROM [UserCustomers_v] WHERE ([userid] = @UserAddressBookId)"&gt; &lt;SelectParameters&gt; &lt;asp:ControlParameter ControlID="lblemail" Name="userid" PropertyName="Text" Type="Int64" /&gt; &lt;/SelectParameters&gt; &lt;/asp:SqlDataSource&gt;</pre> <p><br />In the dropdownlist it loads all the customer (with customerid as value) for the particular user. &nbsp;What I want to do is on the selectedindexchange of the dropdown pass the customerid of the dropdown to that MemberShipGetSUser stored procedure (parameter).</p> <p>Here's how I approach it:</p> <pre class="prettyprint"> protected void DropDownList1_SelectedIndexChanged(object sender, EventArgs e) { //I set the dropdown value (CustomerID) to the Until.customeraddressbookid Util.customeraddressbookid = int.Parse(DropDownList1.SelectedValue.ToString()); //I override the existing Util.Customeraddressbookid in the GetUser() storedprocedure MembershipUser member = Membership.GetUser(Util.customeraddressbookid, true); TPTRIMembershipUser user = ((TPTRIMembershipUser)Membership.GetUser()); lblClientName.Text = user.FullName; }</pre> <p><br />For some reason, the last part is not working. Once I do a selected Index change I should recieve the infromation for the customer from dropdown list. It chokes right here...</p> <pre class="prettyprint"> Util.customeraddressbookid = int.Parse(DropDownList1.SelectedValue.ToString()); MembershipUser member = Membership.GetUser(Util.customeraddressbookid, true);</pre> <p>Any suggestions on how I can fix this?<br> <br> </p> <p></p> <p></p> 2013-05-24T23:40:41-04:002013-05-24T23:40:41.103-04:00urn:uuid:00000000-0000-0000-0000-000005404324http://forums.asp.net/p/1909315/5404324.aspx/1?Index+was+out+of+range+Must+be+non+negative+and+less+than+the+size+of+the+collection+Index was out of range. Must be non-negative and less than the size of the collection. <p>i am having a label in itemtemplate in the grid<br> i am having the code<br> CType(gridv1.Rows(i).FindControl(&quot;ID&quot;), Label)</p> <p>Run-time exception thrown : System.ArgumentOutOfRangeException - Index was out of range. Must be non-negative and less than the size of the collection.<br> Parameter name: index</p> 2013-05-24T11:15:03-04:002013-05-24T11:15:03.407-04:00urn:uuid:00000000-0000-0000-0000-000005404798http://forums.asp.net/p/1909439/5404798.aspx/1?Same+application+different+layout+to+userSame application different layout to user <p>Hi,</p> <p>We have an .net 4.0 application that we developed in windows 8. We deployd to Windows Server 2012.</p> <p>&nbsp;</p> <p>When the end user access it in windows server 2012 IIS, the layout get different from the windows 8 developer machine...</p> <p>How can we fix this difference? it's basic some layout stuff, like margins, css...</p> 2013-05-24T23:32:58-04:002013-05-24T23:32:58.857-04:00urn:uuid:00000000-0000-0000-0000-000005404676http://forums.asp.net/p/1909406/5404676.aspx/1?Text+inside+textbox+into+item+template+but+script+say+s+its+emptyText inside textbox into item template but script say's its empty <p><span id="result_box" lang="en"><span class="hps">Dear</span> <span class="hps"> Aspers</span><span>,</span><br> <br> <span class="hps">On</span> <span class="hps">my page</span> <span class="hps">the owners </span></span><span id="result_box" lang="en"><span class="hps"><span id="result_box" lang="en"><span class="hps">can customize</span></span></span> <span class="hps">their</span> <span class="hps">post in chatbox</span><span class="hps"></span><span>.</span> When the user clicks the<span class="hps"> edit</span> <span class="hps">button</span> <span id="result_box" lang="en">the</span> <span class="hps"> text</span> <span class="hps">which</span> <span class="hps">is</span> <span class="hps"> stored in</span> <span class="hps">a label</span> <span class="hps">becomes transferred into</span><span class="hps"> a</span> <span class="hps">text box</span><span>.</span> </span></p> <p><span id="result_box" lang="en"><span class="hps">This</span> <span class="hps"> text box</span> <span class="hps">is in a</span> <span class="hps">Itemtamplate</span> of <span class="hps">a data</span> <span class="hps">list</span><span>.</span> <span class="hps"> When the text</span> <span class="hps">is transfered in</span>to <span class="hps"> the textbox</span> <span class="hps">is</span> <span class="hps">they can</span> change there posted text<span class="hps"></span><span>.</span> <span class="hps"><br> Now the</span> <span class="hps">problem is, if</span> <span class="hps">the</span> <span class="hps">user </span><span class="hps">clicks the</span> <span class="hps"> update</span> <span class="hps">button my script tells me the textbox is empty but</span><span class="hps"> there</span>'s <span class="hps">actually</span> <span class="hps">something</span> <span class="hps"> in it.</span> <span class="hps">Can anyone tell me</span> <span class="hps">why</span> <span class="hps">I&nbsp;</span><span class="hps">see</span> <span class="hps">text</span> <span class="hps">in the text</span> <span class="hps">box</span> <span class="hps"> but my</span> <span class="hps">script says</span> <span class="hps">it is empty</span><span>.</span></span></p> <p><span lang="en"><span>Here is my edit/update script and mine aspx page</span></span></p> <pre class="prettyprint">protected void foradatalist_ItemCommand(object source, DataListCommandEventArgs e) { TextBox tbU = (TextBox)foradatalist.Items[e.Item.ItemIndex].FindControl(&quot;tbUpdate&quot;); Label lblUser = (Label)foradatalist.Items[e.Item.ItemIndex].FindControl(&quot;lblUser&quot;); Label label1 = (Label)foradatalist.Items[e.Item.ItemIndex].FindControl(&quot;lblverhaal&quot;); LinkButton1.Visible = false; // If clicked edit button Transfer label text to tbU textbox witch is inside a datalist. if (e.CommandName == &quot;edit&quot;) { tbU.Visible = true; tbU.Text = label1.Text; // tbU.Text is filled } else { } // if clicked update button update database with the text from tbU Texbox witch is inside a datalist // but my script says tbU textbox is empty. if (e.CommandName == &quot;update&quot;) { if (tbU.Text != null) // script tells me tbU.Text is empty { } else { Label lblId = (Label)foradatalist.Items[e.Item.ItemIndex].FindControl(&quot;lblId&quot;); Label lblverhaal = (Label)foradatalist.Items[e.Item.ItemIndex].FindControl(&quot;lblverhaal&quot;); string MysqlStatement = string.Empty; connection.Open(); { MysqlStatement = &quot;UPDATE verhaal SET Text = @Text WHERE Id='&quot; &#43; lblId.Text &#43; &quot;'&quot;; } try { MySqlCommand cmd = new MySqlCommand(MysqlStatement, connection); cmd.Parameters.AddWithValue(&quot;@Text&quot;, tbU.Text); // tbU.Text is empty cmd.CommandType = CommandType.Text; cmd.ExecuteNonQuery(); } catch (System.Data.SqlClient.SqlException ex) { string msg = &quot;Insert/Update Error:&quot;; msg &#43;= ex.Message; throw new Exception(msg); } finally { connection.Close(); tbpost.Text = &quot;&quot;; forum(); LinkButton1.Visible = true; } } }</pre> <pre class="prettyprint">&lt;%@ Page Title="" Language="C#" MasterPageFile="~/BlackRiva.master" AutoEventWireup="true" CodeFile="BabbelBox.aspx.cs" Inherits="BabbelBox" %&gt; &lt;asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server"&gt; &lt;style type="text/css"&gt; .style6 { width: 125px; height: 75px; } &lt;/style&gt; &lt;/asp:Content&gt; &lt;asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server"&gt; &lt;asp:Label ID="lblUser" runat="server" Text=""&gt;&lt;/asp:Label&gt; &lt;div align="center"&gt; &lt;br /&gt; &lt;br /&gt; &lt;asp:TextBox ID="tbpost" runat="server" Height="38px" TextMode="MultiLine" Width="391px"&gt;&lt;/asp:TextBox&gt; &lt;br /&gt; &lt;br /&gt; &lt;br /&gt; &lt;asp:LinkButton ID="LinkButton1" runat="server" Font-Names="verdana" ForeColor="White" onclick="LinkButton1_Click"&gt;Post&lt;/asp:LinkButton&gt; &lt;/div&gt; &lt;br /&gt; &lt;asp:Label ID="lblerror" runat="server" Visible="false" style="color: #FF0000; font-family: Verdana; font-size: medium;" Text="u heeft geen tekst geschreven"&gt;&lt;/asp:Label&gt; &lt;br /&gt; &lt;br /&gt; &lt;table&gt; &lt;tr style="height: 150px"&gt; &lt;td &gt; &lt;asp:DataList ID="foradatalist" runat="server" Height="313px" RepeatColumns="1" RepeatDirection="Horizontal" Width="980px" CellPadding="3" style="color: #CCCCCC" BackColor="White" BorderColor="#E7E7FF" BorderStyle="None" BorderWidth="1px" GridLines="Horizontal" onitemcommand="foradatalist_ItemCommand" onitemdatabound="foradatalist_ItemDataBound" &gt; &lt;AlternatingItemStyle BackColor="#F7F7F7" Font-Names="verdana" ForeColor="Black" /&gt; &lt;FooterStyle BackColor="#B5C7DE" Font-Names="verdana" ForeColor="Black" /&gt; &lt;HeaderStyle BackColor="#4A3C8C" Font-Bold="True" Font-Names="verdana" ForeColor="Black" /&gt; &lt;ItemStyle BackColor="#E7E7FF" Font-Names="verdana" ForeColor="Black" /&gt; &lt;ItemTemplate&gt; &lt;table cellpadding="4"&gt; &lt;tr style="height: 200px"&gt; &lt;td class="style6" valign="middle" align="left" style="border-top-style: solid; border-left-style: solid; border-top-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-color: #FFFFFF; border-bottom-color: #FFFFFF; border-left-color: #FFFFFF;"&gt; &lt;asp:Label ID="lblUser" runat="server" Text='&lt;%# Eval("Name")%&gt;' ForeColor="black" Font-Names="Verdana" Font-Size="Small" EnableTheming="False"&gt;&lt;/asp:Label&gt; &lt;br /&gt; &lt;asp:Label ID="lblId" runat="server" Text= '&lt;%# Eval("Id") %&gt;' Visible="true" /&gt; &lt;br /&gt; &lt;asp:Image ID="Iavatar" runat="server" ImageUrl= '&lt;%# Eval("Avatar") %&gt;' ImageAlign="AbsMiddle" /&gt; &lt;br /&gt; &lt;asp:Label ID="lblDate" runat="server" Text='&lt;%#Eval("Date")%&gt;' ForeColor="black" Font-Names="Verdana" Font-Size="XX-Small" Font-Underline="True"&gt;&lt;/asp:Label&gt; &lt;/td&gt; &lt;td valign="middle" width="900px" align="center" style="border-top-style: solid; border-right-style: solid; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-top-color: #FFFFFF; border-right-color: #FFFFFF; border-bottom-color: #FFFFFF;"&gt; &lt;asp:Label ID="lblverhaal" runat="server" Text='&lt;%# Eval("Text")%&gt;' ForeColor="black" Font-Names="Verdana" Font-Size="Small" EnableTheming="False"&gt;&lt;/asp:Label&gt; &lt;br /&gt; &lt;br /&gt; &lt;br /&gt; &lt;/tr&gt; &lt;/table&gt; &lt;div align="center" style="border-top: 1px solid #FFFFFF; height: 59px; margin-top: 2px;"&gt; &lt;asp:TextBox ID="TbUpdate" runat="server" Visible="false" TextMode="MultiLine"&gt;&lt;/asp:TextBox&gt; &lt;br /&gt; &lt;br /&gt; &lt;asp:LinkButton ID="LinkButton2" runat="server" ForeColor="Gray" CommandName="edit" Font-Size="XX-Small" &gt;edit&lt;/asp:LinkButton&gt; &amp;nbsp;&amp;nbsp; &lt;asp:LinkButton ID="LinkButton3" runat="server" Font-Size="XX-Small" Font-Names="Verdana" ForeColor="Gray" CommandName="update"&gt;update&lt;/asp:LinkButton&gt; &amp;nbsp; &lt;asp:LinkButton ID="LinkButton4" runat="server" ForeColor="Gray" CommandName="delete" Font-Size="XX-Small"&gt;Delete&lt;/asp:LinkButton&gt; &lt;/div&gt; &lt;separatortemplate&gt; &lt;hr /&gt; &lt;/separatortemplate&gt; &lt;/ItemTemplate&gt; &lt;SelectedItemStyle BackColor="#738A9C" Font-Bold="True" Font-Names="verdana" ForeColor="Black" /&gt; &lt;/asp:DataList&gt; &lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; &lt;br /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/asp:Content&gt;</pre> <p><span lang="en"><span><br> <br> <br> </span></span></p> 2013-05-24T17:37:11-04:002013-05-24T17:37:11.4-04:00urn:uuid:00000000-0000-0000-0000-000005132049http://forums.asp.net/p/1840034/5132049.aspx/1?ASP+NET+Universal+Providers+Roleprovider+does+not+cache+roles+in+cookieASP.NET Universal Providers - Roleprovider does not cache roles in cookie <p>Hello,</p> <p>ironically my role provider does not cache the roles in a cookie anymore. That was working earlier. Unfortunately i have noticed that only now, so i cannot say what causes the problem. But i think it has to do with the update to the new version 1.2 of the universal providers (released on 16th august).</p> <p>My config for the roleprovider looks like:</p> <p>&lt;roleManager enabled=&quot;true&quot; cacheRolesInCookie=&quot;true&quot; cookieName=&quot;X_Roles&quot; <br> cookiePath=&quot;/&quot; cookieProtection=&quot;All&quot; cookieRequireSSL=&quot;true&quot; cookieSlidingExpiration=&quot;true&quot; cookieTimeout=&quot;1440&quot; <br> createPersistentCookie=&quot;false&quot; domain=&quot;&quot; maxCachedResults=&quot;25&quot; defaultProvider=&quot;XManager_RoleProvider&quot;&gt;<br> &lt;providers&gt;<br> &lt;clear/&gt;<br> &lt;add name=&quot;XManager_RoleProvider&quot; type=&quot;ManagersX.XManager_RoleProvider, AssemblyX&quot; <br> connectionStringName=&quot;XEntities&quot; applicationName=&quot;/&quot; rolesTableName=&quot;Roles&quot; roleMembershipsTableName=&quot;Users_Roles&quot;/&gt;<br> &lt;/providers&gt;<br> &lt;/roleManager&gt;</p> <p>Everything is working fine with the rolemanager (loginviews, menu with sitemaptrimming etc.), but it is only not caching the roles anymore. The membership provider, sessionstate etc. are also working fine and the cookies of them are set correctly.</p> <p>All properties of the static Roles-class are correctly set and everything in Httpcontext (IsSecureConnection etc.) is also correct.</p> <p>The roles cookie was set earlier, but not anymore. I hope anybody can help me with my problem.</p> <p>Thanks in advance.</p> <p>Best Regards,</p> <p>HeManNew</p> 2012-09-03T19:44:31-04:002012-09-03T19:44:31.527-04:00urn:uuid:00000000-0000-0000-0000-000005404795http://forums.asp.net/p/1909438/5404795.aspx/1?Server+Error+in+ApplicationServer Error in '/' Application <p>Hi - on my first asp.net 4.5&nbsp;web site</p> <p>I have a conventional html web site hosted by Fasthosts recently updated to&nbsp;Windows Server 2008 with asp.net 4.5.&nbsp; Within the folder system I have created an asp.net&nbsp; web site, which I have published using ftp within&nbsp;VS2012.&nbsp; default.aspc is a straight forward page to determine if the browser language is English or German and redirect the user to ewelcome.aspx of dwelcome.aspx - both of these use a specific master page.&nbsp; The default page works fine but when I try to move to the ewelcome.aspx page (or any other page by name) I get the error:</p> <p>Server Error in '/' Application&nbsp; <i>The resource cannot be found.</i>&nbsp;<span face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif " style="font-family:Arial,Helvetica,Geneva,SunSans-Regular,sans-serif"><b>Description: </b>HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. &nbsp;Please review the following URL and make sure that it is spelled correctly.&nbsp; <b>Requested URL: </b>/ewelcome.aspx</span></p> <p><span face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif " style="font-family:Arial,Helvetica,Geneva,SunSans-Regular,sans-serif">I have not touched the web.config file:</span></p> <p align="left">&lt;?xml version=&quot;1.0&quot;?&gt;<br> &lt;configuration&gt;<br> &nbsp;&nbsp;&nbsp; &lt;system.web&gt;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;compilation debug=&quot;true&quot; strict=&quot;false&quot; explicit=&quot;true&quot; targetFramework=&quot;4.5&quot; /&gt;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;httpRuntime targetFramework=&quot;4.5&quot; /&gt;<br> &nbsp;&nbsp;&nbsp; &lt;/system.web&gt;<br> &lt;/configuration&gt;</p> <p><span face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif " style="font-family:Arial,Helvetica,Geneva,SunSans-Regular,sans-serif">I am publishing to the HTDOCS folder</span></p> <p><span face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif " style="font-family:Arial,Helvetica,Geneva,SunSans-Regular,sans-serif">Any help / advice appreciated</span></p> <p><span face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif " style="font-family:Arial,Helvetica,Geneva,SunSans-Regular,sans-serif"></span></p> 2013-05-24T22:50:19-04:002013-05-24T22:50:19.147-04:00urn:uuid:00000000-0000-0000-0000-000005404693http://forums.asp.net/p/1909414/5404693.aspx/1?Active+Directory+groupsActive Directory groups <p>I am trying to get a list of security groups in AD but I am not having much luck. When I check Active Directory Users and Computers MMC, I see:</p> <p>blah.blah.com (top)</p> <p>Group1</p> <p>&nbsp;&nbsp;&nbsp; Group1_1</p> <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Group1_1_1</p> <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Group1_1_2</p> <p>&nbsp;&nbsp;&nbsp; Group1_2</p> <p>Group2</p> <p>and so on. What I need is all security groups in Group1_1_2. I tried using DirectoryEntry and DirectorySearcher using &quot;(&amp;(objectClass=group))&quot; as search filter but I get things I can't even find in Active Directory Users and Computers MMC.</p> <p>Thanks.</p> 2013-05-24T17:53:01-04:002013-05-24T17:53:01.913-04:00urn:uuid:00000000-0000-0000-0000-000005404727http://forums.asp.net/p/1909420/5404727.aspx/1?Dynamically+Add+Textbox+Controls+VS+2010Dynamically Add Textbox Controls - VS 2010 <p>I have a TextBox control and a button right next to it.&nbsp; I want to be able to add a new TextBox each time this button is clicked and be able to save data in the database.&nbsp; How do I accomplish this task?</p> <p>These two controls are in a TabContainer.</p> 2013-05-24T19:01:16-04:002013-05-24T19:01:16.2-04:00urn:uuid:00000000-0000-0000-0000-000005404680http://forums.asp.net/p/1909407/5404680.aspx/1?How+to+properly+setup+2+secure+folders+within+my+web+application+How to properly setup 2 secure folders within my web application? <p>I have a web application which needs to have 2 secure folders, one is for the site admin to manage a few items within the site.</p> <p>The other folder is for clients to access their information.</p> <p>Based on the web.config settings, if i try to access the admin folder, im directed to the client login page, then login and have to manually go back to admin section and know the link to get to it.</p> <p>Is there no way to set up 2 folders on the site to be independant of each other when it comes to the login process?</p> <p>I mean if i go to the admin folder, im presented with the admin login page?<br> And if i go to the client folder, im presented with the client login page?</p> <p>Here is the web config setttings:</p> <pre class="prettyprint">&lt;authentication mode=&quot;Forms&quot;&gt; &lt;forms loginUrl=&quot;/client/Default.aspx&quot;&gt; &lt;/forms&gt; &lt;/authentication&gt; &lt;authorization&gt; &lt;allow users=&quot;*&quot;/&gt; &lt;/authorization&gt;</pre> <p>Can you have more than 1 &lt;forms /&gt; tag in the authentication section?</p> <p>I then have individual web.config in the two folders</p> <p>This is the client web.config</p> <pre class="prettyprint">&lt;configuration&gt; &lt;system.web&gt; &lt;authorization&gt; &lt;deny users="?" /&gt; &lt;/authorization&gt; &lt;/system.web&gt; &lt;/configuration&gt;</pre> <p>And this is the admin web.config</p> <pre class="prettyprint">&lt;?xml version="1.0"?&gt; &lt;configuration&gt; &lt;system.web&gt; &lt;authorization&gt; &lt;allow roles="Admin"/&gt; &lt;deny users="*"/&gt; &lt;/authorization&gt; &lt;/system.web&gt; &lt;/configuration&gt;</pre> <p>Can it be done and how? If you can provide links or sample code i can review to get this setup properly.</p> <p>thanks you<br> <br> <br> </p> 2013-05-24T17:43:19-04:002013-05-24T17:43:19.843-04:00urn:uuid:00000000-0000-0000-0000-000005404724http://forums.asp.net/p/1909418/5404724.aspx/1?Form+field+for+datetime+input+throws+null+exceptionForm field for datetime input throws null exception <p>Using MVC4.</p> <p>Building an app with a couple simple forms, each form has a datetime field for the date of birth. &nbsp;The first one I entered it like:</p> <pre class="prettyprint">@Html.TextBoxFor(m =&gt; m.DOB, new { @class=&quot;dp&quot; })</pre> <p>This worked fine. &nbsp;I realized I was going to have 4 date fields on different pages so i built a datetime editor template so I can add the datepicker to each in one shot, and I changed the Html.TextBoxFor to EditorFor. &nbsp;Here is the template:</p> <pre class="prettyprint">@model DateTime @Html.TextBox("",null, new { @class="dp"}) &lt;script type="text/javascript"&gt; &#36;(document).ready(function () { &#36;('.dp').datepicker( { changeMonth: true, changeYear: true, showButtonPanel: true, yearRange: "-100:+0" }); }); &lt;/script&gt;</pre> <p>Now all the date fields get an error,&nbsp;</p> <h2><i>The model item passed into the dictionary is null, but this dictionary requires a non-null model item of type 'System.DateTime'.</i></h2> <p>I dont understand why an editor field would care if it was null or not, the whole point of an editor field is to accept a value. &nbsp;The only other thing I can think of its I also have a DateTime display template.</p> <p><br> <br> </p> <p></p> 2013-05-24T18:53:39-04:002013-05-24T18:53:39.84-04:00urn:uuid:00000000-0000-0000-0000-000005404660http://forums.asp.net/p/1909403/5404660.aspx/1?Problem+passing+CheckBoxFor+name+back+to+ControllerProblem passing CheckBoxFor name back to Controller <p>Hi</p> <p>I am running a Linq query in my controller and then pass the query result to my view.<br> On the View I am binding checkboxes against the query.</p> <p>On Submit, I have to pass Checked true &amp; false values back to the controller....so I have to use &nbsp;&quot;CheckBoxFor&quot; and cant use plain HTML</p> <p>My problem is, the &quot;CheckBoxFor&quot; automatically assigns a name to the checkbox....in this case &quot; i.IsSelected &quot;<br> But passing &quot; i.IsSelected&quot; back to the controller is a problem due to the &quot; i. &quot;<br> I have to point to &quot;i.IsSelected&quot; in the CheckBoxFor .... so how do I get the values back to the Controller?</p> <pre class="prettyprint">@model IEnumerable&lt;myMVC.ViewModels.Selection&gt; @{ ViewBag.Title = &quot;CatSelect&quot;; Layout = &quot;~/Views/Shared/_Layout.cshtml&quot;; } &lt;h2&gt;Select your preference&lt;/h2&gt; @using (Html.BeginForm()) { foreach (var i in Model ) { @Html.CheckBoxFor(m =&gt; i.IsSelected, new { id = i.CategoryID }) @i.CategoryName &lt;br /&gt; } &lt;input type=&quot;submit&quot; value=&quot;Submit&quot; /&gt; }</pre> <pre class="prettyprint"> [HttpPost] public ActionResult Select(Int32[] i.IsSelected) { if (i.IsSelected != null) { foreach (var id in i.IsSelected) { var catSelect = new CategorySelection(); catSelect.UserID = WebSecurity.CurrentUserId; catSelect.CategoryID = id; catSelect.IsSelected = true; db.CategorySelection.Add(catSelect); } } db.SaveChanges(); return RedirectToAction("Index"); }</pre> <p><br> <br> </p> <p>&nbsp;</p> 2013-05-24T17:13:12-04:002013-05-24T17:13:12.74-04:00urn:uuid:00000000-0000-0000-0000-000005404766http://forums.asp.net/p/1909429/5404766.aspx/1?+user+mapped+section+open+error+on+file+upload user-mapped section open error on file upload <p>I am getting an **The requested operation cannot be performed on a file with a user-mapped section open** error issue when uploading a file been stumped on this for a few days and have isolated the issue.. this code doesn't work</p> <pre class="prettyprint">var fileName = Path.GetExtension(file.FileName); var changename = profile.registrationID&#43; fileName; var mytrail = Path.Combine(Server.MapPath(&quot;~/uploads/profilepic&quot;), changename); file.SaveAs(mytrail); ImageBuilder.Current.Build(mytrail, mytrail, new ResizeSettings(&quot;width=100&amp;height=130&amp;mode=stretch&quot;)); ModelState.Clear(); db.Entry(profile).State = EntityState.Modified; db.SaveChanges(); return View(profile);</pre> <p>when i tried to upload a picture i get the **user-mapped section open error** and the **ImageBuilder.Current.Build(mytrail, mytrail, new ResizeSettings("width=100&amp;height=130&amp;mode=stretch"));** is highlighted . The thing is that in the above code if I change fileName to</p> <pre class="prettyprint"> var fileName = "abc"; </pre> <p>the whole code works picture gets uploaded with no error only thing is that the picture gets saved as a File instead of a .jpg or .gif. What about these 2 lines can possibly be causing the error...</p> <pre class="prettyprint"> var fileName = Path.GetExtension(file.FileName); ImageBuilder.Current.Build(mytrail, mytrail, new ResizeSettings("width=100&amp;height=130&amp;mode=stretch")); </pre> <p>This is the imageResizer from <a href="http://imageresizing.net/docs/managed">http://imageresizing.net/docs/managed</a></p> <p></p> <p>from what i have read the error is because something hasn't been close in this case, how can you close the stream</p> <pre class="prettyprint">var fileName = Path.GetExtension(file.FileName)</pre> <p><br> <br> </p> 2013-05-24T20:44:15-04:002013-05-24T20:44:15.293-04:00urn:uuid:00000000-0000-0000-0000-000005395047http://forums.asp.net/p/1906292/5395047.aspx/1?How+to+troubleshoot+Web+Forms+Performance+on+Internal+NetworkHow to troubleshoot Web Forms Performance on Internal Network <p>I have an ASP.net Web Forms website on our IIS 6 server using .net 4 framework and accessing data from SQL Server 2005. &nbsp;The web server is outside our firewall, and performance when accessing the site from outside is very quick. &nbsp;However when we access the site when logged on to our internal network, using the full URL, the performance is brutally slow. &nbsp;Sometimes up to 20 seconds to load the page.</p> <p>I have tried putting a one page website that simply populates a grid from SQL Server on our internal IIS 7 and and the speed is equally dismal.</p> <p>I cant see it being anything particular in my code, as when I test it from Visual Studio it's quick. If I put it on our Web Server it is quick when accessed from outside. But anything from 'inside' our network is terribly slow. Yet our other applications (not asp.net) seem fine.</p> <p>Does anyone have any ideas as to how to troubleshoot where the problem might lie? &nbsp;I might try to see what happens if I use .net 3.5 a little later today and see if thats the issue. &nbsp;But other than that I have no idea how to troubleshoot this bottleneck. &nbsp;Is it something on our network? Our DNS? Please help.</p> 2013-05-15T16:29:11-04:002013-05-15T16:29:11.45-04:00urn:uuid:00000000-0000-0000-0000-000005404744http://forums.asp.net/p/1909423/5404744.aspx/1?start+exe+file+in+interactive+mode+located+on+client+s+pcstart .exe file in interactive mode located on client's pc <p>Respected community members,</p> <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; I have a requirement to run the .exe program on client's pc in intractive mode from asp.net page?? Also what security it need??</p> <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; I am runnign below code..but it stuck at last step....Do i need to pass client credential? how??</p> <pre class="prettyprint">Dim process As System.Diagnostics.Process = Nothing Dim processStartInfo As System.Diagnostics.ProcessStartInfo processStartInfo = New System.Diagnostics.ProcessStartInfo() processStartInfo.FileName = &quot;C:\test\client.exe&quot; Dim strArgument As String = &quot;&quot; strArgument = &quot; X y Z&quot; processStartInfo.Verb = &quot;runas&quot; processStartInfo.Arguments = strArgument processStartInfo.WindowStyle = System.Diagnostics.ProcessWindowStyle.Normal processStartInfo.UseShellExecute = True process = System.Diagnostics.Process.Start(processStartInfo)</pre> <p></p> <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;can any one assist doing this??&nbsp; I have came across certain articles that says windows doesn't allow intractive mode runnig.</p> <p>Thanks,</p> <p>Nick</p> 2013-05-24T19:41:36-04:002013-05-24T19:41:36.273-04:00urn:uuid:00000000-0000-0000-0000-000005404784http://forums.asp.net/p/1909435/5404784.aspx/1?VS2010+getting+default+web+page+in+visual+BasicVS2010 getting default web page in visual Basic <p>I have&nbsp;&nbsp; <a href="http://www.mydomain.com/default.aspx">www.mydomain.com/mydefault.aspx</a></p> <p>That's OK.</p> <p>If I put <a href="http://www.mydomain.com,">www.mydomain.com,</a> I get another page which is located</p> <p>in&nbsp; Views/Home/Index.aspx&nbsp; ( This was a page I did earlier and I cannot get rid of it which I was trying to use</p> <p>a LOGIN.)&nbsp;&nbsp; I no longer need the LOGIN.</p> <p><strong>Question</strong>&nbsp;&nbsp; How can I get&nbsp;&nbsp;&nbsp; <a href="http://www.mydomain.com/default.aspx"> www.mydomain.com/mydefault.aspx</a> and <a href="http://www.mydomain.com">www.mydomain.com</a>&nbsp; to show the</p> <p>same web page? (ie my visual studio 2010 mydefault.aspx)</p> <p>I tried setting &quot;mydefault.aspx&quot; on the server, but that did not work.</p> <p>TIA</p> <p>shall42</p> <p></p> <p></p> 2013-05-24T21:32:36-04:002013-05-24T21:32:36.94-04:00urn:uuid:00000000-0000-0000-0000-000005404763http://forums.asp.net/p/1909428/5404763.aspx/1?Tabs+controls+are+not+displayed+correctlyTabs controls are not displayed correctly <p>I have copied the following sample code from <a href="http://ajayagrahari.blogspot.com/2013/01/ajax-tabcontainer-examplesample-in.html"> http://ajayagrahari.blogspot.com/2013/01/ajax-tabcontainer-examplesample-in.html</a></p> <p>but it does not display tabs as it shows in the sample output on this site.&nbsp; What am I doing wrong?</p> <pre class="prettyprint">&lt;%@ Page Title=&quot;&quot; Language=&quot;C#&quot; MasterPageFile=&quot;~/Site.Master&quot; AutoEventWireup=&quot;true&quot; CodeBehind=&quot;WebForm1.aspx.cs&quot; Inherits=&quot;MyWebSite.WebForm1&quot; %&gt; &lt;%@ Register Assembly=&quot;AjaxControlToolkit&quot; Namespace=&quot;AjaxControlToolkit&quot; TagPrefix=&quot;ajaxToolkit&quot; %&gt; &lt;%@ Register Namespace=&quot;AjaxControlToolkit&quot; Assembly=&quot;AjaxControlToolkit&quot; tagPrefix=&quot;ajax&quot; %&gt; &lt;asp:Content ID=&quot;Content1&quot; ContentPlaceHolderID=&quot;HeadContent&quot; runat=&quot;server&quot;&gt; &lt;script type=&quot;text/javascript&quot; src=&quot;http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js&quot;&gt;&lt;/script&gt; &lt;script type=&quot;text/javascript&quot;&gt; &lt;/script&gt; &lt;/asp:Content&gt; &lt;asp:Content ID=&quot;Content2&quot; ContentPlaceHolderID=&quot;MainContent&quot; runat=&quot;server&quot;&gt; &lt;ajax:ToolkitScriptManager ID=&quot;scriptmanager1&quot; runat=&quot;server&quot;&gt;&lt;/ajax:ToolkitScriptManager&gt; &lt;style type=&quot;text/css&quot;&gt; .fancy-green .ajax__tab_header { background: url(green_bg_Tab.gif) repeat-x; cursor:pointer; } .fancy-green .ajax__tab_hover .ajax__tab_outer, .fancy-green .ajax__tab_active .ajax__tab_outer { background: url(green_left_Tab.gif) no-repeat left top; } .fancy-green .ajax__tab_hover .ajax__tab_inner, .fancy-green .ajax__tab_active .ajax__tab_inner { background: url(green_right_Tab.gif) no-repeat right top; } .fancy .ajax__tab_header { font-size: 13px; font-weight: bold; color: #000; font-family: sans-serif; } .fancy .ajax__tab_active .ajax__tab_outer, .fancy .ajax__tab_header .ajax__tab_outer, .fancy .ajax__tab_hover.ajax__tab_outer { height: 46px; } .fancy .ajax__tab_active .ajax__tab_inner, .fancy .ajax__tab_header .ajax__tab_inner, .fancy .ajax__tab_hover .ajax__tab_inner { height: 46px; margin-left: 16px; /* offset the width of the left image */ } .fancy .ajax__tab_active .ajax__tab_tab, .fancy .ajax__tab_hover .ajax__tab_tab, .fancy .ajax__tab_header .ajax__tab_tab { margin: 16px 16px 0px 0px; } .fancy .ajax__tab_hover .ajax__tab_tab, .fancy .ajax__tab_active .ajax__tab_tab { color: #fff; } .fancy .ajax__tab_body { font-family: Arial; font-size: 10pt; border-top: 0; border:1px solid #999999; padding: 8px; background-color: #ffffff; } &lt;/style&gt; &lt;div style=&quot; width:40%&quot;&gt; &lt;ajax:tabcontainer ID=&quot;TabContainer1&quot; runat=&quot;server&quot; CssClass=&quot;fancy fancy-green&quot;&gt; &lt;ajax:TabPanel ID=&quot;tbpnluser&quot; runat=&quot;server&quot; &gt; &lt;HeaderTemplate&gt; New User &lt;/HeaderTemplate&gt; &lt;ContentTemplate&gt; &lt;asp:Panel ID=&quot;UserReg&quot; runat=&quot;server&quot;&gt; &lt;table align=&quot;center&quot;&gt; &lt;tr&gt; &lt;td&gt;&lt;/td&gt; &lt;td align=&quot;right&quot; &gt; &lt;/td&gt; &lt;td align=&quot;center&quot;&gt; &lt;b&gt;Registration Form&lt;/b&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;&lt;/td&gt; &lt;td align=&quot;right&quot; &gt; UserName: &lt;/td&gt; &lt;td&gt; &lt;asp:TextBox ID=&quot;txtuser&quot; runat=&quot;server&quot;&gt;&lt;/asp:TextBox&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;&lt;/td&gt; &lt;td align=&quot;right&quot; &gt; Password: &lt;/td&gt; &lt;td&gt; &lt;asp:TextBox ID=&quot;txtpwd&quot; runat=&quot;server&quot; TextMode=&quot;Password&quot;&gt;&lt;/asp:TextBox&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;&lt;/td&gt; &lt;td align=&quot;right&quot;&gt; FirstName: &lt;/td&gt; &lt;td&gt; &lt;asp:TextBox ID=&quot;txtfname&quot; runat=&quot;server&quot;&gt;&lt;/asp:TextBox&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;&lt;/td&gt; &lt;td align=&quot;right&quot;&gt; LastName: &lt;/td&gt; &lt;td&gt; &lt;asp:TextBox ID=&quot;txtlname&quot; runat=&quot;server&quot;&gt;&lt;/asp:TextBox&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;&lt;/td&gt; &lt;td align=&quot;right&quot;&gt; Email: &lt;/td&gt; &lt;td&gt; &lt;asp:TextBox ID=&quot;txtEmail&quot; runat=&quot;server&quot;&gt;&lt;/asp:TextBox&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;&lt;/td&gt; &lt;td align=&quot;right&quot; &gt; Phone No: &lt;/td&gt; &lt;td&gt; &lt;asp:TextBox ID=&quot;txtphone&quot; runat=&quot;server&quot;&gt;&lt;/asp:TextBox&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;&lt;/td&gt; &lt;td align=&quot;right&quot; &gt; Location: &lt;/td&gt; &lt;td align=&quot;left&quot;&gt; &lt;asp:TextBox ID=&quot;txtlocation&quot; runat=&quot;server&quot;&gt;&lt;/asp:TextBox&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;&lt;/td&gt; &lt;td&gt;&lt;/td&gt; &lt;td align=&quot;left&quot; &gt;&lt;asp:Button ID=&quot;btnsubmit&quot; runat=&quot;server&quot; Text=&quot;Save&quot;/&gt; &lt;input type=&quot;reset&quot; value=&quot;Reset&quot; /&gt; &lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; &lt;/asp:Panel&gt; &lt;/ContentTemplate&gt; &lt;/ajax:TabPanel&gt; &lt;ajax:TabPanel ID=&quot;tbpnlusrdetails&quot; runat=&quot;server&quot; &gt; &lt;HeaderTemplate&gt; User Details &lt;/HeaderTemplate&gt; &lt;ContentTemplate&gt; &lt;asp:Panel ID=&quot;Panel1&quot; runat=&quot;server&quot;&gt; &lt;table align=&quot;center&quot;&gt; &lt;tr&gt; &lt;td align=&quot;right&quot; colspan=&quot;2&quot; &gt; &lt;/td&gt; &lt;td&gt; &lt;b&gt;User Details&lt;/b&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td align=&quot;right&quot; colspan=&quot;2&quot;&gt; UserName: &lt;/td&gt; &lt;td&gt; &lt;b&gt;Suresh Dasari&lt;/b&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td align=&quot;right&quot; colspan=&quot;2&quot;&gt; FirstName: &lt;/td&gt; &lt;td&gt; &lt;b&gt;Suresh&lt;/b&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td align=&quot;right&quot; colspan=&quot;2&quot;&gt; LastName: &lt;/td&gt; &lt;td&gt; &lt;b&gt;Dasari&lt;/b&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td align=&quot;right&quot; colspan=&quot;2&quot;&gt; Email: &lt;/td&gt; &lt;td&gt; &lt;b&gt;sureshbabudasari@gmail.com&lt;/b&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td align=&quot;right&quot; colspan=&quot;2&quot; &gt; Phone No: &lt;/td&gt; &lt;td&gt; &lt;b&gt;1234567890&lt;/b&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td align=&quot;right&quot; colspan=&quot;2&quot; &gt; Location: &lt;/td&gt; &lt;td align=&quot;left&quot;&gt; &lt;b&gt;Hyderabad&lt;/b&gt; &lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; &lt;/asp:Panel&gt; &lt;/ContentTemplate&gt; &lt;/ajax:TabPanel&gt; &lt;ajax:TabPanel ID=&quot;tbpnljobdetails&quot; runat=&quot;server&quot; &gt; &lt;HeaderTemplate&gt; Job Details &lt;/HeaderTemplate&gt; &lt;ContentTemplate&gt; &lt;asp:Panel ID=&quot;Panel2&quot; runat=&quot;server&quot;&gt; &lt;table align=&quot;center&quot;&gt; &lt;tr&gt; &lt;td&gt;&lt;/td&gt; &lt;td align=&quot;right&quot; &gt; &lt;/td&gt; &lt;td&gt; &lt;b&gt;Job Details&lt;/b&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;&lt;/td&gt; &lt;td align=&quot;right&quot;&gt; Job Type: &lt;/td&gt; &lt;td&gt; &lt;b&gt;Software&lt;/b&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;&lt;/td&gt; &lt;td align=&quot;right&quot;&gt; Industry: &lt;/td&gt; &lt;td&gt; &lt;b&gt;IT&lt;/b&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;&lt;/td&gt; &lt;td align=&quot;right&quot;&gt; Designation: &lt;/td&gt; &lt;td&gt; &lt;b&gt;Software Engineer&lt;/b&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;&lt;/td&gt; &lt;td align=&quot;right&quot;&gt; Company: &lt;/td&gt; &lt;td&gt; &lt;b&gt;aspdotnet-suresh&lt;/b&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;&lt;/td&gt; &lt;td align=&quot;right&quot; &gt; Phone No: &lt;/td&gt; &lt;td&gt; &lt;b&gt;1234567890&lt;/b&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;&lt;/td&gt; &lt;td align=&quot;right&quot; &gt; Location: &lt;/td&gt; &lt;td align=&quot;left&quot;&gt; &lt;b&gt;Hyderabad&lt;/b&gt; &lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; &lt;/asp:Panel&gt; &lt;/ContentTemplate&gt; &lt;/ajax:TabPanel&gt; &lt;/ajax:tabcontainer&gt; &lt;/div&gt; &lt;/asp:Content&gt;</pre> <p></p> 2013-05-24T20:39:07-04:002013-05-24T20:39:07.667-04:00urn:uuid:00000000-0000-0000-0000-000005404629http://forums.asp.net/p/1909393/5404629.aspx/1?Website+layoutWebsite layout <p>Hi, I'm trying to do a site, and I'm wondering how could I do a basic layout with the background image covering all the screen and a little menu of &quot;height 30px&quot; at the bottom, I want to do it in all the screen but i would like to adapt to all resolutions without scroll bars, I don't know how to do it, and I want to minimize and have a good structure without the scrolls bars or the layout becoming tiny and plenty of white space... I don't know how to explain...<br> <br> &quot;Basically I want to do that... <br> <br> <a href="http://ancoreventos.com/#!/contactos/">http://ancoreventos.com/#!/contactos/<br> <br> </a>A panel in the center, a menu in the bottom, the background covering all the screen and minimize with no appareance problems<br> Thank you...&nbsp;<br> &nbsp;</p> 2013-05-24T16:19:03-04:002013-05-24T16:19:03.443-04:00urn:uuid:00000000-0000-0000-0000-000005404726http://forums.asp.net/p/1909419/5404726.aspx/1?Sys+WebForms+PageRequestManagerServerErrorException+Input+string+was+not+in+a+correct+format+Sys.WebForms.PageRequestManagerServerErrorException: Input string was not in a correct format. <p><span>Good Day&nbsp;</span><br> <br> <span>I am using&nbsp;Ajax-manager</span></p> <p>&nbsp;</p> <pre class="prettyprint">&lt;telerik:RadAjaxManager ID=&quot;RadAjaxManager1&quot; runat=&quot;server&quot;&gt; &lt;AjaxSettings&gt; &lt;telerik:AjaxSetting AjaxControlID=&quot;paymentTypeList&quot;&gt; &lt;UpdatedControls&gt; &lt;telerik:AjaxUpdatedControl ControlID=&quot;paymentTypeList&quot; &gt;&lt;/telerik:AjaxUpdatedControl&gt; &lt;telerik:AjaxUpdatedControl ControlID=&quot;tbxChargeAmount&quot; &gt;&lt;/telerik:AjaxUpdatedControl&gt; &lt;/UpdatedControls&gt; &lt;/telerik:AjaxSetting&gt;</pre> <p>&nbsp;</p> <p><br /><span>&nbsp;now this works on Chrome &nbsp;but not in IE, in IE 10 it gives me an error&nbsp;</span><br /><br /><span><span>&nbsp;</span></span></p> <p>&nbsp;</p> <pre class="prettyprint">SEC7115: :visited and :link styles can only differ by color. Some styles were not applied to :visited. Accounts.aspx SCRIPT5022: Sys.WebForms.PageRequestManagerServerErrorException: Input string was not in a correct format. Telerik.Web.UI.WebResource.axd, line 9 character 15475 SCRIPT5022: Sys.WebForms.PageRequestManagerServerErrorException: Input string was not in a correct format. Telerik.Web.UI.WebResource.axd, line 9 character 15475 SCRIPT5022: Sys.WebForms.PageRequestManagerServerErrorException: Input string was not in a correct format. Telerik.Web.UI.WebResource.axd, line 9 character 15475 more Info again Unhandled exception at line 2610, column 1 in http://localhost:58443/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ScriptManager1_TSM&amp;compress=1&amp;_TSM_CombinedScripts_=;;AjaxControlToolkit,+Version=4.1.50927.0,+Culture=neutral,+PublicKeyToken=28f01b0e84b6d53e:en-US:c95f669f-226b-4768-8ab5-43ac217de4dd:ea597d4b:b25378d2;Telerik.Web.UI,+Version=2012.2.607.40,+Culture=neutral,+PublicKeyToken=121fae78165ba3d4:en-US:08ccafd1-fc13-48c0-b85b-a439ce2f6884:16e4e7cd:86526ba7:874f8ea2:ed16cbdc:f7645509:24ee1bba:7165f74:58366029:1e771326:f9b9258;AjaxControlToolkit,+Version=4.1.50927.0,+Culture=neutral,+PublicKeyToken=28f01b0e84b6d53e:en-US:c95f669f-226b-4768-8ab5-43ac217de4dd:923aa3cc:853c2e0b:f9ae838a:782b16ab:d754780e:1e088fb:52c703eb:46f97eb1:50114f04:f48dface:28a7831e 0x800a138f - JavaScript runtime error: Unable to get property 'id' of undefined or null reference</pre> <p>&nbsp;</p> <p>I am using IE10&nbsp;</p> <p><span>&nbsp;Thanks&nbsp;<br> <br> </span>&nbsp;</p> 2013-05-24T19:00:32-04:002013-05-24T19:00:32.747-04:00urn:uuid:00000000-0000-0000-0000-000005404770http://forums.asp.net/p/1909431/5404770.aspx/1?menu+CSS+questionmenu CSS question <p>I've inherited a project with which I need some CSS help. As seen in the attached screenshot, two of the tabs have orange and purple text, each having the same color background with a lighter shade. I created a new tab (Event Planning) but can't figure out how to get the lighter shade on the tab itself. I'm sure it has to be a stylesheet function but I can't find it. I'm willing to go with a Microsoft .Net control if that's a better option. Thanks in advance for any assistance. Code follows.</p> <p><img src="http://i43.tinypic.com/igfce8.gif"></p> <pre class="prettyprint">&lt;ul class=&quot;mainTabs clearfix&quot;&gt; &lt;li runat=&quot;server&quot; id=&quot;uxSocialCalendarTab&quot; class=&quot;socialCalendar&quot;&gt;&lt;a href=&quot;&lt;%= ResolveUrl(&quot;~/members/social-calendar.aspx&quot;)%&gt;&quot;&gt; Social Calendar&lt;/a&gt;&lt;/li&gt; &lt;li runat=&quot;server&quot; id=&quot;uxPersonalCalendarTab&quot; class=&quot;personalCalendar&quot;&gt;&lt;a href=&quot;&lt;%= ResolveUrl(&quot;~/members/personal-calendar.aspx&quot;)%&gt;&quot;&gt; Personal Calendar&lt;/a&gt;&lt;/li&gt; &lt;li runat=&quot;server&quot; id=&quot;uxEventPlanningTab&quot; class=&quot;eventPlanning&quot;&gt;&lt;a href=&quot;&lt;%= ResolveUrl(&quot;~/members/all-events.aspx&quot;)%&gt;&quot;&gt; Event Planning&lt;/a&gt;&lt;/li&gt; &lt;li runat=&quot;server&quot; id=&quot;uxDashboardTab&quot; class=&quot;dashboard&quot;&gt;&lt;a href=&quot;&lt;%= ResolveUrl(&quot;~/members/dashboard.aspx&quot;)%&gt;&quot;&gt; Dashboard&lt;/a&gt;&lt;/li&gt; &lt;li runat=&quot;server&quot; id=&quot;uxAboutUsTab&quot; class=&quot;aboutUs&quot;&gt;&lt;a href=&quot;&lt;%= ResolveUrl(&quot;~/members/contact.aspx&quot;)%&gt;&quot;&gt; About Us&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt;</pre> <pre class="prettyprint">ul.mainTabs, ul.mainTabs li { margin: 0; padding: 0; list-style: none; } ul.mainTabs { clear: both; width: 960px; padding: 16px 0 0; } ul.mainTabs li { position: relative; float: left; width: 198px; height: 44px; margin-left: -8px; padding-top: 15px; text-align: center; background-image: url(../img/tabs.png); background-position: -983px 0; z-index: 2; } ul.mainTabs a { position: relative; display: inline-block; margin: 0 auto; padding: 3px 0 4px 27px; font-size: 15px; line-height: 1; font-weight: normal; text-decoration: none; text-shadow: 0 1px 1px #fff; } ul.mainTabs a:hover { text-decoration: underline; } ul.mainTabs a:after { content: ''; position: absolute; left: 0; top: 0; display: block; width: 22px; height: 21px; background-image: url(../img/tabs-icons.png); } ul.mainTabs .socialCalendar /*1st tab*/ { margin-left: 0; background-position: -495px 0; z-index: 5; } ul.mainTabs .socialCalendar a { color: orange; } ul.mainTabs .socialCalendar a:after { background-position: -22px 0; } ul.mainTabs .personalCalendar /*2nd tab*/ { background-position: -246px 0; z-index: 4; } ul.mainTabs .personalCalendar a { color: Green; } ul.mainTabs .eventPlanning /*3rd tab*/ { background-position: -245px 0; z-index: 3; } ul.mainTabs .eventPlanning a { color:Blue; } ul.mainTabs .eventPlanning a:after { background-position: -22px 0;} } ul.mainTabs .dashboard /*4th tab*/ { z-index: 2; } ul.mainTabs .dashboard a { padding-left: 0; } ul.mainTabs .dashboard a:after { background: none; } ul.mainTabs .aboutUs /*5th tab*/ { background-position: -737px 0; z-index: 1; } ul.mainTabs .aboutUs a { color: purple; } ul.mainTabs .aboutUs a:after { background-position: -44px 0; } ul.mainTabs .current { background-position: 0 0; z-index: 6; } ul.mainTabs .current a { font-weight: bold; } </pre> <p><br> <br> </p> 2013-05-24T21:10:30-04:002013-05-24T21:10:30.49-04:00urn:uuid:00000000-0000-0000-0000-000005404779http://forums.asp.net/p/1909434/5404779.aspx/1?checkbox+CheckedChanged+event+not+firing+once+when+last+check+box+uncheckedcheckbox CheckedChanged event not firing once when last check box unchecked <p>I have a Datalist&nbsp;with a nested gridview that has a placeholder. The place holder has either a checkbox or a checkboxlist. The checkboxlist&nbsp;selectedindexchange fires alway. but the checkbox event fires until the lost checkbox is unchecked. What could cause this event to stop firing, if the uncheck box is check the events work.</p> <pre>protected&nbsp;void&nbsp;chkBox_CheckedChanged(object&nbsp;sender,&nbsp;EventArgs&nbsp;e) &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;CheckBox&nbsp;x&nbsp;=&nbsp;(CheckBox)sender; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;string&nbsp;strPropertyID&nbsp;=&nbsp;&quot;&quot;; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;string&nbsp;strPropertyValueID&nbsp;=&nbsp;&quot;&quot;; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Boolean&nbsp;blnIsChecked; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;CheckBoxList&nbsp;cblPropertyValueSelected; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;arrPropertyValueID&nbsp;=&nbsp;new&nbsp;string[254]; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;arrPropertyID&nbsp;=&nbsp;new&nbsp;string[254]; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;int&nbsp;j&nbsp;=&nbsp;0; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;int&nbsp;k&nbsp;=&nbsp;0; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;foreach&nbsp;(DataListItem&nbsp;itm&nbsp;in&nbsp;dlPropertyCategoryInfo.Items) &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;GridView&nbsp;childgrid&nbsp;=&nbsp;(GridView)itm.FindControl(&quot;gvProductsPropertyValues&quot;); &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;foreach&nbsp;(GridViewRow&nbsp;row&nbsp;in&nbsp;childgrid.Rows) &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PlaceHolder&nbsp;pl&nbsp;=&nbsp;(PlaceHolder)row.FindControl(&quot;phProductValue&quot;); &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;string&nbsp;PropertyType&nbsp;=&nbsp;((Label)row.FindControl(&quot;lblTouchScreenPropertyType&quot;)).Text; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;string&nbsp;PropertyID&nbsp;=&nbsp;((Label)row.FindControl(&quot;lblTouchScreenPropertyID&quot;)).Text; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&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sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;strPropertyValueID&nbsp;=&nbsp;strPropertyValueID.Remove(strPropertyValueID.Length&nbsp;-&nbsp;1); &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;} &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Response.Redirect(&quot;Default.aspx?TouchScreenPropertIDList=&quot;&nbsp;&#43;&nbsp;strPropertyID&nbsp;&#43;&nbsp;&quot;&amp;TouchScreenPropertyValueList=&quot;&nbsp;&#43;&nbsp;strPropertyValueID); &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</pre> <p>The checkbox and checkboxlist are recreated after on postback</p> <pre>&nbsp;private&nbsp;void&nbsp;RepopulatePlaceHolder() &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Session[&quot;arrPropertyValueID&quot;]&nbsp;=&nbsp;null; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Session[&quot;arrPropertyID&quot;]&nbsp;=&nbsp;null; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Session.Clear(); &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;foreach&nbsp;(DataListItem&nbsp;itm&nbsp;in&nbsp;dlPropertyCategoryInfo.Items) &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;GridView&nbsp;childgrid&nbsp;=&nbsp;(GridView)itm.FindControl(&quot;gvProductsPropertyValues&quot;); &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;foreach&nbsp;(GridViewRow&nbsp;row&nbsp;in&nbsp;childgrid.Rows) &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PlaceHolder&nbsp;pl&nbsp;=&nbsp;(PlaceHolder)row.FindControl(&quot;phProductValue&quot;); &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;string&nbsp;PropertyType&nbsp;=&nbsp;((Label)row.FindControl(&quot;lblTouchScreenPropertyType&quot;)).Text; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;string&nbsp;PropertyID&nbsp;=&nbsp;((Label)row.FindControl(&quot;lblTouchScreen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nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;cbList.DataValueField&nbsp;=&nbsp;&quot;TouchScreenPropertyValueID&quot;; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;cbList.AppendDataBoundItems&nbsp;=&nbsp;true; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;cbList.AutoPostBack&nbsp;=&nbsp;true; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;cbList.SelectedIndexChanged&nbsp;&#43;=&nbsp;new&nbsp;EventHandler(cbList_SelectedIndexChanged); &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;cbList.DataSource&nbsp;=&nbsp;GetPropertyValues(PropertyID); &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb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