Posts

Showing posts from March, 2013

ASP.NET Website vs Web Application project

When you add a class file to the website project it will prompt you that it will place the file in App_code folder under root. Notice  In website project type namespace won't add to the class by default however you can define the namespaces explicitly where as in WebApp it creates the namespace for the class file when you added it to the project. WebApp project type is restricted to one language where as Website you can add different language files to the App_Code folder which compiles the files dynamically.   Referring a user control in WebApp is straight forward.You can define the properties and can be accessed in class files like any other objects where as in website it is not.   We can put multiple language files in the Website but those files needs to be in same folder. If you change the location of the file then you need to mention in the Web.Config file as follows.. <codeSubDirectories>  <add directoryName="Testfolder"/>  </codeSubDirecto

Bind visible value from database

Here lable visble value is binding from database. based upon  visible value am desabling  or enabling textbox here. <asp:Label ID="lblEmailNam e" runat="server" Width="180px" Text='<%# Bind("EmailTemp late_Name") %>' Visible='<%# Bind("EmailTemp late_IsDefault" ) %>' />   <asp:TextBox ID="txtEmailNam e" runat="server" Width="180px" Text='<%# Bind("EmailTemp late_Name") %>' Visible='<%#!(b ool)Eval("Email Template_IsDefa ult")%>'/>

Page refresh function in codebehind

Try this code.... Place this code on button click Page.Response.Redirect(Page.Request.Url.ToString(), true);

IE10 Attaching the Script debugger to process iexplore.exe failed

There is a simpler fix for the JavaScript debugging issue in IE10: Close IE In elevated cmd prompt run this command: regsvr32.exe "%ProgramFiles(x86)%\Common Files\Microsoft Shared\VS7Debug\msdbg2.dll" (or %ProgramFiles% on a 32-bit OS)