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
S

StianSandberg

@StianSandberg
About
Posts
58
Topics
3
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Webhosting question
    S StianSandberg

    Quote:

    Remember that the physical location of the host is irrelevant

    I don't agree. The physical location can be important. You will often have a higher latency if the physical location is far away (that makes sence) Let's say you put all your servers in Honolulu and all of your customers/users is located in Iceland. That's a wierd example, but in my case I always choose a hosting provider with datacenters close to my users. There is reason for why Microsoft put server centers all over the world and not one big data center in the US.

    The Lounge question com hosting

  • My Settings.
    S StianSandberg

    I'm having this javascript error on "My settings" ReferenceError: AttControl is not defined [https://www.codeproject.com/script/Membership/Modify.aspx:16298] No css.. Pretty minimalistic page..

    Site Bugs / Suggestions learning com tools question

  • Guess your age
    S StianSandberg

    Our best guess is that you are 32. Is it close? Yes it was very clos. I'm 36. Impressive! :)

    The Lounge learning question

  • Competition winners
    S StianSandberg

    Now I found it.. You can search here : http://www.codeproject.com/script/Surveys/List.aspx?srvid=1427&sl_st=0&pgnum=1[^]

    -------------------- Microsoft Certified Solutions Developer (MCSD)

    The Lounge database tutorial question

  • Competition winners
    S StianSandberg

    ah. You'll find it here: http://www.codeproject.com/script/Awards/ListCompetitions.aspx[^]

    -------------------- Microsoft Certified Solutions Developer (MCSD)

    The Lounge database tutorial question

  • Competition winners
    S StianSandberg

    Try this link http://www.codeproject.com/script/Awards/Winners.aspx?obtid=2&cmpTpId=1[^]

    -------------------- Microsoft Certified Solutions Developer (MCSD)

    The Lounge database tutorial question

  • Top experts this month/24h
    S StianSandberg

    point taken ;)

    -------------------- Microsoft Certified Solutions Developer (MCSD)

    Site Bugs / Suggestions question

  • Top experts this month/24h
    S StianSandberg

    The lists on the frontpage:

    0 Name 500
    1 Name 400
    2 Name 300
    3 Name 200
    4 Name 100

    Shouldn't this list start at 1?

    -------------------- Microsoft Certified Solutions Developer (MCSD)

    Site Bugs / Suggestions question

  • Tried Typescript? What's your first impressions?
    S StianSandberg

    Tried TypeScript? I've been playing around with it for a few days and I'm not sure what I think of it. It's almost javascript, but you get some benefits by using types and maybe a easier syntax. I installed Mads Kristensen's Web Essentials 1.3 and of course the official plug-in for Visual Studio Web Essentials crashes from time to time, but Mads is working on it :) Do you have any experiences using TypeScript? Maybe some examples to share? How do you solve using libraries like jQuery(ui), knockout, underscore etc? It's really boring to write all these typescript interfaces. Typescripts homepage should have a directory for interfaces for the most used js-libraries (or maybe such directory exists somewhere?)

    -------------------- When Chuck Norris' dreams come true, your worst nightmares begin.

    JavaScript javascript csharp visual-studio com design

  • Visual Studio 2012 and .NET 4.5 now available!
    S StianSandberg

    I'll look at it tomorrow.. Exited

    -------------------- When Chuck Norris' dreams come true, your worst nightmares begin.

    The Insider News csharp visual-studio com

  • Where I ended my Windows 8 Install (MS has humor now)
    S StianSandberg

    :laugh:

    -------------------- When Chuck Norris' dreams come true, your worst nightmares begin.

    The Lounge tools

  • Sending SMS through ASP.NET
    S StianSandberg

    You will have to use a sms gateway. That's your first step. After that you will have to read their api documentation to figure out how to create the code you need. Sms gateway providers have different api's so it's impossible to help you with code before you choose which gateway to use. Google "sms gateway api"

    -------------------- When Chuck Norris' dreams come true, your worst nightmares begin.

    ASP.NET csharp asp-net

  • Nice to see that some still dare to think big
    S StianSandberg

    Think big. My favorite quote: "We were hoping to build a small, profitable company. And of course, what we've done is build a large, unprofitable company. (Jeff Bezos - Amazon.com)"

    -------------------- When Chuck Norris' dreams come true, your worst nightmares begin.

    The Lounge com question announcement

  • (Input string was not in a correct format) with ExecuteReader
    S StianSandberg

    SqlCommand.Parameters.AddWithValue() does not take datatype as an parameter. You should add the parameter name and value (not datatype)

    sql_command.Parameters.AddWithValue("param_member_id", Request.QueryString["id"]);

    http://derekreynolds.wordpress.com/2011/05/16/using-sqlcommand-and-addwithvalue-parameters-to-execute-sql-insert/[^] But your error "Input string was not in a correct format" is because some convert's did not succeed. When converting strings-->int etc you should use TryParse

    private static void TryToParse(string value)
    {
    int number;
    bool result = Int32.TryParse(value, out number);
    if (result)
    {
    Console.WriteLine("Converted '{0}' to {1}.", value, number);
    }
    else
    {
    if (value == null) value = "";
    Console.WriteLine("Attempted conversion of '{0}' failed.", value);
    }
    }

    -------------------- When Chuck Norris' dreams come true, your worst nightmares begin.

    ASP.NET sharepoint database help question

  • creating login database with dreamweaver
    S StianSandberg

    Can't wait to read your article about member system with high protection :) Please let me know when it's finished.. CP needs articles about this topic.

    -------------------- When Chuck Norris' dreams come true, your worst nightmares begin.

    Web Development database question

  • creating login database with dreamweaver
    S StianSandberg

    There are no "best way" Use a programming language you are familiar with. If you know PHP, use PHP, if you know ASP.net use it. But Dreamweaver? I don't think that's the best IDE for any language, but that's my opinion. In ASP.NET there's a complete Membership setup ready in minutes. And it's secure! (using hashed passwords, password salt and are safe from sql-injections) Rahul Rajat Singh[^] have written a nice beginners article : Understanding ASP.NET Roles and Membership - A Beginner's Tutorial[^] If you don't have Visual Studio, you can download the express version for free

    -------------------- When Chuck Norris' dreams come true, your worst nightmares begin.

    Web Development database question

  • creating login database with dreamweaver
    S StianSandberg

    Good answer! I wrote an article a few weeks ago explaining some basics : Beginners guide to a secure way of storing passwords[^]

    -------------------- When Chuck Norris' dreams come true, your worst nightmares begin.

    Web Development database question

  • creating login database with dreamweaver
    S StianSandberg

    W3Schools "great" tutorial is not great! They put code in mvc views and don't use mvc as it's ment to be used. Do not read that tutorial!

    -------------------- When Chuck Norris' dreams come true, your worst nightmares begin.

    Web Development database question

  • A simple contact form with validation
    S StianSandberg

    Remember that the file which loads the contactform has to be in the same folder as your Contacts.ashx. Or else it won't work (404, file not found) If it's not in the same path/folder you have to change the action-attribute in the form-tag.

    -------------------- When Chuck Norris' dreams come true, your worst nightmares begin.

    Web Development javascript css sysadmin tools performance

  • prevent to copy my web pge
    S StianSandberg

    Isn't your question about preventing this?

    -------------------- When Chuck Norris' dreams come true, your worst nightmares begin.

    ASP.NET help
  • Login

  • Don't have an account? Register

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