asp.net - asp:calendar binds last value to date from database -


Let me have a & lt; Asp: calendar & gt; must be binded with data obtained from a database linq query

here is the linux code

  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});   

My aspx.cs code is here

  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 ++; }   

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

Comments

Popular posts from this blog

php - PDO bindParam() fatal error -

logging - How can I log both the Request.InputStream and Response.OutputStream traffic in my ASP.NET MVC3 Application for specific Actions? -

java - Why my included JSP file won't get processed correctly? -