Hi *.*,
To export data first it should be hold in a Dataset or Datatable or else where we can loop(Here i used a dataset).In this blog i'm posting some Asp.net,Sql Server,Jquery,HTML-5,sqlite,C#,JavaScript scripts and sample codes that i found and created by me or my friends with a mind that it Save/ Help our ass some ways...
Showing posts with label Extension. Show all posts
Showing posts with label Extension. Show all posts
Sunday, November 20, 2011
Friday, September 16, 2011
Binding or display image having zoom effect from folder
Hi *.*,
As a continuation of my previous post. Now i'm binding images from folder.
Code
private class ImageFileInfo
{
public string FileName { get; set; }
}
public void limage()
{
string imgFolder = HttpContext.Current.Request.PhysicalApplicationPath + @"img\";
string[] fileEntries = Directory.GetFiles(imgFolder);
List<ImageFileInfo> mylist = new List<ImageFileInfo>();
foreach (string fName in fileEntries)
{
string d = System.IO.Path.GetFileName(fName);
mylist.Add(new ImageFileInfo { FileName = d });
}
dtagrid.DataSource = mylist;
dtagrid.DataBind();
}
On HTML
<asp:DataList ID="dtagrid" runat="server" RepeatColumns="5" RepeatDirection="Horizontal">
<ItemTemplate>
<li><a href='img/<%# Eval("FileName") %>'>
<img src='img/<%# Eval("FileName") %>' alt="" /></a></li>
</ItemTemplate>
</asp:DataList>
Stay Tune...
Have a nice day... 'N happy Coding :)
Monday, August 15, 2011
Addons to visual studio 2010
Hi,
Last day i visited msdn.microsoft.com then i can to know the release of few nice addons for visual studio 2010
Here it goes check out
- http://visualstudiogallery.msdn.microsoft.com/a56eddd3-d79b-48ac-8c8f-2db06ade77c3
- http://visualstudiogallery.msdn.microsoft.com/a15c3ce9-f58f-42b7-8668-53f6cdc2cd83
- http://visualstudiogallery.msdn.microsoft.com/f3d1ae09-1f94-4bcf-bcdd-81388882ca04
- http://visualstudiogallery.msdn.microsoft.com/d0d33361-18e2-46c0-8ff2-4adea1e34fef?SRC=Home
- http://visualstudiogallery.msdn.microsoft.com/25622469-19d8-4959-8e5c-4025d1c9183d
- http://visualstudiogallery.msdn.microsoft.com/d491911d-97f3-4cf6-87b0-6a2882120acf?SRC=Home
- http://visualstudiogallery.msdn.microsoft.com/27077b70-9dad-4c64-adcf-c7cf6bc9970c?SRC=Home
Stay Tune...
Have a nice day... 'N happy Coding :)
Friday, May 6, 2011
Getting File type or Getting file extension
Getting File type or Getting file extension is done by some many ways a few is listed here ::-
- string fileExtension = System.IO.Path.GetExtension(@"C:\MyFolder\MyFile.jpg")
- System.IO.FileInfo f = new System.IO.FileInfo(Server.MapPath("~/MyFolder/MyFile.jpg"));string extension = f.Extension;
Over here i prefer the second method.
Stay tune...
Have a nice day... 'N happy Coding :)
Subscribe to:
Posts (Atom)