asp.net - asp:calendar binds last value to date from database -
 Let me have a   here is the linux code    My aspx.cs code is here    But on output it shows the last value from the database instead of just showing all the data.    Can anyone tell me what is wrong? Thanks in advance       New group {m.DateFrom, m.Caus.CauseTitle} group group    & lt; Asp: calendar & gt;  must be binded with data obtained from a database linq query   
 public list & lt; AllCalander & gt; SearchCalender (int month, int zip, string type, cause of int) {var xyz = (meters from db to calendars where (m.DateFrom.Value.Month == month || mg = = zip} m New {caustitle = grp.Select (x = & gt; x.Caus.CauseTitle), datfrm = grp.Key by new {m.DateFrom} in group Active.type == type || m.CauseID == cause) Select .DateFrom, total = grp.Count ()}) .Olist (). Select (M = & gt; New Allen Calendar {DateFrom = Convert.ToDateTime (m.datfrm), CauseTitle = string.Join (",", m.caustitle), total = m.total});    
 list & lt; AllCalander & gt; Calmer = calbel. Searchcorder (mnt, zipstring, type, reason string); Forchcha (my item in the carrier) {string datetime = myItem.DateFrom.ToString (); Liberal myEventNameLiteral = New Literal (); MyEventNameLiteral.ID = I + myItem.CauseID.ToString (); // string trunkcheckendrate = E.Day.Det. Day Toasting (); If (string.Equals (DateTime.Parse (datetime) .ststring ("MMM dd yyyy"), e.Day.Date.ToString ("MMM dd yyyy"))) {string a = myItem.CauseTitle; If (a! = Reason) cause = a; Country ++; MyEventNameLiteral.Mode = Lighter Mode.Paththrough; MyEventNameLiteral.Text = "& lt; br / & gt; & lt; span style = 'font-family: varna; font-size: 10px;' & Gt; " + MyItem.CauseTitle + "(" + myItem Total + ")" + "& amp; nbsp;"; E.Cell.Controls.Add (myEventNameLiteral); } I ++; }   
 
  
Comments
Post a Comment