Problem:
Textbox control tries to auto complete entry.
A List of previously entered values are presented to the user to select.
How do you turn off this feature?
Solution:
<form method="post" autocomplete="off" >
</form>
that's all it takes.
one note. this disables auto complete for the entire form.
Showing posts with label Microsoft ASP.Net 2.0 C#. Show all posts
Showing posts with label Microsoft ASP.Net 2.0 C#. Show all posts
Thursday, July 26, 2007
Friday, December 8, 2006
C# Write content to web.config TRACE SECTION
//parameter for OpenWebConfiguration
//null == uses web.config at
// C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\CONFIG
Configuration root = WebConfigurationManager.OpenWebConfiguration("~/");
System.Web.Configuration.TraceSection traceSection =
(TraceSection)root.GetSection("system.web/trace");
traceSection.Enabled = true;
traceSection.LocalOnly = true;
traceSection.PageOutput = false;
traceSection.RequestLimit = 10;
traceSection.MostRecent = true;
traceSection.TraceMode = TraceDisplayMode.SortByCategory;
System.Web.Configuration.HttpCookiesSection cookie =
(HttpCookiesSection)root.GetSection("system.web/httpCookies");
cookie.HttpOnlyCookies = true;
//update file with TRACE and COOKIES
root.Save(ConfigurationSaveMode.Full);
//null == uses web.config at
// C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\CONFIG
Configuration root = WebConfigurationManager.OpenWebConfiguration("~/");
System.Web.Configuration.TraceSection traceSection =
(TraceSection)root.GetSection("system.web/trace");
traceSection.Enabled = true;
traceSection.LocalOnly = true;
traceSection.PageOutput = false;
traceSection.RequestLimit = 10;
traceSection.MostRecent = true;
traceSection.TraceMode = TraceDisplayMode.SortByCategory;
System.Web.Configuration.HttpCookiesSection cookie =
(HttpCookiesSection)root.GetSection("system.web/httpCookies");
cookie.HttpOnlyCookies = true;
//update file with TRACE and COOKIES
root.Save(ConfigurationSaveMode.Full);
Subscribe to:
Posts (Atom)