string ratedto = ((Button)sender).CommandArgument; datacontex db = new datacontex (); getuser uid = (getuser )Session["userlogin"]; int userid = ud.UserID ; int recCount = db.Starratings.Count(rate => rate.RatingBy ==userid & rate.UserID ==Convert .ToInt16 (ratedto )); if (recCount <= 0) { //save data to database;
for (int i = 0; i < Datalist1.Items.Count; i++) { HtmlInputText currentTextbox = (HtmlInputText)Datalist1.Items[i].FindControl("txtName"); HtmlTextArea currentTextArea = (HtmlTextArea)Datalist1.Items[i].FindControl("txtDesc"); string texboxValue= currentTextbox.Value; //Get the textboxvalue string textareaValue=currentTextArea.Value; //Get the textareavalue }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)