binding GridView at runtime!
Depening on the role at runttime the GridView should bind to different SqlDataSources.I searched in Google alreday,but not clear.Can anyone please help me?Can anyone complete following,Becoz following code will not work at all,it doesnot give error ,but it will not run also!
if (Roles.IsUserInRole("supervisor"))
{
GridView4.DataMember=default;
GridView4.DataSource=SqlDataSource1;
}
Vedavathi
__________________
Vedavathi
|