Providing link to the images that are shown in Slideshowextender control
-
Hi, I am working with VS.Net 2008 application & am in need to provide some link (for ex: http:www.google.com)to the Images that are shown in the slideshowextender ajax control in asp.net with c#. On the click of the every single image a new window with the corresponding URL(retrieved from the DB) should get open. Kindly help me in getting through this. Waiting for your response. Thank You.
-
Hi, I am working with VS.Net 2008 application & am in need to provide some link (for ex: http:www.google.com)to the Images that are shown in the slideshowextender ajax control in asp.net with c#. On the click of the every single image a new window with the corresponding URL(retrieved from the DB) should get open. Kindly help me in getting through this. Waiting for your response. Thank You.
Check This [^] Post. It may help you!
Abhijit Jana | Codeproject MVP Web Site : abhijitjana.net Don't forget to click "Good Answer" on the post(s) that helped you.
-
Check This [^] Post. It may help you!
Abhijit Jana | Codeproject MVP Web Site : abhijitjana.net Don't forget to click "Good Answer" on the post(s) that helped you.
Hi, Thank u for your earliest reply. But the solution in that link, provided as a reply is not applicable b'coz in that, the href is given to the image name field & not in the description field and i have tried with both the field & have not got the expected results. Kindly help me in the making this task as possible. Thank You.
-
Hi, Thank u for your earliest reply. But the solution in that link, provided as a reply is not applicable b'coz in that, the href is given to the image name field & not in the description field and i have tried with both the field & have not got the expected results. Kindly help me in the making this task as possible. Thank You.
Then You Have to Paste the Code So that Group may help..!
http://www.codeproject.com/KB/webforms/MenuControlSelectedItem1.aspx Why Do Some People Forget To Mark as Answer .If It Helps.
-
Then You Have to Paste the Code So that Group may help..!
http://www.codeproject.com/KB/webforms/MenuControlSelectedItem1.aspx Why Do Some People Forget To Mark as Answer .If It Helps.
As per the suggestion i have pasted the required things, Pls help me... Design page This Design page is an user control & iam accessing the GetImage Method from its Parent page, in which i wrote the Code (pasted below) <asp:Image ID="image1" runat="server" Height="150px" Width="230px" /> <br /> <cc1:SlideShowExtender ID="SlideShowExtender1" runat="server" AutoPlay="true" Loop="true" SlideShowServiceMethod="GetImage" TargetControlID="image1"> </cc1:SlideShowExtender> Code behind page [System.Web.Services.WebMethod] [System.Web.Script.Services.ScriptMethod] public static AjaxControlToolkit.Slide[] GetImage() { string promophotos, promoimages; SqlDataSource ds = new SqlDataSource(); ds.ConnectionString = ConnectionString.Str_SqlCon_CmInfoline.ToString(); string mySelect; int count = 0; mySelect = "select Tooltip,BschoolName,Imageurl,UrlPath from Tbl_InfolinePromoPhotos"; ds.SelectCommand = mySelect; System.Data.DataView dv = (System.Data.DataView)ds.Select(new DataSourceSelectArguments()); count = dv.Table.Rows.Count; AjaxControlToolkit.Slide[] slides = new AjaxControlToolkit.Slide[count]; try { for (int i = 0; i < count; i++) { promophotos = dv.Table.Rows[i]["Imageurl"].ToString(); string[] photopath = promophotos.Split(','); promoimages = photopath[1]; slides[i] = new AjaxControlToolkit.Slide(Global.contentUrl + "/Admin/Bschool/PromoPhotos/" + promoimages.TrimStart('.'), dv.Table.Rows[i]["Tooltip"].ToString(), dv.Table.Rows[i]["UrlPath"].ToString()); } } catch { } return (slides); }