Life, Surf, Code and everything in between
White Papers | Free Tools | Products | Message Board | News |

Last 24 Comments

re: ASP.NET Caching under Memory Pressure
Today @ 2:04 am | by Edmartinez

Hi Rick! There is added pressure on memory due to ASP.NET cache’s in-process and standalone nature. I suggest you look into distributed caching because it not only relieves the pressure on memory, but it is also scalable and highly reliable.
re: ASP.NET Connection Session Slides and Samples Posted
Yesterday @ 11:26 pm | by Rick Strahl

@Craig - thanks. Updated. Not sure how this happened - somewhere in my final cleanup of the project I guess.

The database is V 9.0 (SQL 2005). You just may have to attach it explicitly. I've had problems with getting it to work properly due to permissions in some situations in 'file mode'. The sample should work out of the box with file mode connection and the local Web server though.
re: I hate Adobe Acrobat (even more now!)
Yesterday @ 3:01 pm | by Tom the Tom

Stupid lawyers sending stupid PDFs. I'm going to cry if I have to convert another PDF.
re: LINQ to SQL and attaching Entities
Yesterday @ 11:39 am | by Rick Strahl

@Mike - Interesting, but it doesn't really solve the problem if you're dealing with an existing entity that you want to update - it works only if you manually reassign all values. Also you still end up with issues for child entities, which in the end is the real problem.

It's interesting to see all the different approaches that have been mentioned in this thread. Obviously there are ways this can be done - iit'd just be nice if Microsoft would at least take one of these approaches and automate it behind the scenes.
re: LINQ to SQL and attaching Entities
Yesterday @ 9:42 am | by Mike Russo

I follow yur articles alot ... anyways after some digging I was able to figure out how the Attach works without doing a pre-fetch ...

Within my middle tier function I have this code ...
            using (var context = GetContext())
            {
                Company company = new Company(companyId);
                context.Companies.Attach(company);
                company.UserName = userName;
                company.Password = password; 
                company.EMail = email;
                company.Notes = notes;
                context.SubmitChanges();
            }


First, the Attach should be called before you set any properties ... second if you set the PK property you get an exception so what you do is add a new contructor via partial class ...

    partial class Company
    {
        public Company(int companyName)
        {
            _CompanyId = companyName;
        }
    }


This bypassed the PropertyChange ... it has worked out well for me ... however I also use VS2008 and latest .NET Framework
re: Introduction to jQuery Article posted
Yesterday @ 9:35 am | by Helen from Online Book Reviews

Thanks Rick, this is an awesome intro to JQuery -
I have been playing on getting a copy of JQuery book and reading it, this has done a great deal to show what can be achieved with it.

Lovely site by the way :)
re: Running VisualSVN Server for Subversion Source Control
Yesterday @ 8:54 am | by Ivan Zhakov

Good practice use httpd-custom.conf to customize VisualSVN Server, because it will not be overwritten on upgrade/reinstall. Just add something like this:
<Location /svn/>
Satisfy Any
<Location>
re: Updated jQuery Calendar to jQuery DatePicker
Yesterday @ 1:31 am | by Andrew

I conducted investigation about this problem. Bug is : control need only en-US Culture. So fix is:
wwWebUtils.cs, internal class wwWebUtils, line 199
public static string EncodeJsDate(DateTime date)
        {
            return "new Date(\"" + date.ToString("U", new CultureInfo("en-US")) +" UTC" + "\")";
        }

re: Where's my .NET 3.5 (on IIS), Dude?
Monday @ 9:09 pm | by VPDJ

Thank you for the info. Guys check this out - www.mono-project.com
re: FireFox 3 and Static File Caching Problems
Monday @ 7:24 pm | by G

To add to the frames-confusion, i suspect might that firefox3 sometimes reloads a frame twice, if you use the classical: parent.frame2.location.href = 'newpage.asp'.
Would be interesting to hear anyone verify this, since it only happens in firefox3. Is this a known problem?
re: jQuery Intellisense Updates from Microsoft
Monday @ 5:42 pm | by Godwin

