ASP.NET

There are 8 entries for the tag ASP.NET
Multiline Scroll Box in ASP.NET

Technorati Tags: ASP.NET Just a quick little tip I came across while trying to figure out how to render HTML into a scrollable textbox.  Originally I wanted to create a Terms & Conditions scroll box, nothing special here. What was driving me nuts was the encoding.  I had created an ASP.NET textbox, set it to multi-line and set the text to it from code-behind.  I’m tired of using ASP.NET controls, especially when you can do something like this much easier with plain HTML and CSS and it’s working just fine cross browswer and always will.  And...

posted @ Monday, October 19, 2009 9:02 PM | Feedback (0)

Deploying a Web Application Project Still looks for Code-behind during Runtime

Technorati Tags: ASP.NET When you deploy a WAP project, you don’t need to copy up any code-behind pages for .aspx pages or user controls (.ascx).  However, I was stumped when recently I had an old WAP project that I was working on and needed to deploy some updates.  I published it via the Build | Publish option in VS 2008 and then selected only to publish the minimum required: But I was getting errors during runtime stating that it could not find the code-behind page to default.aspx. Anyway, the problem was...

posted @ Sunday, August 30, 2009 1:53 PM | Feedback (1)

Running 64-bit Binary References in Visual Studio

Technorati Tags: IIS,Visual Studio,ASP.NET I had an issue where we wanted to start including the 64-bit assemblies to our WAP project replacing the 32-bit references.  I was getting errors during runtime stating that it could not find the 64-bit assemblies when trying to run the web site on my local Vista 64-bit PC.  Yet if we added the 32-bit assemblies to the web project instead and then deployed to our 64-bit Server 2008 Development Server and then copied back over the 64-bit assemblies into the bin of our web project, the site ran fine. There is one little...

posted @ Monday, August 24, 2009 9:02 PM | Feedback (1)

Making a jQuery JSON Request to an ASP.NET Handler And Back

Technorati Tags: jQuery,ASP.NET,JSON Recently I was working on a small project where we wanted to make requests to go get some data and pass it back via XML or JSON to a jQuery control.  So I picked out  a control that I thought would work (as it had hooks there for init, load, and other callback slots) and then thought ok, how the hell am I going do this.  Having never really created my own or used any HttpHandler (.ashx) before, I found out that this would be the way to do this. The Goal:  Make XML or...

posted @ Tuesday, July 07, 2009 11:22 PM | Feedback (0)

Must use !important on your CSS class for Text color to work on ASP.NET Validation Controls

Technorati Tags: CSS,ASP.NET There is absolutely no excuse not to use CSS classes in your asp.net controls.  And just because some appear not to work, doesn’t mean they can’t. For example, it’s important to note that if you specify a CssClass in an ASP.NET validation control, you will find out that if you specify a color, that it doesn’t take.  That’s because you need to decorate it with !important in your CSS class: <asp:RegularExpressionValidator id="vldEmailRegex" CssClass="required" . . . .required { color: #801517 !important; vertical-align: top; } Using properties such as ForeColor and others...

posted @ Monday, March 02, 2009 11:21 PM | Feedback (1)

Getting a Reference back to a Web control’s Parent Container

Technorati Tags: C#,ASP.NET,Web Controls If you have worked with any type of container in ASP.NET (Grids, Repeaters, etc.) you know that you cannot simply access any of its underlying collection of controls (for example if you have a div or some other control located inside the repeater) unless you gain a reference to that repeater object first, and then perform a FindControl to search within that repeater container to gain reference to whatever nested control (in my case I wanted to reference a div) you want to work with.   Nothing new here.  But when you start playing with custom controls...

posted @ Monday, December 01, 2008 10:23 PM | Feedback (0)

Creating an ItemDataBound Event Delegate for a Nested Repeater

Technorati Tags: ASP.NET,C#,Web Controls Today I needed to create a nested grid using repeaters.  Pretty common but always a pain in the ass with all Microsoft controls.  I needed to nest my repeaters just like you’d nest any other control like the DataGrid or GridView.  The issue came up for me when I wanted to create a delegate for my nested repeater (repeater inside my parent).  Since a nested control within a control (the nested repeater in this case) is not available at the page level, Intellisense or the compiler will not know that it exists.  Because it’s nested...

posted @ Saturday, November 08, 2008 7:50 PM | Feedback (2)

Silverlight, WPF, and more ASP.NET 3.5 Coming My Way

Technorati Tags: Silverlight,WPF,ASP.NET Well, I just started a new position as a C# Engineer at a great new .com.  The people seem great here.  And the cool thing is I will be not only doing what I love (more standard ASP.NET and Web design for a public website), I’m also going to be venturing into some WPF and Silverlight as well which is pretty exciting stuff.  The application due to company disclosures I cannot say but Silverlight is perfect for the application I’ll be working on in a few months.  I am a strong advocate for Silverlight.  It is not...

posted @ Friday, October 24, 2008 9:56 PM | Feedback (0)