locked
how use visual net? RRS feed

  • Question

  • User-1625733423 posted

    hi, 

    Always i worked in C#, but i have to do a project in visual basic and i do not anything that languaje. 

    i need to convert this sentence:

    Chart1.DataSource = DataSet1;

    in visual basic.

    But, when I call on. aspx.vb a previously declared item on .aspx, seems don't recognize it.

    I attached a code segment that I did in C # so you understand a little better what I need to do in visual basic.

    protected void Page_Load(object sender, EventArgs e)
    {
    Random b = new Random();
    LblNumero.Text = b.Next(10, 30).ToString();
    LblNumero0.Text = b.Next(10, 20).ToString();
    String [] a= new String[7];
    int [] c= new int[7];
    a[0] = "Rep Mayor de infraestructura";
    a[1] = "Rep Menor de infraestructura";
    a[2] = "Equipo Electrico";
    a[3] = "Equipo Electronico";
    a[4] = "Equipo Electromecanico";
    a[5] = "Servicios";
    a[6] = "Equipo Lado Aereo";
    c[0] = 34;
    c[1] = 23;
    c[2] = 83;
    c[3] = 44;
    c[4] = 39;
    c[5] = 76;
    c[6] = 23;
    DataSet tabla= new DataSet();
    FormulasEstadisticas formulas= new FormulasEstadisticas();
    tabla= formulas.SetGetCategoria(a,c,tabla);
    Chart1.DataSource = tabla;
    }
    Monday, December 19, 2011 1:02 PM

Answers

All replies