Home
Get Started
Learn
Downloads
AJAX
MVC
Community
Wiki
Forums
Sign in
|
Join
Home
›
ASP.NET Forums
›
Search
Search
You searched for the word(s): userid:85976
More Search Options
RSS Available
Matching Posts
HttpModule to auto trim textbox data
I want to create a http module to trim white space from text box entries given a form like below if the user enteres 'Joe ' into the first name textbox, I want to be able to retrieve the value 'Joe' (no white space) still using this.FirstNameTextBox.Text in the page code behind, my idea was to create a module that would run trim method on the value of the Request.Form entries that have a specific naming convention < asp:TextBox ID= "FirstNameTextBox" runat= "server" ></ asp:TextBox ><
Posted to
HttpHandlers and HttpModules
(Forum)
by
jhouse
on 1/19/2007
Re: Hosted Application with Separate Clients
create a virtual directory per client in IIS, but point all of them to the same physical files C:\Inetpub\wwwroot\mydomain.com\ all of the clients would then be running from the same web.config settings, but if you had other settings that were custom per client you could load those from xml files or database entries. you will probably need to determine what configuration to load based on the url requested, parsing out the virtual directory optionally you may want to run each virtual directory in
Posted to
Architecture
(Forum)
by
jhouse
on 12/2/2006
Re: Try ... catch structure in a web application
see microsoft exception handling application block for logging errors http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnpag2/html/EntLibJan2006_ExceptionHandlingAppBlock.asp http://msdn.microsoft.com/library/en-us/dnpag2/html/EntLibJan2006_LoggingAppBlock.asp?frame=true as for trapping errors; it is good to implement a catch all handler in Global.asax Application_Error event http://www.developer.com/net/asp/article.php/961301 http://msdn.microsoft.com/library/default.asp?url=/library
Posted to
Getting Started
(Forum)
by
jhouse
on 10/17/2006
Re: Capture names and values of textboxes in HttpModule
string controlValue = System.Web.HttpContext.Current.Request.Form["html name of input control"]; you can also loop on the collection of Request.Form collection to get the names and values of the entire http POST note that if the controls are nested inside a master page or ascx control the name generated in the html could/will be different then you expect
Posted to
HttpHandlers and HttpModules
(Forum)
by
jhouse
on 10/7/2006
Re: Base pages, Profiles and Themes
are you setting the theme in the PreInit event of the Page - otherwise I do not think it will work? these links may be of help http://odetocode.com/Blogs/scott/archive/2006/03/12/3091.aspx http://msdn.microsoft.com/msdnmag/issues/05/11/CuttingEdge/
Posted to
Master Pages, Themes and Navigation Controls
(Forum)
by
jhouse
on 10/6/2006
Re: external website inside masterpage
somebody else might have better ideas but here are two possible ways html frames would probably be the easist way to implement this other wise I think you need to create an aspx page that requests the external pages and then renders the output, you will probably run into relative path issues for images etc... you will need to use the System.Net.WebRequest and System.Net.HttpWebResponse classes see http://msdn2.microsoft.com/en-us/library/system.net.webrequest.aspx
Posted to
Master Pages, Themes and Navigation Controls
(Forum)
by
jhouse
on 10/6/2006
Re: Styling <asp:DropDownList>
yes, it can be handled in various ways; there is a CssClass property on all webcontrols as well as other more specific formatting properties like BorderStyle, etc... see http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpgenref/html/cpconBaseWebControlProperties.asp for a list of some of these
Posted to
Master Pages, Themes and Navigation Controls
(Forum)
by
jhouse
on 10/6/2006
Re: Page loaded in XX seconds
if you turn tracing on it will show you how long page generation takes not sure if that is what you are looking for?
Posted to
Master Pages, Themes and Navigation Controls
(Forum)
by
jhouse
on 10/6/2006
Re: javascript reference to the field that want to be set
can you post your code that creates the javascript link and also put the html that is rendered in the browser (only the bits having to do with this js function)
Posted to
Master Pages, Themes and Navigation Controls
(Forum)
by
jhouse
on 10/6/2006
Re: javascript reference to the field that want to be set
try the ClientID property Button1.OnClientClick = String.Format( "calendarPicker('Form1.{0}');", TextBox1.ClientID) ;
Posted to
Master Pages, Themes and Navigation Controls
(Forum)
by
jhouse
on 10/5/2006
Page 1 of 38 (371 items) 1
2
3
4
5
Next >
...
Last ยป
ASP.NET:
Resizing images from the server using WPF/WIC instead of GDI+
Silverlight:
Deploying your Silverlight and WCF RIA Services application
Channel 9:
Juan Chen and Nikhil Swamy: FINE, a Compiler for End-to-End Security Verification
Channel 10:
Get the Outlook Hotmail Connector Beta
Channel 10:
MSN to Launch New Lifestyle Site from Wonderwall Creator
Channel 10:
Behind the Windows 7 Startup Animation
Channel 9:
Reactive Extensions API in depth: CombineLatest
Channel 9:
C9 Lectures: Dr. Graham Hutton - Functional Programming Fundamentals Chapter 11 of 13
WindowsClient:
New WPF Showcase: Scrum Sprint Monitor
WindowsClient:
WPF/XAML helping VS2010 Extensibility
WindowsClient:
HTTP 403.9 with ADO.NET Data Services
WindowsClient:
xml syntax highlighting in Silverlight
Channel 9:
Channel 9 Emerges in China
WindowsClient:
Overlaying Icons on the Windows 7 Taskbar with WPF 4
Channel 9:
The Outlook calendar starts in 1601 - But Why?
ASP.NET:
Bytes by MSDN: Brad Abrams Interview with Billy Hollis: Silverlight 4, RIA Services and VS2010
Mix Online:
Pictures or it Didn't Happen
Channel 9:
Reactive Extensions API in depth: even more Zip
TechNet Edge:
SDL For Agile
Mix Online:
Test Lab Note
Microsoft Communities
ASP.NET
Channel 8
Channel 9
Channel 10
IIS.NET
Silverlight
TechNet Edge
WindowsClient
Mix Online