Click here to Skip to main content
15,905,427 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: how to upload a local file into application server (its urgent plz) Pin
N a v a n e e t h29-Oct-07 19:58
N a v a n e e t h29-Oct-07 19:58 
AnswerRe: how to upload a local file into application server (its urgent plz) Pin
jagadeeshkumar198429-Oct-07 20:14
jagadeeshkumar198429-Oct-07 20:14 
GeneralRe: how to upload a local file into application server (its urgent plz) Pin
N a v a n e e t h29-Oct-07 20:25
N a v a n e e t h29-Oct-07 20:25 
GeneralRe: how to upload a local file into application server (its urgent plz) Pin
jagadeeshkumar198429-Oct-07 20:38
jagadeeshkumar198429-Oct-07 20:38 
QuestionFind application path Pin
ps.srinivasan29-Oct-07 19:14
ps.srinivasan29-Oct-07 19:14 
AnswerRe: Find application path [modified] Pin
Jintal Patel29-Oct-07 19:31
Jintal Patel29-Oct-07 19:31 
QuestionThe SourceSafe database path does not exist Pin
mahammadhusen29-Oct-07 19:12
mahammadhusen29-Oct-07 19:12 
QuestionHow to add control Runtime?? Pin
varshavmane29-Oct-07 19:04
varshavmane29-Oct-07 19:04 
Hi All,

I am adding conrols at runtime something like this:

//Label For Showing Symbol Text
Label lblSymbol = new Label();
lblSymbol.ID = "lblSymbol";
lblSymbol.Text = "Symbol";
lblSymbol.CssClass = "text";
tab1.Controls.Add(lblSymbol);

Panel PopupMenu = new Panel();
PopupMenu.ID = "newPanel";

//Div Tag
HtmlGenericControl watch = new HtmlGenericControl();
watch.Style.Value = "background-color:#FBFBFB ;border:1px solid Blue;width:40%";


StringBuilder strPOPUPCompanyMenu = new StringBuilder("");
strPOPUPCompanyMenu.Append("<table width='700px' border='1' cellpadding='0' cellspacing='0'>");
strPOPUPCompanyMenu.Append("<tr><td>&nbsp;</td><td class='text' width='500px' align='left'>Country</td>");
strPOPUPCompanyMenu.Append("<td align='left' width='250px'>");

//CascadingDropDown For Country
AjaxControlToolkit.CascadingDropDown CascadingDropDown10 = new AjaxControlToolkit.CascadingDropDown();
CascadingDropDown10.ID = "CascadingDropDown10";
CascadingDropDown10.TargetControlID = "ddlcountry";
CascadingDropDown10.Category = "Country";
CascadingDropDown10.PromptText = "Select a Country";
CascadingDropDown10.ServicePath = "AutoComplete_WatchList.asmx";
CascadingDropDown10.ServiceMethod = "GetCountry";

watch.Controls.Add(CascadingDropDown10);

//DropDownList For Country
DropDownList ddlcountry = new DropDownList();
ddlcountry.ID = "ddlcountry";
ddlcountry.CssClass = "text";
ddlcountry.Width = 250;
watch.Controls.Add(ddlcountry);

strPOPUPCompanyMenu.Append("</td><td>&nbsp;</td></tr>");
strPOPUPCompanyMenu.Append("<tr><td>&nbsp;</td><td align='left' class='text'>Sector</td><td>&nbsp;</td></tr></table>");

watch.InnerHtml = strPOPUPCompanyMenu.ToString();

//Add div Tag to Panel
PopupMenu.Controls.Add(watch);

//PopupControlExtender For Showing Company Panel
AjaxControlToolkit.PopupControlExtender PopupControlExtender14 = new AjaxControlToolkit.PopupControlExtender();
PopupControlExtender14.ID = "PopupControlExtender14";
PopupControlExtender14.TargetControlID = "lblSymbol";
PopupControlExtender14.PopupControlID = "newPanel";

tab1.Controls.Add(PopupControlExtender14);
tab1.Controls.Add(PopupMenu);


But I cant see the dropdownlist on by page. Can sone tell me where I have going wrong.
I have to popup panel on lblSymbol click, I can just see select country but cant see ddlcountry.

Please help me....

Thanks in advance...
AnswerRe: How to add control Runtime?? Pin
Sandeep Akhare29-Oct-07 20:59
Sandeep Akhare29-Oct-07 20:59 
QuestionUnable to attach the code to debug Pin
buzzvishwanath29-Oct-07 18:53
buzzvishwanath29-Oct-07 18:53 
QuestionEvent Fire in Drop Down List Pin
Rinki Mukheraji29-Oct-07 18:17
Rinki Mukheraji29-Oct-07 18:17 
AnswerRe: Event Fire in Drop Down List Pin
N a v a n e e t h29-Oct-07 18:52
N a v a n e e t h29-Oct-07 18:52 
GeneralRe: Event Fire in Drop Down List Pin
Rinki Mukheraji29-Oct-07 18:57
Rinki Mukheraji29-Oct-07 18:57 
AnswerRe: Event Fire in Drop Down List Pin
kuyak200029-Oct-07 19:19
kuyak200029-Oct-07 19:19 
GeneralRe: Event Fire in Drop Down List Pin
Rinki Mukheraji29-Oct-07 19:27
Rinki Mukheraji29-Oct-07 19:27 
GeneralRe: Event Fire in Drop Down List Pin
kuyak200029-Oct-07 20:36
kuyak200029-Oct-07 20:36 
QuestionRole Manager [modified] Pin
SreejithAchutan29-Oct-07 17:21
SreejithAchutan29-Oct-07 17:21 
AnswerRe: Role Manager Pin
N a v a n e e t h29-Oct-07 18:53
N a v a n e e t h29-Oct-07 18:53 
GeneralRole Manager Pin
SreejithAchutan29-Oct-07 19:10
SreejithAchutan29-Oct-07 19:10 
GeneralRe: Role Manager Pin
N a v a n e e t h29-Oct-07 19:43
N a v a n e e t h29-Oct-07 19:43 
GeneralRole Manager Pin
SreejithAchutan29-Oct-07 19:56
SreejithAchutan29-Oct-07 19:56 
GeneralRe: Role Manager Pin
N a v a n e e t h29-Oct-07 20:04
N a v a n e e t h29-Oct-07 20:04 
Questionre: Unable to get the project from the project file. Unable to open the webproject Pin
Sakis_hir29-Oct-07 16:38
Sakis_hir29-Oct-07 16:38 
Questionschedule a .NET web service Pin
Dpriya29-Oct-07 14:03
Dpriya29-Oct-07 14:03 
AnswerRe: schedule a .NET web service Pin
Colin Angus Mackay29-Oct-07 14:10
Colin Angus Mackay29-Oct-07 14:10 

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.