Click here to Skip to main content
15,891,136 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: iframe background color style not working Pin
Abhishek Sur29-Sep-09 0:32
professionalAbhishek Sur29-Sep-09 0:32 
QuestionLoading Table into aspxcombobox Pin
zizigolo11029-Sep-09 0:13
zizigolo11029-Sep-09 0:13 
AnswerRe: Loading Table into aspxcombobox Pin
Abhijit Jana29-Sep-09 0:26
professionalAbhijit Jana29-Sep-09 0:26 
AnswerRe: Loading Table into aspxcombobox Pin
sashidhar29-Sep-09 0:40
sashidhar29-Sep-09 0:40 
Questionmultiline textbox scroll bar Pin
sasirekha28-Sep-09 23:38
sasirekha28-Sep-09 23:38 
AnswerRe: multiline textbox scroll bar Pin
sashidhar28-Sep-09 23:43
sashidhar28-Sep-09 23:43 
AnswerRe: multiline textbox scroll bar Pin
Abhishek Sur29-Sep-09 0:38
professionalAbhishek Sur29-Sep-09 0:38 
QuestionProviding link to the images that are shown in Slideshowextender control Pin
jknascrimz28-Sep-09 23:12
jknascrimz28-Sep-09 23:12 
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.

I have pasted the html source code & code behind use , 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);
}
AnswerRe: Providing link to the images that are shown in Slideshowextender control Pin
Christian Graus28-Sep-09 23:17
protectorChristian Graus28-Sep-09 23:17 
General[Message Deleted] Pin
jknascrimz28-Sep-09 23:23
jknascrimz28-Sep-09 23:23 
GeneralRe: Providing link to the images that are shown in Slideshowextender control Pin
Abhijit Jana28-Sep-09 23:25
professionalAbhijit Jana28-Sep-09 23:25 
GeneralRe: Providing link to the images that are shown in Slideshowextender control Pin
jknascrimz28-Sep-09 23:27
jknascrimz28-Sep-09 23:27 
GeneralRe: Providing link to the images that are shown in Slideshowextender control Pin
Abhijit Jana28-Sep-09 23:23
professionalAbhijit Jana28-Sep-09 23:23 
Questionfetch data frm multiple tables Pin
rummer28-Sep-09 22:44
rummer28-Sep-09 22:44 
AnswerRe: fetch data frm multiple tables Pin
Christian Graus28-Sep-09 22:49
protectorChristian Graus28-Sep-09 22:49 
AnswerRe: fetch data frm multiple tables Pin
Abhijit Jana28-Sep-09 22:50
professionalAbhijit Jana28-Sep-09 22:50 
AnswerRe: fetch data frm multiple tables Pin
nagendrathecoder28-Sep-09 22:51
nagendrathecoder28-Sep-09 22:51 
AnswerRe: fetch data frm multiple tables Pin
Nisha Agrawal28-Sep-09 22:52
Nisha Agrawal28-Sep-09 22:52 
AnswerRe: fetch data frm multiple tables Pin
Vimalsoft(Pty) Ltd28-Sep-09 22:57
professionalVimalsoft(Pty) Ltd28-Sep-09 22:57 
GeneralRe: fetch data frm multiple tables Pin
Christian Graus28-Sep-09 23:00
protectorChristian Graus28-Sep-09 23:00 
GeneralRe: fetch data frm multiple tables Pin
Abhijit Jana28-Sep-09 23:20
professionalAbhijit Jana28-Sep-09 23:20 
Question[Message Deleted] Pin
sumanmks28-Sep-09 22:42
sumanmks28-Sep-09 22:42 
AnswerRe: how to insert value in datbase Pin
Christian Graus28-Sep-09 22:43
protectorChristian Graus28-Sep-09 22:43 
GeneralRe: how to insert value in datbase Pin
sumanmks28-Sep-09 22:49
sumanmks28-Sep-09 22:49 
GeneralRe: how to insert value in datbase Pin
Christian Graus28-Sep-09 22:52
protectorChristian Graus28-Sep-09 22:52 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.