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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
S

Spiff Dog

@Spiff Dog
About
Posts
4
Topics
0
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Unit testing in JavaScript
    S Spiff Dog

    It really depends on what you are doing. There are a lot of UI test suites out there. I personally do a lot of jQuery development and find that the qUnit framework works great. You could give that a go. Thanks! Spiff :cool:

    ------------------------- Spiffdog Design It's ok... he doesn't bite...

    JavaScript csharp javascript php asp-net com

  • Global Warming Debunked
    S Spiff Dog

    Actually, technically it does. More water in the ocean means rising ocean levels. This increases ocean surface area as the ocean expands further inland. More ocean surface area, more evaporation. :D

    -------------------------
    Spiffdog Design
    It's ok.. he's no ordinary dog...

    The Back Room css adobe security

  • HTTP Request Forwarding in Classic ASP
    S Spiff Dog

    If you are talking about having the server forward a post request, you may be able to do something like this. My VBScript is kinda rusty, so expect a bug or two: <% Dim postData Dim xmlhttp 'sample form-POST data postData = "data=100" 'setup form post object 'we use the XML HTTP object Set xmlhttp = server.CreateObject("MSXML2.ServerXMLHTTP") 'replace with the server you would like to post to 'make sure "POST" is capitalized xmlhttp.Open "POST","http://my.target.server/target.asp",false 'set header with Content-Type rule for a typical form post xmlhttp.setRequestHeader "Content-Type", "application/x-www-form-urlencoded" 'send data in key=value pairs xmlhttp.send(dataToSend) 'write out return response from POST Response.Write xmlhttp.responseXml.xml 'destroy the http object Set xmlhttp = nothing %> If you are talking about just taking the browser post point to a differant location, if it's the same server, just use: Server.Transfer ("newlocation.asp", true)

    -------------------------
    Spiffdog Design
    It's ok.. he's no ordinary dog...

    Web Development help csharp sysadmin security json

  • Cast from string/text to int
    S Spiff Dog

    Most native numeric types in c# 2.0 have a "TryParse" method attached. An example method that would return the integer from a TextBox.Text property would be something like this: public static int GetIntFromTextBox(TextBox textbox) {     if(textbox != null && !string.IsNullOrEmpty(textbox.Text))     {         int myInt;                  string myNumberString = textbox.Text;         int.TryParse(myNumberString, out myInt);                  return myInt;     }     return 0; } This will work for floats, doubles, etc as well. Just change the "datatype" in the TryParse line (double.TryParse() instead of int for instance). In the cases where the string is not a number, I believe it assigns zero (0), so the evaluation may not be neccessary.

    -------------------------
    Spiffdog Design
    It's ok.. he's no ordinary dog...

    C# csharp tutorial question
  • Login

  • Don't have an account? Register

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