Tuesday, October 28, 2014

Grid View binding while drag and drop label

Hi ..


I have more no of gridviews and labels in asp...


I want to bind gridview while drag drop the label...So i need idea for that..


pls help...


Grid View binding while drag and drop label

Please post questions related to ASP.NET in the ASP.NET forums (http://forums.asp.net ).

Grid View binding while drag and drop label

You can check if label exists gridview will be bound



Control control = this.FindControl("Label1") as Control;

if (control !=null)
{
GridView1.DataSource = data;
GridView1.DataBind();
}


Update a column when insert/update the row

I think trigger will be an OK choice for this situation.


For every expert, there is an equal and opposite expert. - Becker's Law





My blog




My TechNet articles


Update a column when insert/update the row

Hi Eshani,


Why do you think you can't use a computed column in this sceanrio. If the logic to calculate the due date is based only on the invoice date and payment frequency, which are other columnd in the same row, then this is a classic scenario for a computed column. You can put the same logic that you would put in a trigger - in a computed column. It would be more efficient and easier to maintain.


--------------------------------------------

Guy Glantser

SQL Server Consultant & Instructor

Madeira - SQL Server Services

http://ift.tt/Tl7DRW

Update a column when insert/update the row

Thanks Glantser.


Is this comuted column works when update occurs?




ESHANI. Please click "Mark As Answer" if a post solves your problem or "Vote As Helpful" if a post has been useful to you


SQL I need help with this query Please help

TOP is the standard SQL Server query clause. Look into the structure of SQL query and particularly into TOP option:


http://ift.tt/1CmnNNE




For every expert, there is an equal and opposite expert. - Becker's Law





My blog




My TechNet articles