November 2005 - Posts

Speaking @ASP-Konferenz germany

tomorrow starts the german ASP konferenz near munich. More than 450 attendees are coming for the topics VS 2005 and SQL 2005. Five conferences at the same time & location. A realy great event in germany.

I am talking about some web part stuff, gridview extended and a very hard core session web performance optimizing.

Several experts, authors, MVPs, RD's will deliver great content. My favorite sessions will be AJAX from Michael Schwarz  and  WWF from Christan Nagel. Christoph Wille will make a Hands on Team System Workshop with a very expensive blade server. High lights over highlights.

Posted by preishuber | with no comments

Migrating ASP.NET 2.0 B2 to final bits PART III Rowcommand

I described in a earlier post how to access a row in a gridview during the rowcommand event.

http://weblogs.asp.net/hpreishuber/archive/2005/08/05/421712.aspx

This doesnt work any longer, or -better- produces following error message

Unable to cast object of type 'System.Web.UI.WebControls.ContentPlaceHolder' to type 'System.Web.UI.WebControls.GridViewRow'.

So instead of doing some parent parent adventures use now

Protected Sub GridView1_RowCommand(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewCommandEventArgs)

Select Case e.CommandName

Case "profil"

Dim row As GridViewRow = GridView1.Rows(CInt(e.CommandArgument))

 

Posted by preishuber | 1 comment(s)

ASP.NET Quickstart customized: Search (beta)

The asp.net quickstart samples are very usefull cause you can cut & paste code and see it running. The new edtion (http://beta.asp.net/quickstart) is even better than the 1.x were.

Also in ASP.NET 2.0 the samples must be installed by hand and need a database (sqlexpress). What i have missed is a full text search.

So here it is, hand made by me

http://www.preishuber.net/quickstartsearch.zip

Extraxt it direct to your quickstart directory. It overwrites the existing master page. It is fast, supports paging and caches the results for 30 minutes.

Have fun. Feedback here as comment,

Posted by preishuber | 3 comment(s)

Master Page Madness pure

My marketing departmend asked me for a simple solution to set metatags in content pages. (which uses master pages)

The first answere of a developer is: Add a ID and runat=server to Head control and code ... STOP... marketing means easy and frontpage and no line of code. So i tryed to put a second Content placeholder in the head section of the master page.

<head runat="server">

<title>ppedv</title>

<asp:contentplaceholder id="headinfos" runat="server">

</asp:contentplaceholder>

</head>

I did not expect that this madness solution will compile. But no error till now. Next step: create the content page:

<%@ Page Language="VB" MasterPageFile="~/MasterPage.master" Title="schulung" %>

<asp:Content ID="Content1" ContentPlaceHolderID="headinfos" Runat="Server">

<meta name="AUTHOR" content="Hannes Preishuber">

</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

my content

</asp:Content>

Works and works.A wonder :-)

(should i get a software patent for that)

 

Posted by preishuber | 2 comment(s)
More Posts