Search

You searched for the word(s): userid:682780

Matching Posts

  • Re: Upload files to SFTP

    this dll should help http://www.tamirgal.com/blog/category/SharpSSH.aspx then you can write a wrapper class to use this binary hope it helps
    Posted to C# (Forum) by richiej on 11/19/2009
  • Re: Glogal Controls

    foreach (Control c in f.Controls) { s = c.ID; DropDownList2.DataSource = s; DropDownList2.DataBind(); } I dont understand that bit. Your string will only ever contain one ID. Wouldn't it be better to have a List of strings and the bind to that e.g. List<string> controls = new List<string>; foreach (Control c in f.Controls) { controls.add(c.ID); } DropDownList2.DataSource = controls; DropDownList2.DataBind(); Also, remember some controls are control collections and will have controls
    Posted to C# (Forum) by richiej on 10/7/2009
  • Re: C# Application Developement -> ASP.NET

    If you've been PHPing then I would STRONGLY recommend ASP.NET MVC MVC is much more like true web development. ASP.NET is microsoft's attempt to put their own version of web development out there with page life cycles, viewstate and stuff. Like one of the above posts, you will be cursing it for at least 2 months. MVC will take you a couple of weeks but be much more like what you're used to with PHP. Hope this helps
    Posted to C# (Forum) by richiej on 9/18/2009
  • Re: How to transfer the values from an array into a table

    What your table? Is it a manually written HTML table or have you used a server side gridview etc..... cos if you used a server side webcontrol then surely you could just bind your control to your string array? No....
    Posted to C# (Forum) by richiej on 7/28/2009
  • Re: string.format issue

    Hi Thanks for your reply, it really helped. Just wondering how I could have the string at the start followed by any padding, so rather than " 3200F" I would get "3200F " thanks in advance
    Posted to C# (Forum) by richiej on 7/14/2009
  • string.format issue

    Hi, I have an issue where I need to return a string as always 15 characters long even if the actual is 5 in length for example. So if a string of "32000F" was returned there should be 9 'blank' characters before it. I have tried to use : string.Format("{0:000000000000000}", Convert.ToString(row[2]))); but it still returns "32000F" in the above example. Does anyone know how I can achive this? Many thanks
    Posted to C# (Forum) by richiej on 7/13/2009
  • Re: Error reflecting type when trying to serialize

    Can you post your code for your class please, just wanted to see how you've defined your class
    Posted to C# (Forum) by richiej on 7/1/2009
  • Re: Error reflecting type when trying to serialize

    The answer lies in how you defined your class! .. you have "PlyrDetails" and "PlyrDetails2" - despite having the same xmelement name because they are different classes you will have 2 different elements in your xml document. Do you need 2 different player details classes or can you not have one?
    Posted to C# (Forum) by richiej on 7/1/2009
  • Re: Need to add a int field that results repeatly 0 and 1 after each other

    Use the modulus operator (%) e.g. select case 1 % 2 when 0 then 0 else 1 end results in "1" and select case 2 % 2 when 0 then 0 else 1 end results in 0 so you could use in your query; select case @@rowcount % 2 when 0 then 0 else 1 end, <columnName> from <tablename>
Page 1 of 35 (345 items) 1 2 3 4 5 Next > ... Last »