Click here to Skip to main content
15,867,704 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: how can i convert date into format '2007-10-25T11:47:10.515625+05:30' Pin
N a v a n e e t h12-Nov-07 18:29
N a v a n e e t h12-Nov-07 18:29 
AnswerRe: how can i convert date into format '2007-10-25T11:47:10.515625+05:30' Pin
Jon Sagara12-Nov-07 18:35
Jon Sagara12-Nov-07 18:35 
GeneralRe: how can i convert date into format '2007-10-25T11:47:10.515625+05:30' Pin
Vishnu Narayan Mishra12-Nov-07 20:19
Vishnu Narayan Mishra12-Nov-07 20:19 
QuestionInvalid column name Pin
Milind Panchal12-Nov-07 17:44
Milind Panchal12-Nov-07 17:44 
AnswerRe: Invalid column name Pin
Christian Graus12-Nov-07 17:47
protectorChristian Graus12-Nov-07 17:47 
AnswerInvalid column name Pin
Sarani Ravindran12-Nov-07 17:49
Sarani Ravindran12-Nov-07 17:49 
AnswerRe: Display The Tag value in a textbox Pin
Christian Graus12-Nov-07 17:48
protectorChristian Graus12-Nov-07 17:48 
QuestionProblems viewing filelist from folder in a gridview Pin
dreamcaster-dk12-Nov-07 10:40
dreamcaster-dk12-Nov-07 10:40 
Hi guys Big Grin | :-D

I found this example - where the files from a folder is listed within a Gridview. I have never seen this before - and to get it up running would really be usefull to many.


It runs fine on the localhost - but when it´s launched to a server it fails to list any files.

The error from the label is as:

The example is from: http://www.rekenwonder.com/aspnet/foldercontentsdatasource.html[^]

------------------------------------------------------------------
cs: WORKS FINE
------------------------------------------------------------------

protected void FolderContentsDataSource1_Selected(object sender, rw.FolderContentsDataSourceStatusEventArgs e)
{
if ((e.Exception != null))
{
lblError.Text = e.Exception.Message;
e.ExceptionHandled = true;
}
}

protected void gvFile_RowDeleted(object sender, System.Web.UI.WebControls.GridViewDeletedEventArgs e)
{
if ((e.Exception != null))
{
lblError.Text = e.Exception.Message;
e.ExceptionHandled = true;
}
}

protected void gvFile_RowUpdated(object sender, System.Web.UI.WebControls.GridViewUpdatedEventArgs e)
{
if ((e.Exception != null))
{
lblError.Text = e.Exception.Message;
e.ExceptionHandled = true;
}
}
------------------------------------------------------------------
ASP.NET *****Failure marked with stars*****
------------------------------------------------------------------
<asp:textbox id="tbFolder" runat="server" *******text="/Files" *******="" visible="false">
<asp:button id="btnShow" runat="server" text="Show contents" causesvalidation="false">


<asp:gridview id="GridView2" runat="server" datasourceid="FolderContentsDataSource1" autogeneratecolumns="False" allowpaging="True"
="" allowsorting="True" onrowdeleted="gvFile_RowDeleted" onrowupdated="gvFile_RowUpdated" backcolor="White" bordercolor="#999999" borderstyle="None" cellpadding="3" gridlines="Vertical" width="400px">
<headerstyle cssclass="headerstyle" backcolor="#000084" font-bold="True" forecolor="White">
<alternatingrowstyle cssclass="altstyle" backcolor="#DCDCDC">
<rowstyle cssclass="itemstyle" backcolor="#EEEEEE" forecolor="Black">
<columns>
<asp:boundfield datafield="Name" headertext="Filnavn" sortexpression="Name">
<asp:boundfield datafield="Size" headertext="Størrelse" sortexpression="Size" readonly="True">
<itemstyle horizontalalign="Right">

