Steve Clements

.Net and then some....


News




MCP

Add to Technorati Favorites



Subscribe to this Blog by Email


this is Steve's profile
Locations of visitors to this page

My Stats

  • Posts - 130
  • Comments - 295
  • Trackbacks - 38

Twitter












Tag Cloud


Recent Comments


Recent Posts


Archives


Post Categories


Image Galleries


Fav Blogs


Fav Places


Services!


Top Kudos


September 2006 Entries

Atlas Control Toolkit - September Release (with Animation Support!)


The latest release of the Atlas Control Toolkit has been released...

You can download and see the demo's here

Check out the updatepanelanimation here there is also an animation extender to show panels etc with a zoom, fade etc.

Scott Gu has a great post (as expected!) here

They have a nice little slider control for selecting ranges, it looks pretty cool.  Another one that caught my eye is the 'NoBot' control which is like an invisible captcha.....worth a look :-)

posted @ Wednesday, September 20, 2006 4:27 PM | Feedback (0) |


Trip To Rome...anyone been?


Hey, I am going to Rome this weekend with my girlfriend.  Seeing I have never been before I thought someone may have some tips on great places to eat, see etc. that are off the beaten track (so to speak).

I also wondered if non Italian speaking people had any problems over there?....my only language is English!

We are staying near Vatican City.

 

Thanks in advance.

Steve

posted @ Wednesday, September 20, 2006 7:19 AM | Feedback (4) |


CSS Adapter for ASP.net 2.0 - Mouseover not working in IE6


Hi There

If like me you love to use CSS instead of HTML tables for the layout design of your pages then you no doubt have at least tried the CSS Adapter for asp.net 2.0 controls, if not take a look here.

Scott Gu has a great blog on it here, which discusses the new release, how to install etc. In a previous post (link to it on the same post) he talks about how easy it is to write your own adapter.

It comes with a nice tutorial and sample application, I have to say that its not as straight forward as I originally thought but once you get your head round the extensive (to me!) CSS classes you'll love it....not to mention the huge reduction in page size (in my case anyway ;-D).

 

So anyway..the error!!!

IE6 doesn't support the :hover tag in CSS on anything other than 'a' tag, so the adapter uses JavaScript to perform the action.....it runs a function that attaches to the onmouseover and onmouseout event, the function is run like this

window.onload = SetHover_AspNetMenu;

...well if in your own page you override the onload event like this..

this.onload = function() {
    //some code in here
}

then the SetHover.. function will not be called.  First of all I simple did a check for < IE7 and ran the code myself from my own onload override.  Then after talking with Russ on the asp.net forums he suggested coming up with a simple way to do this for everyone.  So I added this to bottom of the MenuAdapter.js file

function SetupMenuForIE6() {
      if (isPreIE7) {
            SetHover__AspNetMenu();
     }
}

Then went into the MenuAdapter file where all the other scripts are called in the method RegisterScripts() and added this   

Page.ClientScript.RegisterStartupScript(GetType(), "Menu-IE6-JS",
               "<script type='text/javascript'>SetupMenuForIE6();</script>");

Hope this helps someone has had the same problem I have.

Steve

posted @ Wednesday, September 13, 2006 2:06 PM | Feedback (5) |


ScottGu's Blog : "Atlas" 1.0 Naming and Roadmap


Some great news for Atlas devs, looks like we can see a supported release around the corner.

Not to sure about the name though! ;-D 

Link to ScottGu's Blog : "Atlas" 1.0 Naming and Roadmap

posted @ Monday, September 11, 2006 4:15 PM | Feedback (0) |


.NET 3.0 RC1 is out


.netFx 3.0 release candidate 1 was released on the 1st September, now you can also download the tools for it.

Expression Interactive Designer and

Orcas Tech preview that was release yesterday.

Rob Relyea talks more about it in this post

I haven't a great deal planned for the weekend so am hoping to find some time to have a play...watch this space for my findings.

 

Steve

posted @ Friday, September 08, 2006 4:42 PM | Feedback (0) |


StyleSheetTheme for Viewing Themes @ Design Time


If like me you use Themes but are always annoyed that they don't show at design time. Well styleSheetTheme is the answer.

The styleSheetTheme actually gets applied in very early in the page cycle, even before the page control properties.  That way you can still override the styleSheetTheme at page and control level by the Theme property.

You can set it a page level like this...

<%@ Page Language="C#" StylesheetTheme="Theme1" %>

or (if like me) you prefer to set things like this globally you can use the web.config

<system.web>
      <pages styleSheetTheme="Theme1" />
<system.web>

One thing to note is that setting EnableTheming=false doesn't stop applying the styleSheetTheme.

I just like it as I get design time view of my pages.

 

Steve

posted @ Thursday, September 07, 2006 11:32 AM | Feedback (0) |


HELP! SQL Session State in ASP.net 2.0


I am having huge problems with setting up SQL session state for my ASP.net app.  I have run the aspnet_regsql.exe tool and the database has been created correctly with the user id etc.
However nothing is saved in the session...i can look at the sql tables and see that in the TempApps table i have my application, when i look in the TempSession table i don't have any rows.

I have tried to do something very simple like this...

Master.PageTitle is just the text property of a label control.

if (Session["test"] != null)

   Master.PageTitle = Session["test"].ToString();

else {

   Session["test"] = "Hello from SQL session";

   Master.PageTitle = "Yes i am null";

}

 

Master.PageTitle += Session["test"].ToString();

The property is always "Yes i am nullHello from SQL session"

So the Session is set but when i postback to the server again the session is null.???
The exact same code works in InProc mode, and so does the rest of my Session management code.
I am normally storing an object which i have set as [Serializable]

In my web.config i have

<sessionState mode="SQLServer"

sqlConnectionString="user id=<userid>; password=<password>; data source=server1;"

cookieless="AutoDetect" />

Is there something i am missing?? I have followed the msdn to the T, just seems like i am missing something?

Thanks

Steve

Update

I found this issue the other day....I was trying to serialize a DataView object...doh!

posted @ Friday, September 01, 2006 7:27 PM | Feedback (1) |