Click here to Skip to main content
16,006,605 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: How to create Pop up Calendar ? Pin
Christian Graus9-Jul-07 11:17
protectorChristian Graus9-Jul-07 11:17 
AnswerRe: How to create Pop up Calendar ? Pin
jcdevnet9-Jul-07 11:42
jcdevnet9-Jul-07 11:42 
GeneralRe: How to create Pop up Calendar ? Pin
kidus19-Jul-07 12:11
kidus19-Jul-07 12:11 
GeneralRe: How to create Pop up Calendar ? Pin
Christian Graus9-Jul-07 15:17
protectorChristian Graus9-Jul-07 15:17 
AnswerRe: How to create Pop up Calendar ? Pin
Michael Sync9-Jul-07 15:43
Michael Sync9-Jul-07 15:43 
AnswerRe: How to create Pop up Calendar ? Pin
linpihong9-Jul-07 16:14
linpihong9-Jul-07 16:14 
QuestionAny recommend a book on IIS6.0 Administration? Pin
martin_hughes9-Jul-07 9:22
martin_hughes9-Jul-07 9:22 
AnswerRe: Any recommend a book on IIS6.0 Administration? Pin
Sathesh Sakthivel9-Jul-07 15:35
Sathesh Sakthivel9-Jul-07 15:35 
GeneralRe: Any recommend a book on IIS6.0 Administration? Pin
Sonia Gupta9-Jul-07 18:21
Sonia Gupta9-Jul-07 18:21 
GeneralRe: Any recommend a book on IIS6.0 Administration? Pin
martin_hughes9-Jul-07 22:11
martin_hughes9-Jul-07 22:11 
QuestionWizard Pin
Brendan Vogt9-Jul-07 6:37
Brendan Vogt9-Jul-07 6:37 
AnswerRe: Wizard Pin
Fred_Smith9-Jul-07 7:06
Fred_Smith9-Jul-07 7:06 
AnswerRe: Wizard Pin
Guffa9-Jul-07 7:53
Guffa9-Jul-07 7:53 
QuestionCustom Login and Membership classes Pin
Brendan Vogt9-Jul-07 5:24
Brendan Vogt9-Jul-07 5:24 
AnswerRe: Custom Login and Membership classes Pin
Not Active9-Jul-07 6:06
mentorNot Active9-Jul-07 6:06 
Questiongridview in asp.net 2.0. Pin
samerh9-Jul-07 5:10
samerh9-Jul-07 5:10 
AnswerRe: gridview in asp.net 2.0. Pin
Not Active9-Jul-07 5:23
mentorNot Active9-Jul-07 5:23 
GeneralRe: gridview in asp.net 2.0. Pin
samerh9-Jul-07 5:30
samerh9-Jul-07 5:30 
GeneralRe: gridview in asp.net 2.0. Pin
Not Active9-Jul-07 6:01
mentorNot Active9-Jul-07 6:01 
AnswerRe: gridview in asp.net 2.0. Pin
linpihong9-Jul-07 16:38
linpihong9-Jul-07 16:38 
GeneralRe: gridview in asp.net 2.0. Pin
samerh9-Jul-07 19:45
samerh9-Jul-07 19:45 
QuestionGenerate link buttons dynamically Pin
kjosh9-Jul-07 4:58
kjosh9-Jul-07 4:58 
Hi,

In my application I have one file upload control. When the user selectes a file to upload and when he clicks on Attach button I need to show him the file name of the file he selected to upload and also show the Remove link button after the file name. In this case I need to generate link button dynamically.

I wrote a code like the following:

protected void btnAttach_ServerClick(object sender, EventArgs e)

{

string strFileName = MyFile.PostedFile.FileName;

string c = System.IO.Path.GetFileName(strFileName);

listBoxAttachedFiles.Items.Add(c);

LinkButton b = new LinkButton();

b.Text = "Remove";

b.ID = "LB_" + b.Text;

b.Style.Add("display", "block");

listBoxLinks.Controls.Add(b);

//Panel1.Controls.Add(b);

}

With the above code it is showing only th file name in the listbox it is not showing the Remove button in the listboxlinks list box.

How to generate the link button and and write event when the remove is clicked i have to remove the corresponding file name from the other listbox.

Thanks in advance.

QuestionWeb Server for Multiple User Connections Pin
ollysmith9-Jul-07 4:53
ollysmith9-Jul-07 4:53 
AnswerRe: Web Server for Multiple User Connections Pin
Fred_Smith9-Jul-07 5:22
Fred_Smith9-Jul-07 5:22 
GeneralRe: Web Server for Multiple User Connections Pin
Not Active9-Jul-07 6:03
mentorNot Active9-Jul-07 6:03 

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.