<asp:boundfield datafield="Created" headertext="Uploadet" sortexpression="Created"
="" readonly="True">
<asp:templatefield>
<itemtemplate>
  
<asp:linkbutton id="btnRename" runat="server" commandname="Edit" causesvalidation="false"
="" commandargument="<%# Container.DataItemIndex %>" text="Rename" tooltip="Skift filnavnet">
<asp:linkbutton id="btnDelete" runat="server" commandname="Delete" causesvalidation="false"
="" commandargument="<%# Container.DataItemIndex %>" text="delete" onclientclick="return confirm('Er du sikker på at du vil slette filen?');">

<edititemtemplate>
  
<asp:linkbutton id="btnUpdate" runat="server" commandname="Update" text="update"
="" commandargument="<%# Container.DataItemIndex %>"> 
<asp:linkbutton id="btnCancel" runat="server" commandname="Cancel" causesvalidation="false"
="" text="cancel">

<itemstyle horizontalalign="Center">


<footerstyle backcolor="#CCCCCC" forecolor="Black">
<selectedrowstyle backcolor="#008A8C" font-bold="True" forecolor="White">
<pagerstyle backcolor="#999999" forecolor="Black" horizontalalign="Center">

<cc1:foldercontentsdatasource id="FolderContentsDataSource1" runat="server" onselected="FolderContentsDataSource1_Selected">
<selectparameters>
<asp:controlparameter name="Directory" type="String" controlid="tbFolder" propertyname="Text">


<asp:label id="lblError" runat="server" enableviewstate="False" forecolor="Red">
AnswerRe: Problems viewing filelist from folder in a gridview Pin
Michael Sync12-Nov-07 14:38
Michael Sync12-Nov-07 14:38 
QuestionData list Pin
merwa12-Nov-07 5:51
merwa12-Nov-07 5:51 
QuestionLinking a document (not residing in web directory) to hyperlink Pin
Pankaj Chamria12-Nov-07 5:20
Pankaj Chamria12-Nov-07 5:20 
AnswerRe: Linking a document (not residing in web directory) to hyperlink Pin
Michael Sync12-Nov-07 7:14
Michael Sync12-Nov-07 7:14 
GeneralRe: Linking a document (not residing in web directory) to hyperlink Pin
Pankaj Chamria12-Nov-07 21:24
Pankaj Chamria12-Nov-07 21:24 
QuestionNested user controls Pin
dabs12-Nov-07 4:45
dabs12-Nov-07 4:45 
AnswerRe: Nested user controls Pin
InsDev12-Nov-07 19:22
InsDev12-Nov-07 19:22 
QuestionNot able to create master page Pin
Poonam Gandash12-Nov-07 4:02
Poonam Gandash12-Nov-07 4:02 
AnswerRe: Not able to create master page Pin
dabs12-Nov-07 4:32
dabs12-Nov-07 4:32 
GeneralRe: Not able to create master page Pin
Poonam Gandash12-Nov-07 17:45
Poonam Gandash12-Nov-07 17:45 
GeneralRe: Not able to create master page Pin
Anurag Gandhi12-Nov-07 18:23
professionalAnurag Gandhi12-Nov-07 18:23 
QuestionBrowser detection Pin
kibromg12-Nov-07 2:18
kibromg12-Nov-07 2:18 
AnswerRe: Browser detection Pin
John-ph12-Nov-07 2:30
John-ph12-Nov-07 2:30 
AnswerRe: Browser detection Pin
Phil Osborne12-Nov-07 2:38
Phil Osborne12-Nov-07 2:38 
GeneralRe: Browser detection Pin
kibromg12-Nov-07 2:46
kibromg12-Nov-07 2:46 
GeneralRe: Browser detection Pin
Pete O'Hanlon12-Nov-07 2:54
subeditorPete O'Hanlon12-Nov-07 2:54 
GeneralRe: Browser detection Pin
Michael Sync12-Nov-07 14:35
Michael Sync12-Nov-07 14:35 

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.