Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
A

Antony M Kancidrowski

@Antony M Kancidrowski
About
Posts
1.5k
Topics
26
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • MAC Address
    A Antony M Kancidrowski

    HttpContext currentContext = HttpContext.Current;

    string ip = currentContext.Request.UserHostAddress;

    The MAC Address is unlikely to be the MAC of the machine browsing the web site. The MAC address of the IP packets changes as the packets pass through routers.

    Ant. **I'm hard, yet soft.
    I'm coloured, yet clear.
    I'm fruity and sweet.
    I'm jelly, what am I? Muse on it further, I shall return!

    **- David Walliams (Little Britain)

    C# tutorial

  • Forms Authentication and using Current User Credentials programmatically
    A Antony M Kancidrowski

    Many thanks Mike, getting the cookie and adding it to the request CookieContainer is exactly what I wanted. Just for others to reference I have included my code. HttpWebRequest req = (HttpWebRequest)WebRequest.Create(uri); // Add the current authentication cookie to the request HttpCookie cookie = HttpContext.Current.Request.Cookies[FormsAuthentication.FormsCookieName]; Cookie authenticationCookie = new Cookie(FormsAuthentication.FormsCookieName, cookie.Value, cookie.Path, HttpContext.Current.Request.Url.Authority); req.CookieContainer = new CookieContainer(); req.CookieContainer.Add(authenticationCookie); WebResponse res = req.GetResponse();

    Ant. **I'm hard, yet soft.
    I'm coloured, yet clear.
    I'm fruity and sweet.
    I'm jelly, what am I? Muse on it further, I shall return!

    **- David Walliams (Little Britain)

    ASP.NET security question

  • Hold a page before redirecting it to another one.
    A Antony M Kancidrowski

    You have to parse the href yourself to get the value. A quick google gave this. http://www.netlobo.com/url_query_string_javascript.html[^] I hope that helps. You can then redirect based on the parameter returned. window.location = url where url is the reutrned query string.

    Ant. **I'm hard, yet soft.
    I'm coloured, yet clear.
    I'm fruity and sweet.
    I'm jelly, what am I? Muse on it further, I shall return!

    **- David Walliams (Little Britain)

    ASP.NET help question

  • Hold a page before redirecting it to another one.
    A Antony M Kancidrowski

    You could use javascript. Set a timeout which calls a function to redirect the page. This will all happen client side and therefore you give the end user the page to view.

    Ant. **I'm hard, yet soft.
    I'm coloured, yet clear.
    I'm fruity and sweet.
    I'm jelly, what am I? Muse on it further, I shall return!

    **- David Walliams (Little Britain)

    ASP.NET help question

  • Unable to open more that 10 - 12 pages of locally published site
    A Antony M Kancidrowski

    Unless you are running a Windows Server OS your concurrent connections are limited. There is a maximum number of concurrent requests that your workstation IIS will serve. If you want more concurrent connections you may have to move your application to a server.

    Ant. **I'm hard, yet soft.
    I'm coloured, yet clear.
    I'm fruity and sweet.
    I'm jelly, what am I? Muse on it further, I shall return!

    **- David Walliams (Little Britain)

    ASP.NET help windows-admin question

  • Forms Authentication and using Current User Credentials programmatically
    A Antony M Kancidrowski

    Using Forms Authentication and locking down the path so you need to be authenticated to access the pages / data. I am trying to use the current authenticated user credentials in order to process a web request within the .aspx page that the user has navigated to. Code as below: HttpWebRequest req = (HttpWebRequest)WebRequest.Create(uri); req.Credentials = CredentialCache.DefaultCredentials; WebResponse res = req.GetResponse(); NOTE: the uri is valid. The response is a redirect to the login page (bad credentials redirect to login page) and not the requested data provided by the web request. I am struggling to find what I need to do in order for this request to be processed as though it was the current authenticated user. Any advice is most appreciated. Thanks in advance. Ant.

    Ant. **I'm hard, yet soft.
    I'm coloured, yet clear.
    I'm fruity and sweet.
    I'm jelly, what am I? Muse on it further, I shall return!

    **- David Walliams (Little Britain)

    ASP.NET security question

  • Just spotted an annoying thing!
    A Antony M Kancidrowski

    Yes always the simple things that are annoying when entering accounts across the year end. I must admit I find myself shouting at the computer "Oh, come on! You know what date I wanted!" ;)

    Ant. **I'm hard, yet soft.
    I'm coloured, yet clear.
    I'm fruity and sweet.
    I'm jelly, what am I? Muse on it further, I shall return!

    **- David Walliams (Little Britain)

    The Lounge

  • Home Answering Machine Software
    A Antony M Kancidrowski

    I'm fairly sure that the connection is not held open indefinately and does eventually timeout.

    Ant. **I'm hard, yet soft.
    I'm coloured, yet clear.
    I'm fruity and sweet.
    I'm jelly, what am I? Muse on it further, I shall return!

    **- David Walliams (Little Britain)

    The Lounge question

  • Require a single instance of a Stored Procedure
    A Antony M Kancidrowski

    Thank you Mika, I have decided to take your advise. The concept of creating a "control table" seems a good one.

    Ant. **I'm hard, yet soft.
    I'm coloured, yet clear.
    I'm fruity and sweet.
    I'm jelly, what am I? Muse on it further, I shall return!

    **- David Walliams (Little Britain)

    Database database question sql-server sysadmin help

  • Require a single instance of a Stored Procedure
    A Antony M Kancidrowski

    Using Microsoft SQL 2005 Express I need to be able to prevent the same stored procedure from running more than once at the same time so that if the stored procedure is in progress it does not run again. Although nothing will break if this occurs the second run will be redundant. I would like to ensure that any unnecessary work performed by the SQL Server is prevented. The Stored Procedure in question performs some housekeeping functionality that has a non-deterministic duration. I would like to do this all within SQL 2005 Express. Any help is appreciated. Thank you in advance for your time.

    Ant. **I'm hard, yet soft.
    I'm coloured, yet clear.
    I'm fruity and sweet.
    I'm jelly, what am I? Muse on it further, I shall return!

    **- David Walliams (Little Britain)

    Database database question sql-server sysadmin help

  • About an image conversion tool [modified]
    A Antony M Kancidrowski

    Seconded :D

    Ant. **I'm hard, yet soft.
    I'm coloured, yet clear.
    I'm fruity and sweet.
    I'm jelly, what am I? Muse on it further, I shall return!

    **- David Walliams (Little Britain)

    The Lounge question

  • thats me...
    A Antony M Kancidrowski

    If you want to write this sort of stuff, stick it in a blog.

    Ant. **I'm hard, yet soft.
    I'm coloured, yet clear.
    I'm fruity and sweet.
    I'm jelly, what am I? Muse on it further, I shall return!

    **- David Walliams (Little Britain)

    The Lounge help

  • JOTD: The Man And The Ostrich
    A Antony M Kancidrowski

    :D :laugh:

    Ant. **I'm hard, yet soft.
    I'm coloured, yet clear.
    I'm fruity and sweet.
    I'm jelly, what am I? Muse on it further, I shall return!

    **- David Walliams (Little Britain)

    The Lounge lamp question

  • JOTD: The Man And The Ostrich
    A Antony M Kancidrowski

    Yes...that is my favourite joke! :laugh:

    Ant. **I'm hard, yet soft.
    I'm coloured, yet clear.
    I'm fruity and sweet.
    I'm jelly, what am I? Muse on it further, I shall return!

    **- David Walliams (Little Britain)

    The Lounge lamp question

  • While I understand what they mean...
    A Antony M Kancidrowski

    Russell Jones wrote:

    My particular bugbear is the use of lightyear as a measure of time

    Yea, it sort of bugs me too. It is understandable given the use of the word year in the name but I cannot excuse it from learned people.

    Ant. **I'm hard, yet soft.
    I'm coloured, yet clear.
    I'm fruity and sweet.
    I'm jelly, what am I? Muse on it further, I shall return!

    **- David Walliams (Little Britain)

    The Lounge com question announcement

  • I wish I can get paid to reinvent the wheel and never to RTFM!
    A Antony M Kancidrowski

    :laugh:, that page might have been missing from the manual! ;P

    Ant. **I'm hard, yet soft.
    I'm coloured, yet clear.
    I'm fruity and sweet.
    I'm jelly, what am I? Muse on it further, I shall return!

    **- David Walliams (Little Britain)

    The Lounge php visual-studio com question

  • Graduation -> UK job search
    A Antony M Kancidrowski

    Chris McGlothen wrote:

    And also what is the proper attire to wear to interviews?

    I'd suggest wearing a suit, shirt and tie and shoes. It shouldn't matter IMO. However it is definately advantageous to look clean and smart. When you get the job it is more than likely that the development department will have a more relaxed stance on dress code.

    Ant. **I'm hard, yet soft.
    I'm coloured, yet clear.
    I'm fruity and sweet.
    I'm jelly, what am I? Muse on it further, I shall return!

    **- David Walliams (Little Britain)

    The Lounge csharp question asp-net database sql-server

  • Ugly painting sells for $33M
    A Antony M Kancidrowski

    Baconbutty wrote:

    The one of the Queen looks more like he just looked at the Spitting Image puppet of the Queen and painted it from that.

    That is what I thought too! :D

    Ant. **I'm hard, yet soft.
    I'm coloured, yet clear.
    I'm fruity and sweet.
    I'm jelly, what am I? Muse on it further, I shall return!

    **- David Walliams (Little Britain)

    The Lounge html com question announcement

  • Wow!
    A Antony M Kancidrowski

    Let the mutations begin! :D

    Ant. **I'm hard, yet soft.
    I'm coloured, yet clear.
    I'm fruity and sweet.
    I'm jelly, what am I? Muse on it further, I shall return!

    **- David Walliams (Little Britain)

    The Lounge com announcement

  • Ego spam
    A Antony M Kancidrowski

    ...and the 5 million or so people who read these posts! ;)

    Ant. **I'm hard, yet soft.
    I'm coloured, yet clear.
    I'm fruity and sweet.
    I'm jelly, what am I? Muse on it further, I shall return!

    **- David Walliams (Little Britain)

    The Lounge
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups