Showing posts with label navigation. Show all posts
Showing posts with label navigation. Show all posts

Wednesday, March 28, 2012

Images not lining up with text box

In several of my reports, within the header, I use a small, square, image as a navigation widget to drill through to a related report. Within VS, the report displays fine in both the layout and preview windows; the image is in complete alignment with the textbox on both the right and bottom edge. When I open the report in IE, the right edge remains in perfect alignment, but the bottom edge is 1px higher than the textbox to the left. I have assigned both the textbox and the image a 1pt border and the images are not overlapped. Is it possible to make the textbox line up with the navigation widget on the bottom, or will I need to come up with some workaround. Thanks

This is a poorly done illustration of how my header is laid out, as my description may be a bit confusing.
__
|TEXTBOX (Report title) |
|TEXTBOX (Widget caption) | Image|

Thanks
|||

Hey Dude,

Dunno if you have found a fix for this but i found using rectangles a huge help in aligning multi text boxes... maybe the same can help here

Stephen

Images not lining up with text box

In several of my reports, within the header, I use a small, square, image as a navigation widget to drill through to a related report. Within VS, the report displays fine in both the layout and preview windows; the image is in complete alignment with the textbox on both the right and bottom edge. When I open the report in IE, the right edge remains in perfect alignment, but the bottom edge is 1px higher than the textbox to the left. I have assigned both the textbox and the image a 1pt border and the images are not overlapped. Is it possible to make the textbox line up with the navigation widget on the bottom, or will I need to come up with some workaround. Thanks

This is a poorly done illustration of how my header is laid out, as my description may be a bit confusing.
__
|TEXTBOX (Report title) |
|TEXTBOX (Widget caption) | Image|

Thanks
|||

Hey Dude,

Dunno if you have found a fix for this but i found using rectangles a huge help in aligning multi text boxes... maybe the same can help here

Stephen

Monday, March 26, 2012

Images :: Next, Previous, First, Last Functionality

currently have my website that is functional...but would like to add some navigation to my photos which are displayed using a repeater tied to a SQL database. (live example can be viewed here)

the above link shows a gallery page that displays all the photos within a given shoot (using a querystring to display the unique ID of the photo shoot). When you click on one of the images within the shoot a page called is called displaying the selected photo by passing the shoot ID and the unique ID of the photo itself through a querystring.

I would like to add navigation to the page displaying the photo that would allow the user to go to the next photo, previous photo, first and last phot within the specific SHOOT ID.

First
Next
Previous
Last

I am using a repeater to display the photo with the following sqlDataSource:

<asp:SqlDataSourceID="SqlDataSource1"runat="server"ConnectionString="<%$ ConnectionStrings:Connection %>"
SelectCommand="
SELECT usr_Photos.*, usr_PhotoShoot.*
FROM usr_Photos
INNER JOIN usr_PhotoShoot ON usr_Photos.Shoot_ID = usr_PhotoShoot.Shoot_ID
WHERE usr_Photos.Photo_ID = @.ID AND usr_Photos.Shoot_ID = @.Shoot">

<SelectParameters>
<asp:QueryStringParameterDefaultValue=""Name="ID"QueryStringField="ID"/>
<asp:QueryStringParameterDefaultValue=""Name="Shoot"QueryStringField="Shoot"/>
</SelectParameters>

</asp:SqlDataSource>

I am having trouble figuring out a way to add the functionality i would need to change photos within the specific photo shoot without having to go back to the gallery page. any help or ideas you could point me in would be great...thanks in advance...

You need Datalist or Repeater Control Coustom Paging.

see the live view of what we created:

http://www.friendspoint.de/UsersWidPics.aspx

You will be able to find alot of material online for that. just google for "Datalist paging"

Did it help? If still not then i will try to post some Article.

|||

Ok, the Article is just finished. you can see it here now:

http://www.dotnet-friends.com/articles/asp/artinasp0cfb304d-42ea-4f8b-b480-9c047396252e.aspx