country table
COUNTRY_NAME nvarchar(80)
COUNTRY_SHORT_NAME nchar(3)
COUNTRY_SORT_ORDER float
COUNTRY_VALID bit
code behind page
protected void Button1_Click(object sender, EventArgs e)
{
ShoppingDataContext db = new ShoppingDataContext();
ECM_COUNTRY objCountry = new ECM_COUNTRY
{
COUNTRY_NAME =txtCountryName.Text.Trim(),
COUNTRY_SHORT_NAME=txtshortName.Text.Trim(),
COUNTRY_SORT_ORDER =Convert.ToDouble(txtSortOrder.Text.Trim()),
COUNTRY_VALID =Convert.ToBoolean(chkIsActive.Checked)
};
db.ECM_COUNTRies.InsertOnSubmit(objCountry);
db.SubmitChanges();
Response.Redirect(Request.RawUrl);
txtCountryName.Text = "";
txtshortName.Text = "";
txtSortOrder.Text = "";
chkIsActive.Checked = false;
}
Subscribe to:
Post Comments (Atom)
Access Camera HTML 5
Access camera and video, the INPUT element with a type of file is necessary: < input type = " file " accept = " i...
buy cloth
-
Left & Right Outer Join Example in LINQ using Lambda Expression Combines two collections into a single hierarchical collection. T...
-
In this example we have show basic functionally of shopping cart using ajax. So we have three classes named shopping cart, shopping car...
-
jQuery provides simple yet powerfull functions which have extended the JavaScript AJAX methods and provide more flexible way. Let us see dif...
No comments:
Post a Comment