Click here to Skip to main content
15,890,123 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionHow to import a value which starts from 0 to a XL sheet Pin
raghvendrapanda10-Feb-09 21:18
raghvendrapanda10-Feb-09 21:18 
Question[Message Deleted] Pin
anujbanka178410-Feb-09 21:05
anujbanka178410-Feb-09 21:05 
AnswerRe: login..... Pin
N a v a n e e t h10-Feb-09 22:21
N a v a n e e t h10-Feb-09 22:21 
General[Message Deleted] Pin
anujbanka178410-Feb-09 22:29
anujbanka178410-Feb-09 22:29 
GeneralRe: login..... Pin
J4amieC10-Feb-09 22:41
J4amieC10-Feb-09 22:41 
GeneralRe: login..... Pin
anujbanka178410-Feb-09 23:13
anujbanka178410-Feb-09 23:13 
GeneralRe: login..... Pin
Shyam Bharath11-Feb-09 0:05
Shyam Bharath11-Feb-09 0:05 
QuestionError In Opening Files From DataGrid. Pin
aashish.saalvi10-Feb-09 21:00
aashish.saalvi10-Feb-09 21:00 
Hi!! I have Binded list of files from a directory into datagrid. i have also added an hyperlink to the datagrid so that the particular file will open after clicking it. But when i do so i get an error message as follows..

The resource cannot be found.
Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly.

Requested URL: /TestMain/Needle brg and oil seal pressing.pdf

THE PAGE_LOAD CODE IS
protected void Page_Load(object sender, EventArgs e)
{
try
{
//String[] f = Directory.GetFiles("c:/gearfactory");
dir = new DirectoryInfo(Server.MapPath("~/gearfactory"));
articleList.DataSource = dir.GetFiles("*.pdf");
//articleList.DataSource = f;
articleList.DataBind();
}
catch (Exception ex)
{
Response.Write("Error :-" + ex);
}

}

THE DATAGRID SOURCE CODE IS
<asp:HyperLinkColumn DataNavigateUrlField="Name" DataTextField="Name"
HeaderText="File Name" />
<asp:BoundColumn DataField="LastWriteTime" HeaderText="Last Write Time"
ItemStyle-HorizontalAlign="Center" DataFormatString="{0Big Grin | :-D }" />
<asp:BoundColumn DataField="Length" HeaderText="File Size"
ItemStyle-HorizontalAlign="Right"
DataFormatString="{0:#,### bytes}" />
</Columns>
</asp:DataGrid>

Can some one help me with this. Thank you in advance.

Ashish.
QuestionGenerate Spam keywords Pin
Guvera10-Feb-09 20:00
Guvera10-Feb-09 20:00 
AnswerRe: Generate Spam keywords Pin
Abhijit Jana10-Feb-09 20:12
professionalAbhijit Jana10-Feb-09 20:12 
QuestionWhat is BizTalkServer Pin
Glossy10-Feb-09 19:51
Glossy10-Feb-09 19:51 
AnswerRe: What is BizTalkServer Pin
Abhijit Jana10-Feb-09 20:03
professionalAbhijit Jana10-Feb-09 20:03 
QuestionGet controlid Pin
SreejithAchutan10-Feb-09 19:13
SreejithAchutan10-Feb-09 19:13 
AnswerRe: Get controlid Pin
Christian Graus10-Feb-09 19:22
protectorChristian Graus10-Feb-09 19:22 
GeneralRe: Get controlid Pin
SreejithAchutan10-Feb-09 19:40
SreejithAchutan10-Feb-09 19:40 
GeneralRe: Get controlid Pin
mr_muskurahat10-Feb-09 21:19
mr_muskurahat10-Feb-09 21:19 
QuestionException In Hashtable with arrayList. Pin
r aa j10-Feb-09 18:23
r aa j10-Feb-09 18:23 
AnswerRe: Exception In Hashtable with arrayList. Pin
Christian Graus10-Feb-09 18:40
protectorChristian Graus10-Feb-09 18:40 
AnswerRe: Exception In Hashtable with arrayList. Pin
Guffa10-Feb-09 19:43
Guffa10-Feb-09 19:43 
QuestionRetreiving data from view fastly Pin
Member 398938610-Feb-09 18:11
Member 398938610-Feb-09 18:11 
AnswerRe: Retreiving data from view fastly Pin
Christian Graus10-Feb-09 18:39
protectorChristian Graus10-Feb-09 18:39 
GeneralRe: Retreiving data from view fastly Pin
Member 398938610-Feb-09 19:03
Member 398938610-Feb-09 19:03 
GeneralRe: Retreiving data from view fastly Pin
Christian Graus10-Feb-09 19:22
protectorChristian Graus10-Feb-09 19:22 
GeneralRe: Retreiving data from view fastly Pin
Member 398938610-Feb-09 21:56
Member 398938610-Feb-09 21:56 
QuestionScroll bar in datepicker Pin
priyagee10-Feb-09 18:06
priyagee10-Feb-09 18:06 

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.