Feeds:
Posts
Comments

Posts Tagged ‘Web Development’

I’ve been pulling out my hair for the last 30 minutes trying to get an HTML table with height 100% to work in my ASP.NET 2.0 application.  I’m trying to render a block of HTML in the center of my application page.
I finally found the solution to my problem – it seems that turning on [...]

Read Full Post »

I know there are numerous web sites and blogs about this subject.  Since I had to write some code for “Fred” to render on-line video, and embedding video in web pages can be somewhat fiddly to get right, I figured I’d blog the C# code for my future reference.  If hosting on-line video in your [...]

Read Full Post »

Winform applications have been using resources (embedded images etc) for some time.  .NET allows developers to embed binary files into assemblies, which can later be retrieved by code at runtime.  ASP.NET is no exception.  How many times have you written a web control, which requires images, and you’ve had to rely on the client web [...]

Read Full Post »

Good at web site development, but design challenged? Not to worry, Microsoft has come to the rescue with free design templates: http://msdn.microsoft.com/asp.net/reference/design/templates/
Thanks to Andrew Duthie.

Read Full Post »

Pop quiz, what is wrong with the following class?
public class MyPlaceHolder : PlaceHolder
{
protected override void OnInit(EventArgs e)
{
Page.Trace.Write(this.ID, “In OnInit”);
base.OnInit(e);
}
protected override void OnLoad(EventArgs e)
[...]

Read Full Post »

Chris Lovett wrote a wonderful .NET library called SGMLReader, which,
when passed a regular HTML file will spit out XHTML.  The library
relies on SGML parsing and uses a DTD (Document Type Definition) file to parse
unformatted HTML. 
I’ve been playing with Chris’s library this
week and trying to convert HTML to XHTML on the fly using an ASP.NET
Http [...]

Read Full Post »

Let’s say you have the following snippet of code below. The code
dynamically
instantiates a new ASP.NET control, changes the title property and then
adds the control to the control collection of a placeholder on the
page – a typical approach to dynamically creating controls.  When
the control loads, it adds an item into the drop down list
items collection with [...]

Read Full Post »

In my previous post I mentioned the steps involved in the process of an ASP.NET page. As promised, here are the details on the slide that was covered in Chris Mazzanti’s presentation at this months Rockville WinProteam user group meeting.
Firstly, all ASPX and ASCX pages are just serialized control trees – object structures. If you [...]

Read Full Post »

http://msdn.microsoft.com/msdnmag/issues/04/10/View State/default.aspx
What is the View State?
The view state is a hidden form variable containing data encoded in base-64 to represent the state of server side controls on an ASP.NET page.
What’s wrong with the View State?
The view state can become large on pages that include a large number of controls, or complex controls like the DataGrid, that [...]

Read Full Post »

This alert is to advise you of the availability of a web page that discusses an investigation Microsoft is currently conducting into public reports of a security vulnerability in ASP.NET. A malicious user could provide a specially-formed URL that could result in the unintended serving of secured content.
This alert is also to advise you [...]

Read Full Post »