Click here to Skip to main content
15,887,683 members
Home / Discussions / C#
   

C#

 
GeneralRe: Open .xls file in excel from code Pin
livez17-May-06 20:10
livez17-May-06 20:10 
GeneralRe: Open .xls file in excel from code Pin
CWIZO17-May-06 20:49
CWIZO17-May-06 20:49 
GeneralRe: Open .xls file in excel from code Pin
livez17-May-06 21:33
livez17-May-06 21:33 
QuestionGet physical location of IIS root Pin
lovyou5217-May-06 2:57
lovyou5217-May-06 2:57 
AnswerRe: Get physical location of IIS root Pin
Colin Angus Mackay17-May-06 3:16
Colin Angus Mackay17-May-06 3:16 
GeneralRe: Get physical location of IIS root Pin
leppie17-May-06 19:38
leppie17-May-06 19:38 
GeneralRe: Get physical location of IIS root Pin
Colin Angus Mackay17-May-06 20:12
Colin Angus Mackay17-May-06 20:12 
QuestionTextbox not displaying Pin
Brendan Vogt17-May-06 2:54
Brendan Vogt17-May-06 2:54 
Hi,

I'm using ASP.NET and C#.NET 2. I have to dynamically display all hubs for a given hub group. A user selects the hub group from a drop down, and all the related hubs load, with a textbox next to it. The id of the textbox will depend on the id of the hub, so if the hub ID is 2, then it's corresponding textbox name will be txtHub2.

This my table where I have a label control. The label control will contain all the <tr></tr> and <td></td>.

<table border="1" cellpadding="0" cellspacing="0" width="100%">

<asp:Label id="lblHubCommissions" runat="server" />

</table>

In cboHubGroup_SelectedIndexChanged(object sender, EventArgs e) event handler I have the following:

string strHubs = string.Empty;

List<Hub> lstHubs = Hub.GetHubsByHubGroupID(Int32.Parse(cboHubGroup.SelectedValue));

foreach (Hub h in lstHubs)
{
strHubs = strHubs + "<tr>" +
"<td width=\"30%\">" + h.HubName + "</td>" +
"<td width=\"70%\">" + "<asp:TextBox id=\"txtHub" + h.HubID + "\" Columns=\"35\" MaxLength=\"50\" CssClass=\"InputText\" runat=\"server\" /><br />" + "</td>" +
"</tr>";
}

if (strHubs != string.Empty)
lblHubCommissions.Text = strHubs.Substring(0, strHubs.Length - 2);
else
lblHubCommissions.Text = "No available hubs.";

The textboxes don't wan't to display. But if I view the source then it is there. Why is this?

Regards,
ma se
(South Africa)
Questionhowto enable button2 if i click button1 ? Pin
cmpeng3417-May-06 1:08
cmpeng3417-May-06 1:08 
AnswerRe: howto enable button2 if i click button1 ? Pin
Naveed Kamboh17-May-06 1:28
Naveed Kamboh17-May-06 1:28 
AnswerRe: howto enable button2 if i click button1 ? Pin
User 665817-May-06 1:32
User 665817-May-06 1:32 
AnswerRe: howto enable button2 if i click button1 ? Pin
stancrm17-May-06 4:00
stancrm17-May-06 4:00 
QuestionDynamic Row Insert Pin
neerajsaini198217-May-06 0:55
neerajsaini198217-May-06 0:55 
AnswerRe: Dynamic Row Insert Pin
Jim Conigliaro17-May-06 1:13
Jim Conigliaro17-May-06 1:13 
QuestionFile as a hyperlink Pin
neerajsaini198217-May-06 0:52
neerajsaini198217-May-06 0:52 
QuestionData Base problem Pin
Ashraj198217-May-06 0:21
Ashraj198217-May-06 0:21 
AnswerRe: Data Base problem Pin
Naveed Kamboh17-May-06 1:30
Naveed Kamboh17-May-06 1:30 
GeneralRe: Data Base problem Pin
Ashraj198217-May-06 1:40
Ashraj198217-May-06 1:40 
AnswerRe: Data Base problem Pin
Saqib Mehmood17-May-06 18:36
Saqib Mehmood17-May-06 18:36 
Questionextracting frame from video files Pin
Raùl16-May-06 23:10
Raùl16-May-06 23:10 
AnswerRe: extracting frame from video files Pin
Robert Rohde16-May-06 23:44
Robert Rohde16-May-06 23:44 
QuestionHow can i add scroll bar to form Pin
cshivaprasad16-May-06 23:10
cshivaprasad16-May-06 23:10 
AnswerRe: How can i add scroll bar to form Pin
Stefan Troschuetz16-May-06 23:54
Stefan Troschuetz16-May-06 23:54 
Questionhowto do x wait 10 ms then do y wait 100 ms then do z ? Pin
cmpeng3416-May-06 22:56
cmpeng3416-May-06 22:56 
AnswerRe: howto do x wait 10 ms then do y wait 100 ms then do z ? Pin
Robert Rohde16-May-06 23:00
Robert Rohde16-May-06 23:00 

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.