Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7676647
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T17:14:49+00:00 2026-05-31T17:14:49+00:00

Is it possible to add a DropDownList inside a calendar day for the asp.net

  • 0

Is it possible to add a DropDownList inside a calendar day for the asp.net Calendar control and then to bind it to a SelectedIndexChanged event?

I can add the DropDownList inside the day I want, but I’ve been unable to bind it to the event. I’ve seen it done for a LinkButton inside a Calendar control, but nothing for a DropDownList.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T17:14:51+00:00Added an answer on May 31, 2026 at 5:14 pm

    you can do it like this way also. take your data into one object variable and then convert its data into select tag(Dropdown list tag in html) and then add that control in your day of calendar.

    protected void Calendar1_DayRender(object sender, DayRenderEventArgs e)
    {
        stringBuilder matrix = new stringBuilder();
        var SemList = (from row in dt.AsEnumerable()                                    
                      select new
                      {
                       SemName = row.Field<string>("SemName"),
                       SemID = row.Field<string>("SemID")
                      });
    
        if (SemList != null)
        {
            Matrix.Append("<select ID='sem_" + dt.Rows[k]["ActualCMID"].ToString() + "' runat='server' width='100px' onchange='" + Server.HtmlEncode("javascript:BindSpecialization('" + dv.ToTable().Rows[k]["ActualCMID"].ToString() + "')").ToString() + "'>");
            Matrix.Append("<option value='0'>---Select---</option>");
            foreach (var sem in SemList)
            {
               Matrix.Append("<option value='" + sem.SemID + "'>" + sem.SemName + "</option>");
            }
            Matrix.Append("</select>");
        }
        e.Cell.Controls.Add(new LiteralControl(Matrix.ToString()));
    }
    

    I hope it will helpful to you.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to subclass the built-in DropDownList in ASP.NET so that I can add
Is it possible to add to a DropDownList Control nested in a Listview a
Is it possible to add instances of the same user control when an add
I have a DropDownList on an ASP.NET page that gets populated by a SQL
I need to add a link button control to dropdown list item.is it possible
Possible Duplicate: How is possible add child to the specific node how i can
Possible Duplicate: Add picture at facebook event with Graph API I have been trying
I'm populating a dropdownlist in c# asp.net-MVC from a SQL table using Linq2Sql. I'd
Is it possible to add the heading for each menu list? Something like: <asp:Repeater
Is it possible to add IN inside a case statement of WHERE clause as

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.