bclhaynes

Stories kicked by bclhaynes

Preventing Caching of an ASP.net page in c# (geekzilla.co.uk)

submitted by phaymanphayman(3550) 4 years, 6 months ago

The following code prevents a page being cached. read more...

add a comment |category: |Views: 7

tags: another

Getting the Virtual Path of a Request in c# (geekzilla.co.uk)

submitted by phaymanphayman(3550) 4 years, 6 months ago

This simple bit of code will get you the Virtual Path of your current request. read more...

add a comment |category: |Views: 58

tags: another

Returning a value from a PageMethod using MS AJAX(geekzilla.co.uk)

submitted by phaymanphayman(3550) 4 years, 10 months ago

If you've ever returned data from a web service using MS AJAX this technique will look familar. read more...

add a comment |category: |Views: 6

tags: another

IsGuid() method (Regular Expression Based Guid Validation)(geekzilla.co.uk)

submitted by phaymanphayman(3550) 4 years, 10 months ago

Here is a function I try to keep handy which tests a string for a Guid and returns True or False. read more...

add a comment |category: |Views: 488

tags: another

Rendering a Control to a String (geekzilla.co.uk)

submitted by phaymanphayman(3550) 4 years, 10 months ago

This is a really handy little function for rendering a control to a string. Really handy if you want to pass back rendered HTML from a StaticPageMethod or WebService. read more...

1 comment |category: |Views: 19

tags: another

Enforcing Coding Standards using Resharper(devlicio.us)

submitted by dwhittakerdwhittaker(13.1k) 4 years, 10 months ago

If you are using ReShaper, enforcing coding standards can be simple. Among the many features that are offered by ReSharper is the ability to ReSharper format/reformat your code for you. read more...

add a comment |category: |Views: 33

tags: another

Add variables to standard CSS stylesheets in ASP.NET(madskristensen.dk)

submitted by MHamiltonMHamilton(170) 4 years, 11 months ago

Great way to be more dynamic with your stylesheets. Allows for more flexible website layouts based on dyanmic information. read more...

2 comments |category: |Views: 46

tags: another

Using Regular Expressions to validate a filename in a FileUpload contr(geekzilla.co.uk)

submitted by phaymanphayman(3550) 4 years, 11 months ago

Here's a little code snippet I use to ensure that the file that has been uploaded is of type JPG, JPEG, PNG or GIF read more...

add a comment |category: |Views: 191

tags: another

Centering a DIV using the negative margin method (geekzilla.co.uk)

submitted by phaymanphayman(3550) 4 years, 11 months ago

An oldie but a goodie.. This method is very clean and works in all browsers. read more...

1 comment |category: |Views: 12

tags: another

Fixing broken users after Database Restore(geekzilla.co.uk)

submitted by phaymanphayman(3550) 4 years, 11 months ago

Ever restored a Database which was created on a different server then not been able to use the same logon you had previously set up? read more...

add a comment |category: |Views: 6

tags: another

DTS, Excel and mixed format columns(geekzilla.co.uk)

submitted by phaymanphayman(3550) 4 years, 11 months ago

I recently had a problem DTS importing an Excel spreadsheet which contained columns with mixed text and data values. After a bit of hunting around, I found an extended property IMEX=1. The IMEX=1 property forces everything to text when reading from a source. read more...

add a comment |category: |Views: 2

tags: another

Web 2 Ajax Style Animated Gif's and Generator MORE NEEDED!!(geekzilla.co.uk)

submitted by phaymanphayman(3550) 4 years, 11 months ago

When searching high and low for a ajax style wait icon I came across the following handy sites. Please send me links to more. read more...

add a comment |category: |Views: 62

tags: another

Sorting an XML document in C# using XSL(geekzilla.co.uk)

submitted by phaymanphayman(3550) 4 years, 11 months ago

I needed to sort some XML in C# before itterating through the document. In the end I used the XslCompiledTransform to apply an XSL stylesheet to the XML document. Works very quickly. For reference, this is how I did it. read more...

add a comment |category: |Views: 382

tags: another

Credit Card Validation with Regex(geekzilla.co.uk)

submitted by PagemPagem(360) 4 years, 11 months ago

First stage of Visa and Mastercard validation with regex. read more...

add a comment |category: |Views: 100

tags: another

LoginStatus not logging users out?(geekzilla.co.uk)

submitted by phaymanphayman(3550) 4 years, 11 months ago

Have you noticed your LoginStatus control doesn't log the user out when you click Logout? Well, to fix this all you need to do is add an id attribute. read more...

1 comment |category: |Views: 3

tags: another

DateTime.ToString() Patterns(geekzilla.co.uk)

submitted by phaymanphayman(3550) 4 years, 11 months ago

Handy list of DateTime.ToString() patterns. Bookmark it ;-) read more...

add a comment |category: |Views: 60

tags: another