Click here to Skip to main content
15,887,267 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: FormView ItemCreated problem Pin
AmirAlilou3-May-08 20:07
AmirAlilou3-May-08 20:07 
GeneralRe: FormView ItemCreated problem Pin
AmirAlilou4-May-08 18:35
AmirAlilou4-May-08 18:35 
GeneralRe: FormView ItemCreated problem Pin
AmirAlilou3-May-08 21:16
AmirAlilou3-May-08 21:16 
GeneralRe: FormView ItemCreated problem Pin
Christian Graus4-May-08 11:36
protectorChristian Graus4-May-08 11:36 
QuestionAJAX Control Toolkit - Accordion Pin
Yaniv___3-May-08 3:46
Yaniv___3-May-08 3:46 
AnswerRe: AJAX Control Toolkit - Accordion Pin
Sam Xavier8-May-08 19:42
Sam Xavier8-May-08 19:42 
AnswerRe: AJAX Control Toolkit - Accordion Pin
Bit-Smacker4-Jun-08 6:48
Bit-Smacker4-Jun-08 6:48 
QuestionForm view in Asp.Net Pin
kumarrpt3-May-08 1:34
kumarrpt3-May-08 1:34 
Hi i am using form view in ASP.net
when i bind using dataTable it displays only the first item and the remaining items does not appears.
Please help me what's wrong in this code which is written in button click event......
button_click()
{
ArrayList fileList = new ArrayList();
string strDirPath = Path.GetDirectoryName(Server.MapPath("./serverfiles/"));
String[] files = Directory.GetFiles(strDirPath);
DataTable dt = new DataTable();
DataRow dr;
dt.Columns.Add("File_List", typeof(string));
foreach (string str in files)
{
dr = dt.NewRow();
fileList.Add(Path.GetFileName(str).ToString());
dr[0] = Path.GetFileName(str).ToString();
dt.Rows.Add(dr);
}
FormView1.DataSource = new DataView(dt);
FormView1.DataBind();

}


For Form View
---------------
<HeaderTemplate>
<table border = "5" width="400">
<tr bgcolor ="#10cccc">
<td>
<b>File Name</b>
</td>
<td>
<b>To View</b>
</td>
<td>
<b>To Cancel</b>
</td></tr>
</HeaderTemplate>

<ItemTemplate>
<tr bgcolor = "#ffcccc">

<td><asp:Label ID = "lblFilelist" runat ="server" text=' <% # Bind("File_List") %>'>
</asp:Label></td>

<td><asp:Button ID="btnDownload" Text="Download" CommandName="Download" RunAt="server"/></td>

<td><asp:Button ID="btnDelete" Text="Delete" CommandName="Delete" RunAt="server"/></td>
</tr>
</ItemTemplate>
<FooterTemplate>
</table>
</FooterTemplate>
AnswerRe: Form view in Asp.Net Pin
Christian Graus3-May-08 1:37
protectorChristian Graus3-May-08 1:37 
Questionrelationship in sql??? Pin
mr.mohsen3-May-08 1:02
mr.mohsen3-May-08 1:02 
AnswerRe: relationship in sql??? Pin
Christian Graus3-May-08 1:05
protectorChristian Graus3-May-08 1:05 
GeneralRe: relationship in sql??? Pin
Hesham Amin3-May-08 10:20
Hesham Amin3-May-08 10:20 
GeneralPassword Hashing Pin
Brady Kelly3-May-08 0:37
Brady Kelly3-May-08 0:37 
GeneralRe: Password Hashing Pin
Christian Graus3-May-08 1:16
protectorChristian Graus3-May-08 1:16 
GeneralRe: Password Hashing Pin
Brady Kelly3-May-08 2:12
Brady Kelly3-May-08 2:12 
Questionpdf file and exe Pin
bigphish3-May-08 0:15
bigphish3-May-08 0:15 
AnswerRe: pdf file and exe Pin
Christian Graus3-May-08 1:06
protectorChristian Graus3-May-08 1:06 
GeneralRe: pdf file and exe Pin
bigphish3-May-08 1:20
bigphish3-May-08 1:20 
GeneralRe: pdf file and exe Pin
Christian Graus3-May-08 1:32
protectorChristian Graus3-May-08 1:32 
GeneralRe: pdf file and exe Pin
bigphish3-May-08 2:19
bigphish3-May-08 2:19 
GeneralRe: pdf file and exe Pin
Zoltan Balazs3-May-08 12:35
Zoltan Balazs3-May-08 12:35 
QuestionSSL Problem Pin
sabby20062-May-08 20:01
sabby20062-May-08 20:01 
Questionpopup script Pin
rajkumar.32-May-08 19:07
rajkumar.32-May-08 19:07 
AnswerRe: popup script Pin
Abhijit Jana2-May-08 21:28
professionalAbhijit Jana2-May-08 21:28 
GeneralRe: popup script Pin
rajkumar.32-May-08 21:36
rajkumar.32-May-08 21:36 

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.