Welcome to weblogs.com.pk Sign in | Join | Help

DataSource Parameters

If you are using SqlDataSource [ASP.NETv2]; and you need to pass on certain parameters not accessible using Form, Cookie, QueryString or Session, use simple Parameter and data-bound control’s even like Inserting, Updating or Deleting. In the even you can write a code like

protected void FormViewModels_ItemInserting(object sender, FormViewInsertEventArgs e)
.SqlDataSourceForModelInsert.InsertParameters["LoggedOnUserID"].DefaultValue = this.Context.User.Identity.Name;

Published Friday, January 13, 2006 1:19 PM by khurram
Filed under:


No Comments

New Comments to this post are disabled