Code

Discussion in 'ASP .Net Datagrid Control' started by anonymous, Jan 11, 2005.

  1. anonymous

    anonymous Guest

    The code below is workin OK.but I wanted to look
    better.Please help me.
    Dim ds As DataSet = GetData()
    If Not ds Is Nothing Then
    .DataSource = GetData()
    Else
    .DataSource = GetData2()
    End If
    .DataBind()
     
    anonymous, Jan 11, 2005
    #1
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Ron
    Replies:
    1
    Views:
    2,916
    Showjumper
    Jun 24, 2003
  2. Ben Miller [msft]

    Re: Code Behind vs. no code behind: error

    Ben Miller [msft], Jun 27, 2003, in forum: ASP .Net
    Replies:
    1
    Views:
    845
    Alphonse Giambrone
    Jun 28, 2003
  3. C
    Replies:
    2
    Views:
    555
    Natty Gur
    Aug 6, 2003
  4. Fred Armitage
    Replies:
    2
    Views:
    3,581
    Sherif ElMetainy
    Aug 26, 2003
  5. Mitch A

    inline code VS page behind code

    Mitch A, Nov 1, 2003, in forum: ASP .Net
    Replies:
    3
    Views:
    3,639
    Chris R. Timmons
    Nov 2, 2003
  6. Jim Heavey
    Replies:
    1
    Views:
    490
    Oisín Grehan
    Dec 2, 2003
  7. =?Utf-8?B?Q2FybG8gTWFyY2hlc29uaQ==?=

    Fire Code behind code AND Javascript code associated to a Button Click Event

    =?Utf-8?B?Q2FybG8gTWFyY2hlc29uaQ==?=, Feb 10, 2004, in forum: ASP .Net
    Replies:
    4
    Views:
    21,815
    =?Utf-8?B?Q2FybG8gTWFyY2hlc29uaQ==?=
    Feb 11, 2004
  8. keithb
    Replies:
    1
    Views:
    1,202
    Bruce Barker
    Mar 29, 2006
Loading...