Any signs of similar support for prototypa/Scriptaculous?
Thanks
re: Odd Word Problem - Home and Delete keys not working
Monday @ 2:40 pm | by Christine

I had this problem with the Backspace key not deleting. After installing a translation software, I had to use CTRL or ALT + Backspace to be able to delete (ant then, again, it was deleting the whole word and not only one character...) So, I've been in Tools - keyboard commands and discovered that Backspace had been dedicated to another thing... I deleted that, and everything seems to be back to normal! Thanks for the great idea! I've been looking for a solution all day!
re: Creating Thumbnail Images on the fly with ASP.Net
Monday @ 1:33 pm | by Nikola

Great code! Thanks! :)
re: ASP.NET Connection Session Slides and Samples Posted
Monday @ 1:21 pm | by Craig

Rick, I think ui.draggable.js may be missing from the jQueryWeb project.
re: Sql 2008 Management Tools: Can't save changes that require Recreation of Database
Monday @ 12:47 pm | by joan pons

who the hell at microsoft decide to put this stupid settings on ?
anyway, thanks rick!
re: ASP.NET Connection Session Slides and Samples Posted
Monday @ 10:57 am | by Craig

Rick,

I only have SQL 2005 installed locally. Doesn't look like the WcfAjax.mdf is going to run on 2005. Any suggestions?

Thanks
Craig
re: ASP.NET Connection Session Slides and Samples Posted
Monday @ 10:52 am | by Rick Strahl

@Marc - sorry missed the slides in that session. They're updated now...
re: ASP.NET Connection Session Slides and Samples Posted
Monday @ 8:51 am | by Marc Scheuner

Hi Rick, good stuff as usual - but I can't seem to find the slides (powerpoint) for your WCF Rest presentation - seem to be missing from the ZIP. Can you post these, too, please? Thanks!

Greetings from Switzerland, Marc
re: ASP.NET Connection Session Slides and Samples Posted
Monday @ 8:45 am | by Kevin

Rick,

Really enjoyed your jQuery and WCF presentations. Both gave me an excellent jump start. I am in the same boat as you, I don't really gamble, don't drink or party that much, (can't stand the smoke in the casinos anyway!) It seemed that I was walking miles from one room to another and did not get much interaction with the speakers as well. With that being said, I did like all the sessions that I attended. My only regret was not seeing Joe Satriani and Mountain at the House of Blues on Monday Night...

Aloha,

Kevin
dropdownlist with Years has not been bounding :(
Monday @ 7:59 am | by Andrew

Hi!
I have got jQueryDatePicker, build and run it, and I have a problem.
When i set MinDate & MaxDate properties, for example
this.txtImageButton.MinDate = DateTime.Now.AddDays(-1);
this.txtImageButton.MaxDate = DateTime.Now.AddDays(1);

dropdownlist with Years has not been bounding :(
And dates over MaxDate and MinDate are not disabled, as I expect.

What can be reason of this?
re: ASP.NET Connection Session Slides and Samples Posted
Monday @ 6:52 am | by Will

Thanks for posting the slides and code samples. I had to leave for the airport just as your jQuery talk was starting. (I think I might have passed you in the hall on the way out.) I was disappointed when I saw the schedule and knew I would miss it because I was looking for a good jQuery jump start. Hopefully what you've posted will be a good substitute.

I agree with you on the subdued atmosphere of the conference and even more so about the lack of speaker interaction. We attendees spend a lot of money and take time away from work and family to travel to conferences like this to interact with experts in their respective fields. Trying to cram that interaction into the few minutes between sessions when you're one of a dozen standing around the stage afterwards never works. Honestly, except for one case where I had a question that I absolutely needed clarification on I just didn't bother.

Thanks again for the post.
re: Visual Studio 2005 and Intellisense issues revisited on Vista RTM
Monday @ 4:53 am | by Dave C

I've got the same problem, one of my colleages can see some of my user controls, the other can see all of them:
This is using the same install of VS (sp1) and the same code through VSS?


West Wind  © Rick Strahl, West Wind Technologies, 2005 - 2008