本文整理汇总了C#中disaster.Update方法的典型用法代码示例。如果您正苦于以下问题:C# disaster.Update方法的具体用法?C# disaster.Update怎么用?C# disaster.Update使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类disaster
的用法示例。
在下文中一共展示了disaster.Update方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: disaster_update
public disaster disaster_update(int ID)
{
disaster = disaster.Select(ID);
disaster.disaster_id = Convert.ToInt32(Update_disaster_id_txt.Text);
disaster.disaster_name = Update_disaster_name_txt.Text;
disaster.disaster_type = Update_disaster_type_txt.Text;
disaster.disaster_start_date = Convert.ToDateTime(Update_disaster_start_date_txt.Text);
disaster.disaster_end_date = Convert.ToDateTime(Update_disaster_end_date_txt.Text);
disaster.disaster_north_latitude = Convert.ToDecimal(Update_disaster_north_latitude_txt.Text);
disaster.disaster_north_longitude = Convert.ToDecimal(Update_disaster_north_longitude_txt.Text);
disaster.disaster_south_latitude = Convert.ToDecimal(Update_disaster_south_latitude_txt.Text);
disaster.disaster_south_longitude = Convert.ToDecimal(Update_disaster_south_longitude_txt.Text);
disaster.disaster_east_latitude = Convert.ToDecimal(Update_disaster_east_latitude_txt.Text);
disaster.disaster_east_longitude = Convert.ToDecimal(Update_disaster_east_longitude_txt.Text);
disaster.disaster_west_latitude = Convert.ToDecimal(Update_disaster_west_latitude_txt.Text);
disaster.disaster_west_longitude = Convert.ToDecimal(Update_disaster_west_longitude_txt.Text);
disaster.Update(disaster);
Insert_disaster_GridView.DataBind();
Update_disaster_GridView.DataBind();
Delete_disaster_GridView.DataBind();
return disaster;
}
开发者ID:ManigandanS,项目名称:Disaster-Management-Communication-System,代码行数:22,代码来源:disaster_Screen.aspx.cs