AJAX :: Slideshow Images Won't Display / Intelligencia URL Rewriter?
Nov 11, 2010
on another post i mentioned the problem but simplified it here! I am using ajax slideshow extender and getting images from my database
Datbase table file path example
/ ImageURL
/Members/matt//jeanette4.jpg
Code Behind
//here i open sql connection to database and retrieve images based on GUID of UserId which i add as sql parameter.//
// set the initial image
if (tblData.Rows.Count > 0)
{
imgShowImage.ImageUrl =tblData.Rows[0]["ImageUrl"].ToString();
imageLabel1.Text = tblData.Rows[0]["FirstName"].ToString();
}
}
}
[System.Web.Services.WebMethod]
[System.Web.Script.Services.ScriptMethod]
public static AjaxControlToolkit.Slide[] GetSlides()
{
AjaxControlToolkit.Slide[] slides = new AjaxControlToolkit.Slide[tblData.Rows.Count];
for (int i = 0; i < tblData.Rows.Count; i++)
{
DataRow dr = tblData.Rows[i];
slides[i] = new AjaxControlToolkit.Slide(
dr["ImageUrl"].ToString(),
dr["FirstName"].ToString(),
dr["LastName"].ToString());
}
return slides;
}
ASPX
Page shows the image
<asp:Image ID="imgShowImage" runat="server"
Height="300px" ImageAlign="Middle" />
This all works fine/ but when i set up the web config with Intelligencia.UrlRewriter code the slideshow images do not appear but the page gets divirted correctly
<rewriter>
<rewrite url="~/Matt" to="~/MembersClub/PublicProfile.aspx?Id=a8742959-aa5e-4830-9fc1-94f1b3d0bc41"/>
</rewriter>
The images are stored in a file directory named "Members".
View 1 Replies
Similar Messages:
Nov 10, 2010
I am using the ajax slideshow which retrives an Image URL from my database table/ It works fine but as soon as I started using the Intelligencia.UrlRewriter, images are not showing. all my code is below.
Code Behind
private static DataTable tblData = new DataTable();
string sName = Request.QueryString["Id"];
<query string param is UserId>
string strSQL = "SELECT [ImageUrl],[FirstName], [LastName] FROM [Images] WHERE ([FootballerId] = @FootballerId)";
SqlConnection conn = new SqlConnection("Data Source=xxxxxxxxxxxxxxxxxx");
conn.Open();
SqlCommand comm = new SqlCommand(strSQL, conn);
comm.Parameters.Add("@FootballerId", SqlDbType.NVarChar).Value = sName;
SqlDataAdapter da = new SqlDataAdapter(comm);
tblData = new DataTable();
da.Fill(tblData);
conn.Close();
// set the initial image
if (tblData.Rows.Count > 0)
{
imgShowImage.ImageUrl = tblData.Rows[0]["ImageUrl"].ToString();
imageLabel1.Text = tblData.Rows[0]["FirstName"].ToString();
}
}
}
[System.Web.Services.WebMethod]
[System.Web.Script.Services.ScriptMethod]
public static AjaxControlToolkit.Slide[] GetSlides()
{
AjaxControlToolkit.Slide[] slides = new AjaxControlToolkit.Slide[tblData.Rows.Count];
for (int i = 0; i < tblData.Rows.Count; i++)
{
DataRow dr = tblData.Rows[i];
slides[i] = new AjaxControlToolkit.Slide(
dr["ImageUrl"].ToString(),
dr["FirstName"].ToString(),
dr["LastName"].ToString());
}
return slides;
}
ASPX
<cc1:SlideShowExtender
ID="slideshowextend1"
TargetControlID="imgShowImage"
SlideShowServiceMethod="GetSlides"
AutoPlay="true"
ImageDescriptionLabelID="imageLabel1"
NextButtonID="nextButton"
PlayButtonText="Play"
StopButtonText="Stop"
PreviousButtonID="prevButton"
PlayButtonID="playButton"
Loop="true"
runat="server"
Enabled="True">
</cc1:SlideShowExtender>
<div
class="GridRight">
<asp:Image
ID="imgShowImage"
runat="server"
Height="300px"
ImageAlign="Middle"
/>
</div>
SQL Database Path
/Footballer/sandra//Horses.jpg
Web Config
<rewriter>
<rewrite url="~/Sandra" to="~/CMC/PublicProfile.aspx?Id=dff12c6b-e37c-4591-97ae-a65c27c1de1d"/>
</rewriter>
rewriter>
<
View 2 Replies
Mar 25, 2010
I am using the Intelligencia URL rewriter in my asp.net web application. I use the web.config mappings I'm trying to map the following url:
[URL] To: [URL]
obviously in the above example, xxx is replaced from the "productId" from the "friendly" url. In my web.config, I've got so far:
<rewrite url="~/contract-deals/([w-_]+)/_(.+).aspx" to="~/ProductInfo.aspx?productId=$1"/>
This isn't working however. I need the correct regex to use for my requirements (regex really isn't my strong point!!)
View 1 Replies
Mar 27, 2010
I wonder if it is possible to have a clickevent for the SlideShow control. In this case I am now showing 2 images.
Is it possible in any way have a clickevent or to handle a click on the images that is showing to open up a browser with a URL like www.google.com ?
I beleive the Click event then should be in the Image Control in somehow ?
[Code]....
View 1 Replies
Dec 1, 2010
I'm using the slideshow extender, however the images are not a standard size. The images are user supplied, and they are often displayed full size, so I can't standardize them. I need a way to resize them on the fly, and have them look good.
I've been working on this slide show off and on for some time. I've had many false starts, finding out after putting in quite a bit of time and work that there is just one thing or another that I cant't get to work. I'm hoping this ajax extender will be the answer. It won't be if I can't rezise the images.
what the extender can use as image sources? I know it can use an image on the hard drive, which is where my images are, but then I have the size problem. I tried using a webpage that uses a third party control to resizde the image, but that didn't work. I'm looking at this site: [URL] for resizing the images, can the output be used by the extender?
View 6 Replies
Mar 16, 2011
Is it possible to display hyperlinks inside an AJAX slideshow window?... that is a different hyperlink in each "slide"
View 1 Replies
Feb 17, 2010
My slideshow extender work perfectly fine, but I want to retrieve the current display picture's information on the server side.
So I added a normal asp button on the same page as the slideshow extender. When button clicked, it fire off a server side function. In the function I grabbed the SlideShow's name label, description label or the Image, but none of them contain any current information of the picture displayed at slideshow extender.
Is there another way to obtain the slideshow extender current state? Or am are those name, description label text value should be updated?
View 1 Replies
Jan 14, 2011
how to slideshow images from database without using javascript in asp.net.
View 4 Replies
Mar 3, 2012
how can i develop a slideshow of images coming from database?
View 1 Replies
Mar 8, 2010
Iam using vb 2008 and I want to make slideshow for my images and each image links to different page
HoW CaN I MaKe It???
Do I need other software? I have swishmax3 but I don't know how to make it either?
View 4 Replies
Sep 18, 2013
I want to slideshow images from database, four images at a time.The images should slide after 2 seconds and slides should scroll from right to left.During this left most image should disappear and all remaining images should move to left,covering leftmost image. At the place of rightmost image a new image from database should be picked up.
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
Jan 27, 2010
I use .NET C# , I dynamically create folder to store the image I upload, ex:
strFolder = Server.MapPath("./folder/folder_"+folid+"/")
So I could create different folders according to the page unique id. I have also created a thumbnail image from the image I have upload (cropped ones).
The problem I am trying to figure out is to display these images as a slide show from these dynamically created folder (display thumbnail in the page and clicking the thumbnail need to see the full size image just like slideshow).
I was trying to see examples in jQuery but its just client side. So is there any way to load these images and display as a slide show from the directory. Should I deal with DirectoryInfo in C#? Expecting a simple one.
View 2 Replies
May 20, 2010
I need to display multiple images in seadragon. I have developed these in deep zoom compmser and checked in preview, it works fine.but when i put this in seadrgon's sourceurl,i am facing the following error. icrosoft JScript runtime error: Object doesn't support this property or method.
View 2 Replies
Aug 9, 2010
I am working on an ajax application in which user can see chart (an image) of any available product. For generating chart I am using MS-Chart control. User will click a product link, its id will be passed to server side where image will be generated, returned to client side and displayed. All this is to be done asynchronously.
I thought to call a call web method, but what web method will return ?
I tried using HttpHandler but I did not get how to pass parameter (id) to it ?
View 4 Replies
Jun 16, 2015
I want to know that how to dispay the all images from the folder available on ftp to the web page.
Ex :
There are 5 folder are available on FTP site. If I want to access the folder A with all images. How it it possible ? The Image should display on slider.
View 1 Replies
Jun 17, 2010
I have a datalist. In that image is there.
When ever user come over that image i have to populate modalpop in that i have to display remaing images.
find the link for the example...
[URL]
(Please select Hotels in tab, Search for Hotel,Than you can find the datalist with images. While moving mouse over the datalist image you can find the one popup displaying the images on the popup.)
View 2 Replies
May 9, 2010
I want to display multiple images using seadragon control.
View 1 Replies
Nov 29, 2010
How to display images stored in SQL Server DB using SlideShowExtender
Heres my my Web Page:
[Code]....
View 2 Replies
Mar 28, 2011
I have implemented a adrotator to display random images using ajax. I also need to display another image at left side corner on the adrotator image continously.
View 4 Replies
Apr 17, 2010
how to upload images to server(application/images folder) and retrive(display) from and on client PC for asp.net. its just for uplaoding logo directly to server folder and retriving from server to client. i am not getting server path on client pc for image.
View 5 Replies
Feb 23, 2011
I'm new to Ajax and use MS Visual Web Developer 2008 Express edition with VB and SQL Server Express.
I have a number of photos stored in individual folders and wish to use the Slideshow extender to display all images in a selected folder.
I've set up a small test slideshow which is similar to the Ajax Video tutorial but cannot get autoplay to work.
The page displayed show the "Play button" and the first image in my set of photos.
I've pasted my code below.
Also as I'm new to this I don't understand Namespace - Do I just replace this with my website URL?
Web Service file
mports System.Web
Imports System.Web.Services [code]....
View 1 Replies
Apr 29, 2010
[Code]....
i am using asp.net with c#, i have table images
shop nvarchar(50),
imgc image
imgo image
iam saving images in a database but while retreving it is showing blank images. i want to display as thumb nail images
View 1 Replies
Apr 6, 2010
How to Display the treeview control with multiple images(each link should be with one image) instead of + images in asp.net
View 2 Replies
Sep 29, 2010
I'm using Visual Studio 2010.
Are there any step by step tutorials on how to use the SlideSHowExtender to create a slideshow?
I have had a look before posting but couldn't find any step by step info.
Each time I try to drag the SlideShowExtender to a web form I get a round black circle with a black line through the middle, in other words it won't let me use it and I must be trying to use this control incorrectly.
View 1 Replies