How Can I get the selected value of the dropdown box ?
here is the code.
BackEnd Code
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
public partial class Admin_Controls_Users_ToDoList : System.Web.UI.UserControl
{
protected void Page_Load(object sender, EventArgs e)
{
// TO DO HERE
string strTask = "Staff Meeting";
// Danger - RED - URGENT TASK
this.ltToDo.Text = "" +
"" +
"" +
""+ strTask + ""+
"today"+
""+
"";
// WARNING - YELLOW COLOR
strTask = "Hire developers";
this.ltToDo.Text += ""+
""+
"" +
"" + strTask + "" +
"tommorow"+
""+
"";
// SUCCESS - GREEN COLOR
strTask = "Hire developers";
this.ltToDo.Text += "" +
"" +
"" +
"" + strTask + "" +
"this week" +
"" +
"";
strTask = "New Project";
this.ltToDo.Text += "" +
"" +
"" +
"" + strTask + "" +
"this month" +
"" +
"";
}
}
Mageshwaran RPosted Nov 21, 2019, 10:59 AM
Asma KhalidPosted Aug 15, 2019, 11:50 PM