User Profile

Collapse

Profile Sidebar

Collapse
podster
podster
Last Activity: Nov 2 '09, 05:11 PM
Joined: Jan 22 '09
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • I forgot the static keyword in your subroutine:

    Code:
    private static void upload(object name1, object name2)
    {
    //your code
    }
    A static method can only call other static methods in the class, and use other static fields/properties/members in the class.
    See more | Go to post

    Leave a comment:


  • podster
    replied to Inheritng from .aspx page
    This is actually incorrect:

    "-- .Net only permits for single-level inheritance model "

    Your inheritance hierarchy can be as deep as you want, i.e., base < derived1 < derived2 < derived3

    I think what you are getting at is that .Net only supports single inheritance, which means that a class can only inherit directly from one other class. i.e, you can't do base1, base2 < derived1
    ...
    See more | Go to post

    Leave a comment:


  • You've nested your upload sub procedure inside your Main() procedure.

    It needs to go like this:
    Code:
    namespace uploadreports
    {
    public class program
    {
    public static void Main(string[] args)
    {
    //Your code
    upload(name1,name2);
    upload(name3,name4);
    
    }
    private void upload(object name1, object name2)
    {
    //your code
    }
    ...
    See more | Go to post
    Last edited by Frinavale; Jan 22 '09, 05:40 PM. Reason: added [code] tags

    Leave a comment:

No activity results to display
Show More
Working...