Click here to Skip to main content
15,891,375 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionSolution to multiple file upload control Pin
Hari_101022-Jul-07 20:11
Hari_101022-Jul-07 20:11 
AnswerRe: Solution to multiple file upload control Pin
N a v a n e e t h22-Jul-07 22:37
N a v a n e e t h22-Jul-07 22:37 
GeneralRe: Solution to multiple file upload control Pin
Hari_101022-Jul-07 22:42
Hari_101022-Jul-07 22:42 
GeneralRe: Solution to multiple file upload control Pin
N a v a n e e t h22-Jul-07 22:57
N a v a n e e t h22-Jul-07 22:57 
GeneralRe: Solution to multiple file upload control Pin
Hari_101022-Jul-07 23:01
Hari_101022-Jul-07 23:01 
QuestionCaching issue in .NET 1.1 Pin
Vipul Mehta22-Jul-07 19:41
Vipul Mehta22-Jul-07 19:41 
AnswerRe: Caching issue in .NET 1.1 Pin
N a v a n e e t h22-Jul-07 22:27
N a v a n e e t h22-Jul-07 22:27 
Questionhow to align dynamically generated control in palceholder control Pin
imranafsari22-Jul-07 19:23
imranafsari22-Jul-07 19:23 
Dear All,
I am making web application using Asp.net C#(Visual Studio2005).
I have checkboxlist(which is populated by all the master filed like category , subcategory ,customer , etc ). Now based on selection I generates web control label (to name the field) and dropdownlistbox (which is filled by code and its description).

My problem is all controls comes one after other. I would like label then dropdownlist in a single line. That custlabel and its dropdownlist comes in one line then next say categorylabel and its dropdownlistbox should align in next line and inbetween them one free line .

My code is

foreach (ListItem li in CheckBoxListmst.Items)
{
if (li.Selected == true)
{
//code added to fetch dropdownlist
setting = ConfigurationManager.ConnectionStrings["StyleSearchConnectionString"];
if (setting != null)
{
conn = new SqlConnection(setting.ConnectionString);
cmd = new SqlCommand("Search_display");
cmd.CommandType = CommandType.StoredProcedure;
cmd.Parameters.Add("@cateid", SqlDbType.VarChar);
cmd.Parameters["@cateid"].Value = li.Text.ToString();

conn.Open();
cmd.Connection = conn;
try
{
// added controls
Label label = new Label();
DropDownList dropdownlist = new DropDownList();
label.ID = "label" + li.Text;
dropdownlist.ID = "dropdownlist" + li.Text;
label.Text = li.Text;
rdr = cmd.ExecuteReader();
while (rdr.Read())
{
ListItem ld = new ListItem();

ld.Text = rdr["disp"].ToString();
ld.Value = rdr["mstid"].ToString();
dropdownlist.Items.Add(ld);


}
PlaceHolder1.Controls.Add(label);
PlaceHolder1.Controls.Add(dropdownlist);


Response.Write("
");
//added controls end

}

catch (SqlException ex)
{
}


Please Guide me or atleast give some help full link.
thanks



imaran khan

Questionasp.net equivalent of php's 'Include' Pin
gvanto22-Jul-07 19:21
gvanto22-Jul-07 19:21 
AnswerRe: asp.net equivalent of php's 'Include' Pin
Paddy Boyd22-Jul-07 22:12
Paddy Boyd22-Jul-07 22:12 
GeneralRe: asp.net equivalent of php's 'Include' Pin
gvanto23-Jul-07 4:05
gvanto23-Jul-07 4:05 
Questioncreate image control at runtime [urgent] Pin
Milind Panchal22-Jul-07 18:58
Milind Panchal22-Jul-07 18:58 
Questiondate query Pin
Sonia Gupta22-Jul-07 18:49
Sonia Gupta22-Jul-07 18:49 
AnswerRe: date query Pin
Amit.Amit.Amit...22-Jul-07 19:35
Amit.Amit.Amit...22-Jul-07 19:35 
GeneralRe: date query Pin
Sonia Gupta22-Jul-07 19:47
Sonia Gupta22-Jul-07 19:47 
AnswerRe: date query Pin
Sathesh Sakthivel22-Jul-07 19:36
Sathesh Sakthivel22-Jul-07 19:36 
GeneralRe: date query Pin
Sonia Gupta22-Jul-07 19:49
Sonia Gupta22-Jul-07 19:49 
AnswerRe: date query Pin
imranafsari22-Jul-07 19:44
imranafsari22-Jul-07 19:44 
GeneralRe: date query Pin
Sonia Gupta22-Jul-07 19:51
Sonia Gupta22-Jul-07 19:51 
GeneralRe: date query Pin
imranafsari22-Jul-07 20:27
imranafsari22-Jul-07 20:27 
GeneralRe: date query Pin
Amit.Amit.Amit...22-Jul-07 20:29
Amit.Amit.Amit...22-Jul-07 20:29 
GeneralRe: date query Pin
Sonia Gupta22-Jul-07 20:42
Sonia Gupta22-Jul-07 20:42 
Questionin my ide there is no form designer code?can u tell me how to do this? Pin
ademsandeepreddy22-Jul-07 18:41
ademsandeepreddy22-Jul-07 18:41 
AnswerRe: in my ide there is no form designer code?can u tell me how to do this? Pin
Christian Graus22-Jul-07 19:05
protectorChristian Graus22-Jul-07 19:05 
Questioncreating folder and uploading file Pin
hurrem22-Jul-07 18:38
hurrem22-Jul-07 18:38 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.