Data Controls :: Create A Picture Album Gallery Using GridView
Apr 14, 2014
I have year wise Photo now i want insert the photo by year and month and date wise after i want the main page shown the year when i click the year it will be shown the month and i will click the month it will open by date after the photos will be shown .
View 1 Replies
Similar Messages:
Jun 1, 2010
I'm trying to create an album gallery, which works this way:First, i have the album photos with description on each album under the photo, with a pager. ( that was done)Second, when you click on a certain album, you see all photos related to this album only. I am using ACCESS DB. i just cant figure it out how to connect those data correctly, and how clicking an album will take me to the photos related only to it.
View 5 Replies
Oct 26, 2013
I want to create Image Gallery as like facebook having different category of album photos. Like if anybody given the album name xyz so after clicking on xyz or on the image of xyz the images inside that should be opened. In this way i want to create Image gallery using albums.
View 1 Replies
May 16, 2012
I want to develop a image gallery for each album.then if i add one image description also added with image .
View 1 Replies
Jan 3, 2013
I have used downloaded code of (Import Facebook Album Photos and display as Image Gallery in ASP.Net) but it could not work for me .
In the code there is used query string for code so i want to know from where the code value comes and for what purpose we r using this.
protected void Page_Load(object sender, EventArgs e)
View 1 Replies
Aug 17, 2010
how to create image gallery? (load images from sql server)
i'm created that use asp:table control
View 4 Replies
Dec 7, 2010
i have a gridview with a upload control in edit template. and a image control in item template bound to page that gets the new uploaded picture.the trouble is it does not return a picture no matter what i try??
View 2 Replies
Jul 20, 2010
I had a problem before with GridView displaying picture and it was solve as post [URL] shows. I am trying to apply the same coding to another GridView with a different configuration and I am having a hard time making the adaptation. May someone take a look at it. What I am trying to add to this GridView is code as:
DataImageUrlFormatStringl='<%# IIF(System.IO.File.Exists(Server.MapPath(string.Format("~/UploadedImagesClassifieds/{0}{1}", Eval("AutoNumber"), "Pic1.jpg"))), string.Format("~/UploadedImagesClassifieds/{0}{1}", Eval("AutoNumber"), "Pic1.jpg"), "~/UploadedImagesClassifieds/NoPicture.gif")
%>'
And the GridView code is the following at the present time:
<
asp:GridView
ID="ClassifiedsDisplayGridView"
runat="server"
DataSourceID="srcClassifieds"
AutoGenerateColumns="False"
CellPadding="4"
ForeColor="#333333"
AllowPaging="True"
PageSize="100"
EnableSortingAndPagingCallbacks="true"
>
<Columns>
<asp:ImageField
DataImageUrlField="AutoNumber"
DataImageUrlFormatString="~/UploadedImagesClassifieds/{0}Pic1.jpg"
HeaderText="Picture"
ReadOnly="True"
>
<ControlStyle
Height="50px"
/>
</asp:ImageField>
<asp:BoundField
DataField="Category"
HeaderText="Category"
/>
<asp:HyperLinkField
DataNavigateUrlFields="AutoNumber"
DataNavigateUrlFormatString="~/Classifieds/DetailPage.aspx?AutoNumber={0}&FlagForm=NoSubmitted"
DataTextField="ItemTitle"
HeaderText="Listing
Title" />
<custom:LongTextField
DataField="ListingComment"
Width="400px"
Height="75px"
HeaderText="Listing
Comment" HtmlEncode="false"
/>
<asp:BoundField
DataField="EnterDate"
HeaderText="Listed
on" SortExpression="EnterDate"
/>
<Columns>
<FooterStyle
BackColor="#00693E"
Font-Bold="True"
ForeColor="White"
/>
<RowStyle
BackColor="#FFFBD6"
ForeColor="#333333"
/>
<PagerStyle
BackColor="White"
ForeColor="#333333"
HorizontalAlign="Center"
/>
SelectedRowStyle
BackColor="#FFCC66"
Font-Bold="True"
ForeColor="Navy"
/>
<HeaderStyle
BackColor="#00693E"
Font-Bold="True"
ForeColor="White"
/>
<AlternatingRowStyle
BackColor="White"
/>
<PagerSettings
Mode="NextPreviousFirstLast"
Position="TopAndBottom"
/>
</asp:GridView>
<asp:ObjectDataSource
ID="srcClassifieds"
TypeName="SearchUtility"
SelectMethod="GetClassifiedsSimpleSearch"
runat="server"
OnSelected="srcClassifieds_Selected"
EnableViewState="False">
<SelectParameters>
<asp:QueryStringParameter
Name="Category"
QueryStringField="Category"
Type="String"
/>
<asp:QueryStringParameter
Name="Activity"
QueryStringField="Activity"
Type="String"
/>
<asp:QueryStringParameter
Name="KindOfSearch"
QueryStringField="KindOfSearch"
Type="String"
/>
<asp:CookieParameter
CookieName="Country"
Name="Country"
Type="String"
/>
<asp:CookieParameter
CookieName="CityTown"
Name="CityTown"
Type="String"
/>
<asp:SessionParameter
Name="State"
SessionField="State"
/>
<asp:Parameter
Direction="Output"
Name="SelectRows"
Type="Int64"
/>
</SelectParameters>
</asp:ObjectDataSource>
View 4 Replies
Aug 24, 2010
I do a gridview code that when displaying the information that come from the database is not showing any error at all, but is not displaying the right picture. The problem, I think, is that the (Eval("....") is not reading the values that are coming from the DataKeysNames. Due to this the right pictures are not displayed. But in another column, just for testing purposes I was able to display the values from DataKeysNames with the Eval. So I do not know what is going on and to make worse browser is not giving me any error. So, this is the line that is not processing, reading or executing well:
ImageUrl='<%# IIF( (Eval("TUDTIWasItemUpgraded")) = "Yes", string.Format("~/Images/ItemUpgradedTo.gif"), string.Format("~/Images/ItemNoUpgradedYet.gif") ) %>'
And this is the complete code for the GridView
<
asp:Panel
ID="DownlineUDTIGameClassifiedsViewPanel"
runat="server"
>
<asp:GridView
ID="DownlineUDTIGameClassifiedsViewGridView"
runat="server"
AutoGenerateColumns="False"
DataKeyNames="AutoNumber,TUDTIWasItemUpgraded"
DataSourceID="DownlineUDTIGameClassifiedsViewSqlDataSource"
CellPadding="4"
ForeColor="#333333"
AllowPaging="True"
PageSize="100"
OnDataBound="DownlineUDTIGameClassifiedsViewGridView_DataBound">
<FooterStyle
BackColor="#00693E"
Font-Bold="True"
ForeColor="White"
/>
<RowStyle
BackColor="#FFFBD6"
ForeColor="#333333"
/>
<PagerStyle
BackColor="White"
ForeColor="#333333"
HorizontalAlign="Center"
/>
<SelectedRowStyle
BackColor="#FFCC66"
Font-Bold="True"
ForeColor="Navy"
/>
<HeaderStyle
BackColor="#00693E"
Font-Bold="True"
ForeColor="White"
/>
<AlternatingRowStyle
BackColor="White"
/>
<PagerSettings
Mode="NextPreviousFirstLast"
Position="TopAndBottom"
/>
<Columns>
<asp:BoundField
ItemStyle-HorizontalAlign=Center
DataField="TUDTIGenerationNumber"
HeaderText="Generation"
SortExpression="TUDTIGenerationNumber"
/>
<asp:BoundField
DataField="TEnterDate"
HeaderText="Enter Date"
SortExpression="TEnterDate"
/>
<asp:BoundField
DataField="TItemTitle"
HeaderText="Listing Title"
SortExpression="TItemTitle"
/>
<custom:LongTextField
DataField="TListingComment"
Width="400px"
Height="75px"
HeaderText="Listing Comment"
HtmlEncode="false"
/>
<asp:TemplateField
HeaderText="Picture">
<ItemTemplate>
<asp:ImageButton
ID="ThumbNailImageButton"
runat="server"
Width="75px"
PostBackUrl='<%# string.Concat("~/Classifieds/DetailPage.aspx?AutoNumber=",Convert.ToString(Eval("AutoNumber")),"&FlagForm=NoSubmitted")
%>'
ImageUrl='<%# IIF(System.IO.File.Exists(Server.MapPath(string.Format("~/UploadedImagesClassifieds/{0}{1}",
Eval("AutoNumber"), "Pic1.jpg"))), string.Format("~/UploadedImagesClassifieds/{0}{1}", Eval("AutoNumber"), "Pic1.jpg"), "~/UploadedImagesClassifieds/NoPicture.gif") %>'
/>
</ItemTemplate>
<ItemStyle
HorizontalAlign="Center"
/>
</asp:TemplateField>
<asp:TemplateField
HeaderText="Item Upgraded To">
<ItemTemplate>
<asp:Image
ID="XItemUpgradedToPicture"
ImageUrl='<%# IIF( (Eval("TUDTIWasItemUpgraded")) = "Yes", string.Format("~/Images/ItemUpgradedTo.gif"),
string.Format("~/Images/ItemNoUpgradedYet.gif") ) %>'
runat="server"
Width="150px"/>
</ItemTemplate>
<ItemStyle
HorizontalAlign="Center"
/>
</asp:TemplateField>
<asp:TemplateField
HeaderText="Testing">
<ItemTemplate>
<asp:Label
ID="Label1"
runat="server"
Text='<%# Eval("TUDTIWasItemUpgraded") %>'
>
</asp:Label>
</ItemTemplate>
<ItemStyle
HorizontalAlign="Center"
/>
</asp:TemplateField>
<asp:TemplateField
HeaderText="Item Upgraded To">
<ItemTemplate>
<asp:Image
ID="ItemUpgradedToPicture"
ImageUrl="~/Images/ItemUpgradedTo.gif"
runat="server"
Width="150px"/>
</ItemTemplate>
<ItemStyle
HorizontalAlign="Center"
/>
</asp:TemplateField>
</Columns>
</asp:GridView>
View 3 Replies
Nov 22, 2010
Dear all; I have a gridview as follows below
ID ZONE
A AFRICA
B NORTH AMERICA
now, i would like to add a little picture icon on the leftmost side of the gridview, that would allow a user to click on it...which will indirectly bring up a pop-up screen. In the pop-screen, i would like to add a textbox and a button to it, in which the user will be able to use to make an update to a field ID in the gridview.
View 24 Replies
Jul 15, 2010
I am using VWD 2005 Express and Visual Basic.When my SQLDataSource feed my GridView, it does get the AutoNumber (GUID) of each record as well, to use it as a name for stored pictures. Pictures are not in the database but in a folder. Since I have several pictures, I do manipulate this ID with code and I add to it, pic1, pic2, etc and that is the final name for each picture, for each particular record. Example: The ID for one record in the database may be, 45623sdgd. If I have four pictures for this particular database record, the names will be, 45623sdgdPic1, 45623sdgdPic2, 45623sdgdPic3, and so on after Pic is added. After this I save these pictures in a folder.
Now, when I display the record information with a GridView, I get the AutoNumber of each record using: DataKeyNames="AutoNumber". I want to display a thumbnail picture link as well. But I really do not have many options in term of what control to use for the thumbnail inside the GridView. I tried the following controls unsuscesfully. HyperLinkField, can not add a picture to this one. ImageField, can not add a link to this one. ButtonField does not have a DataImageUrlField="AutoNumber" to get the AutoNumber. So since to be that my only opton is the asp:TemplateField. But it is giving me error with the coding. This is my coding,
Code:
<asp:GridView
ID="PublicClassifiedsSamplesGridView"
runat="server"[code].....
View 3 Replies
Feb 10, 2011
I want to create a photo album in my website like the following link
[URL]
View 3 Replies
Jul 19, 2010
I do have the following code for for a GridViewd that display pictures that are stored in a file. I am using AutoNumber(GUID) from the database to name the pictures before I stored them to the file. I can save up to 4 pictures using the same AutoNumber but adding these ending to it, Pic1, Pic2, Pic3 ,,,,etc.
The problem that I am having is that after I get the AutoNumber from the database, I want to display a standard picture on the GridView field if there is not particular picture associiated to this record in file. The name of the standard picture is located in the same file under the name of NoPicture.gif. How can I do this? So far this is my GridView code and it is working fine:
<
asp:GridView
ID="PublicClassifiedsSamplesGridView"
runat="server"
AutoGenerateColumns="False"
DataKeyNames="AutoNumber"
DataSourceID="PublicClassifiedsSamplesSqlDataSource"
CellPadding="4"
ForeColor="#333333"
OnDataBound="PublicClassifiedsSamplesGridView_DataBound"
>
<Columns>
<asp:TemplateField
HeaderText="Click for information">
<ItemTemplate>
<asp:ImageButton
ID="ThumbNailImageButton"
runat="server" Width="100px"
PostBackUrl='<%# string.Concat("~/Classifieds/DetailPage.aspx?AutoNumber=",Convert.ToString(Eval("AutoNumber")),"&FlagForm=NoSubmitted")
%>'
ImageUrl='<%# string.Concat("~/UploadedImagesClassifieds/",Convert.ToString(Eval("AutoNumber")),"Pic1.jpg")
%>'
/>
</ItemTemplate>
<ItemStyle
HorizontalAlign="Center"
Width="100px"
/>
</asp:TemplateField>
<custom:LongTextField
DataField="TListingComment"
Width="150px"
Height="70px"
HeaderText="Listing Comment"
HtmlEncode="false"
/>
</Columns>
</asp:GridView>
View 15 Replies
May 28, 2010
Can anyone tell me how to create an ASP photo album page WITHOUT using a database for the photos? In other words, I just want to be able to call the photos from a folder within the site... I can't get databases to work properly on my computer so I need to do it this simpler way. Can anyone let me know of a site which shows how to do this
View 19 Replies
Mar 1, 2011
I need to create a display grid of picture cells 5 columns by rows determined by database select. Each cell to contain picture, title, name, phone number pulled from database. How do I create a table like structure and populate it? Can a DetailsView control be called into each table cell with the table row count being determined by the same select statement?
View 2 Replies
Sep 30, 2010
how to create image gallery like that of google.
View 4 Replies
Jun 20, 2010
creat slide show gallery dynamic asp.net with JQuery
View 1 Replies
May 7, 2015
I want upload image in database and display image in slide show on website without gallery and button using gridview.
View 1 Replies
Jul 12, 2012
i want to bind datalist without database.i have not done it before. i want to bind the datalist dynamically in asp.net.
View 1 Replies
Jun 4, 2010
I write gallery. I used DataList with RepeatColumns=5, I what to put 25 pictures on one page. I have paths to files in database. When user wants to see gallery I just take all the filenames from database. It can be that I have more than 25 pictures. How can I remember these paths in my application, or maybe should I change my database procedure in way that it returns specific number of filenames. I mean it has 2 input parameters and it returns paths with number between this numbers.
View 1 Replies
Nov 23, 2010
Display image gallery in .Net
View 2 Replies
Jan 26, 2010
I have some images gallery with listview that display images from folder (without sql table records for the images but with records to the folder name) the page display the images by the querystring (Gallery_Details.aspx?clubId=1&galleryFolder=1180120100905) the listview have pager that count 15 images for each page. Every image have a onclick command to display the image in large version
[Code]....
When the user click on image, the image display on.
[Code]....
I want to add a button under the "changing" image when the user click the button (onclick) will fire a protected void event (in aspx.cs page) and the next event will done: 1) a new window will open in some size (height + width) without all the explorer tools (only url address) 2) to put in the url address the querystring + the image name for example: Newpage.aspx clubId=1&galleryFolder=1180120100905&image=imagename.jpg, i know how to get the clubId and the galleryFolder but How can i get the name of the image?
the full code is: aspx.cs
[Code]....
View 2 Replies
Feb 19, 2010
I want to make Image Gallery on label control where each row will contain 3 images. I also want to use javascript ligtbox on image click event for show the image in larger size.The Path Of the Image is stored in database.
View 2 Replies
Feb 28, 2010
i would like to insert a picture on a gridview, but i allways get the error:
Must declare the scalar variable "@IMAGEM"
somme one can on tihs code ? here is my code:
[code]....
View 13 Replies
Nov 27, 2012
I am using a fileupload tool and an asp button. I want to upload image using fileupload, save it in a folder named images in my website and create its thumbnail view on the same page using VB.
View 1 Replies