Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Peter Alcock 113 posts 176 karma points
    Jul 12, 2013 @ 14:03
    Peter Alcock
    0

    Creating a new node

    Hi all,

    Think this should be a simple fix but can't find it for the life of me! Im using the below C# in a usercontrol which works great if i set a specific parent id in this example 1327 but i want the parent id to be a variable based on the option value from a select box.

    <select ID="catagory" runat="server">

    <option value="1327">June</option>

    <option value="1384">August</option>

    </select>

     Document doc = Document.MakeNew(dealName.Text, dt, author, catagory.Value);

     

    Any ideas?

    Thanks

    Pete

  • Peter Alcock 113 posts 176 karma points
    Jul 12, 2013 @ 14:23
    Peter Alcock
    0

    Nevermind cracked it just had to convert the string duh!

    var numVal = Convert.ToInt32(catagory.Value);

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies