Click here to Skip to main content
15,844,009 members
Home / Discussions / C#
   

C#

 
AnswerRe: Registry Editor Pin
Shajeel3-May-07 21:29
Shajeel3-May-07 21:29 
QuestionIndexers in c# Pin
Raheem MA3-May-07 19:43
Raheem MA3-May-07 19:43 
AnswerRe: Indexers in c# Pin
Sandeep Akhare3-May-07 21:07
Sandeep Akhare3-May-07 21:07 
Questionregarding listbox C# Pin
giribabu2343-May-07 19:42
giribabu2343-May-07 19:42 
AnswerRe: regarding listbox C# Pin
Sandeep Akhare3-May-07 21:02
Sandeep Akhare3-May-07 21:02 
QuestionDisplay a web control Link button in a html tag Pin
minlynn3-May-07 17:52
minlynn3-May-07 17:52 
AnswerRe: Display a web control Link button in a html tag Pin
Sandeep Akhare3-May-07 21:11
Sandeep Akhare3-May-07 21:11 
GeneralRe: Display a web control Link button in a html tag Pin
minlynn6-May-07 19:27
minlynn6-May-07 19:27 
please take a look at the below link:

http://i169.photobucket.com/albums/u228/hazel_nut_622/webpart.jpg


i need to add the button dynamically beside each of the file name, for example a check out button beside "New Text Document.txt"

what you see in this link are all generated at a go, for a web control button it will be displayed outside of this whole part.

More source code;

SPFileCollection files = folder.Files;
foreach (SPFile file in files)
{
LinkButton lbtn = new LinkButton();
lbtn.ID = file.ServerRelativeUrl;
lbtn.Text = "Check Out";
lbtn.Command += new CommandEventHandler(testButtonClick);
lbtn.CommandName = file.Name;
lbtn.CommandArgument = file.ServerRelativeUrl;

string curFile = "<A HREF='" +
SPEncode.HtmlEncode(file.ServerRelativeUrl) + "'>" +
SPEncode.HtmlEncode(file.Name) + "</A>";


s += "<div id=x_" + i + "_" + j +
" style='margin-top:2;margin-right:" + Indent + ";margin-left:" + Indent + "' " + " onclick='showHide(window.event," + j + ");'";

s += " style='display:none'>&nbsp;&nbsp;&nbsp;";

s += "<font color=" + othersColor + " face=Wingdings>" + "</font> " + lbtn + "&nbsp" +curFile;

s += "</div>";

}

really need some help!
thanks alot in advance.


minlynn
QuestionSorting a collection of classes [modified] Pin
hpjchobbes3-May-07 17:34
hpjchobbes3-May-07 17:34 
AnswerRe: Sorting a collection of classes Pin
Stefan Troschuetz3-May-07 22:07
Stefan Troschuetz3-May-07 22:07 
AnswerRe: Sorting a collection of classes Pin
Jon Hulatt3-May-07 22:11
Jon Hulatt3-May-07 22:11 
AnswerRe: Sorting a collection of classes Pin
AFSEKI7-May-07 5:01
AFSEKI7-May-07 5:01 
QuestionC#, DWM, and Window Image Capture (Vista) Pin
surrealmadrid3-May-07 13:22
surrealmadrid3-May-07 13:22 
Questionimage to string and backwords.. Pin
Seishin#3-May-07 12:33
Seishin#3-May-07 12:33 
AnswerRe: image to string and backwords.. Pin
Luc Pattyn3-May-07 12:47
sitebuilderLuc Pattyn3-May-07 12:47 
GeneralRe: image to string and backwords.. Pin
Seishin#3-May-07 20:13
Seishin#3-May-07 20:13 
AnswerRe: image to string and backwords.. Pin
Stefan Prodan3-May-07 13:30
Stefan Prodan3-May-07 13:30 
GeneralRe: image to string and backwords.. Pin
Seishin#3-May-07 20:14
Seishin#3-May-07 20:14 
GeneralRe: image to string and backwords.. Pin
Stefan Prodan4-May-07 1:42
Stefan Prodan4-May-07 1:42 
AnswerRe: image to string and backwords.. Pin
AFSEKI7-May-07 5:08
AFSEKI7-May-07 5:08 
QuestionSuggestion for C# compatible language Pin
bfoo753-May-07 10:45
bfoo753-May-07 10:45 
AnswerRe: Suggestion for C# compatible language Pin
pbraun3-May-07 11:54
pbraun3-May-07 11:54 
AnswerRe: Suggestion for C# compatible language Pin
PIEBALDconsult3-May-07 12:51
mvePIEBALDconsult3-May-07 12:51 
GeneralRe: Suggestion for C# compatible language Pin
J4amieC3-May-07 23:02
J4amieC3-May-07 23:02 
AnswerRe: Suggestion for C# compatible language Pin
Stefan Prodan3-May-07 12:52
Stefan Prodan3-May-07 12:52 

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.