Saturday, March 24, 2012

Newbie help

Hi

Please instead of writing DataSource into HTML like

DataSource='<%# dsBoth.Tables["Calls"].DefaultView%>'

Is there a way to write it directly into code?

thanks in advanced

IvanYes sure,
if you are using a datagrid:

from inside the code use :

dgr1.DataSource = dsBoth.Tables["Calls"].DefaultView;
dgr1.DataBind();

regards

0 comments:

Post a Comment