Search

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

Matching Posts

  • Re: Uploading file to sharepoint list.

    C'mon guys, if you're going to post code, at least make your functions complete, not requiring mystery global variables ! /// <summary> /// Reference: Microsoft.SharePoint.dll /// using Microsoft.SharePoint /// Upload a file to a SharePoint document library. Many examples on the web seem to first /// convert a filestream to a byte array (?). You can save yourself some trouble by just /// passing in the stream. /// Note: if you're confused about the arguments here, just browse to
  • Re: Redirecting from old static .htm site to new .aspx site

    It's all in the .zip file at the end of my post here
    Posted to Getting Started (Forum) by rootsilver on 4/29/2008
  • Re: Can I call a function within main page?

    In an aspx/ascx page you can add a namespace with: <% @Import Namespace="My.Name.Space" %> In code, you do it with "using": import My.Name.Space; You can find the namespace simply by looking at the namespace line in your class. For example, if you have a class with this code: using System; namespace My.Name.Space{ class MyClass{ public static DateTime GetTime(){ return DateTime.Now; } } } Then: using My.Name.Space; class Test{ public static void Main(){ Console.WriteLine
    Posted to Getting Started (Forum) by rootsilver on 2/4/2008
  • Re: Need help with arraylists and array's

    I hate to say it but your code is a mess. It happens to us all, but when you know it happens, you really have to step back and rethink things. I know what you mean about not wanting to keep rewriting code and just get it working, but that usually ends in grief. First, it looks like you've got two big loops when you only need one. You're looping on your reader.Read, and then you're looping over the same data a second time. I bet you could collapse it all into one single loop, and I'd
    Posted to Getting Started (Forum) by rootsilver on 2/4/2008
  • Re: Need help with arraylists and array's

    Actually, it sounds like you're abusing arrays and doing something funky that could be done in a cleaner way. The red flag is the fact that you've got an ArrayList that holds arrays of objects. Not good, and a prime candidate for refactoring. I can't tell from your sample code why you're adding CheckBoxes and Images and this arrayList, but I'd be thinking more down these lines: 1 using System; 2 using System.Drawing; 3 using System.Windows.Forms; 4 using System.Collections.Generic;
    Posted to Getting Started (Forum) by rootsilver on 2/4/2008
  • Re: How to insert Time to MySql

    You've got a problem with your data types and casting. Somewhere in your code, you're trying to convince mysql that a string representing a time ("23:32:55") is supposed to be a timespan, and MySql isn't buying it. What's the line of code that's throwing the error?
    Posted to MySQL (Forum) by rootsilver on 2/3/2008
  • Re: Creating a function on the fly

    Are you looking for something like this ? http://www.west-wind.com/presentations/dynamicCode/DynamicCode.htm
    Posted to Visual Basic .NET (Forum) by rootsilver on 2/3/2008
  • Re: This type of page is not served.

    By "correct dll" you mean that you have ".asp" extensions pointing to the asp.net ISAPI dll instead of the usual .asp ISAPI dll?
    Posted to Free For All (Forum) by rootsilver on 2/3/2008
  • Re: Can I call a function within main page?

    You're trying to call a method from another class. This is just standard OOP, nothing specific to ASP.NET per se. Make sure you've "used" the namespace your other class is in, and either create an instance of the class to call the method, or else -- probably better in your case -- write it as a static method. If intellisense isn't seeing your method in App_Code, the "gotcha" is probably the namespaces. Also note that if you're in a user control, you can access
    Posted to Getting Started (Forum) by rootsilver on 2/3/2008
  • Re: Dates!

    You want to add days, but ONLY weekdays, if I understand you. Note that this code is wretchedly UN international and will probably fail in 50% of the world. But assuming you're in the western world ... using System; class Test{ public static void Main(){ int daysToAdd = 10; DateTime dt = AddWeekDays(DateTime.Now, daysToAdd); Console.WriteLine( "Adding {0} week days gives us:{1} {2}" , daysToAdd, dt.DayOfWeek, dt.ToString()); } public static DateTime AddWeekDays(DateTime startDate, int
    Posted to Getting Started (Forum) by rootsilver on 2/3/2008
Page 1 of 6 (52 items) 1 2 3 4 5 Next > ... Last »