Use HttpUtility.HtmlEncode() or Server.HtmlCode to encode html on the server side
indianet
Posts
-
HTML TAGS -
ASP.NET and Excel -
ms sql 2005 connection string and db file uploadThe provider might not have a way or the time to import SQL Express database into SQL Server 2005 Database. The database created by the provider is usually blank and you are required to re-create all the necessary objects through the provided interface
-
How to GET GridView DataSource value?Storing multiple rows or even a single row with considerable no. of columns is going to create an impact on the page's performance.
-
Any negatives to generating ms excel report on the web? -
Session Retention using WebRequest + WebResponseYou must retrieve the CookieContainer of the first response (HttpWebRequest object) and retain the CookieContainer for the subsequent requests
-
How to display Hourglass b/w Postbackson the .aspx page. function unLoadPage() { document.body.style.cursor='wait'; } see if this is what you are looking for.
-
protected functionAddHandler chk.CheckedChanged, AddressOf OnChangeHandler public sub OnChangeHandler(object sender,EventArgs e) ... .. .. end sub
-
Runtime Scrollbar in Datagridenclose datagrid tags inside <div style=" OVERFLOW: auto; HEIGHT: 150px"> </div>
-
Active DirectoryPlease refer to System.DirectoryServices namespace
-
change the font of master page controlInside the content page Dim HyperLink1 as HyperLink HyperLink1=CType(Master.FindControl('HyperLink1'),HyperLink) HyperLink1 now contains the reference of HyperLink1 control placed in the master page Use Hyperlink1 to manipulate as you would do on a normal page.
-
opening command line from asp.net applicationProcess.Start("cmd.exe","path_to_batch_file")
-
using process call .vbs to copy file.....I would ensure the following calls create COM objects successfully. Set oFSO = CreateObject("Scripting.FileSystemObject") Set oNSO = CreateObject("wscript.Network") I will also check on \\web1\c$ \\web2\d$ access from the production server using the same security context that runs the .vbs script
-
Server Side LocalizationDim image1 As New ImageButton image1.ID = "btnNota0" Panel1.Controls.Add(m) AddHandler image1.Click, btnNote_Click
-
Invalid postback or callback argumentYou can disable post back event validation
-
Email ErrorTry Dim mailSettings As System.Net.Configuration.MailSettingsSectionGroup = ConfigurationManager.GetSectionGroup("system.net/mailSettings") and remove 32, and 35
-
Alter Tooltip property of TableRow in UserControlIf you have developed the user control then provide a public property to disable/enable tooltip by using a for each loop that loops through all tablerows and assigns a blank string If you didn't develop, see whether the table is exposed as a property and manipulate it using server side code
-
How can access SESSION variables from ASP.NET into Macromedia Flash 8.You cannot access Session variables directly, however you can make the session data available as GET / POST variables to your flash script.
-
definition of print() function in javscriptButton1.Attributes.Add("onclick", "javascript:window.print();") If this is what you are asking?
-
Best way to maintain web application state?For information that needs to tracked across multiple post backs a) Use View State - If the information is tied to a single page & If the information consists of fewer bytes b) Use Profile - If the information represents specific to the logged user on the whole rather than a page or group of page c) Use Session - Information that needs to be tracked for the user, that applies to your application on the whole again use session variables, again you may not want more than few 100 bytes of information as part of session d) Database - If you need to track information for ordering of records and if you have few thousands records always re-request it from the database instead of storing it in session variables e) Cache - If information is common across all connected users.