Click here to Skip to main content
15,886,825 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Display Data In ASP.net with paging Pin
Abhishek Sur28-Sep-09 21:19
professionalAbhishek Sur28-Sep-09 21:19 
GeneralRe: Display Data In ASP.net with paging Pin
infinity_X202029-Sep-09 9:49
infinity_X202029-Sep-09 9:49 
GeneralRe: Display Data In ASP.net with paging Pin
Abhishek Sur29-Sep-09 21:34
professionalAbhishek Sur29-Sep-09 21:34 
QuestionProviding link to the images that are shown in Slideshowextender control Pin
jknascrimz28-Sep-09 20:41
jknascrimz28-Sep-09 20:41 
AnswerRe: Providing link to the images that are shown in Slideshowextender control Pin
Abhijit Jana28-Sep-09 20:44
professionalAbhijit Jana28-Sep-09 20:44 
GeneralRe: Providing link to the images that are shown in Slideshowextender control Pin
jknascrimz28-Sep-09 21:01
jknascrimz28-Sep-09 21:01 
GeneralRe: Providing link to the images that are shown in Slideshowextender control Pin
sashidhar28-Sep-09 21:04
sashidhar28-Sep-09 21:04 
GeneralRe: Providing link to the images that are shown in Slideshowextender control Pin
jknascrimz28-Sep-09 21:14
jknascrimz28-Sep-09 21:14 
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);
}
QuestionSending Mail Pin
benams28-Sep-09 20:13
benams28-Sep-09 20:13 
AnswerRe: Sending Mail Pin
Christian Graus28-Sep-09 20:25
protectorChristian Graus28-Sep-09 20:25 
GeneralRe: Sending Mail Pin
benams28-Sep-09 20:28
benams28-Sep-09 20:28 
GeneralRe: Sending Mail Pin
Christian Graus28-Sep-09 20:31
protectorChristian Graus28-Sep-09 20:31 
AnswerRe: Sending Mail Pin
Abhijit Jana28-Sep-09 20:27
professionalAbhijit Jana28-Sep-09 20:27 
Questionmail sending code in asp.net...plz guide me... Pin
madhura apte28-Sep-09 20:12
madhura apte28-Sep-09 20:12 
AnswerRe: mail sending code in asp.net...plz guide me... Pin
Christian Graus28-Sep-09 20:24
protectorChristian Graus28-Sep-09 20:24 
QuestionHow to retain the original value of dropdow? Pin
amittinku28-Sep-09 20:08
amittinku28-Sep-09 20:08 
AnswerRe: How to retain the original value of dropdow? Pin
Christian Graus28-Sep-09 20:19
protectorChristian Graus28-Sep-09 20:19 
GeneralRe: How to retain the original value of dropdow? Pin
amittinku28-Sep-09 22:01
amittinku28-Sep-09 22:01 
Questionascx page in asp.net web application Pin
kunal naik28-Sep-09 19:24
kunal naik28-Sep-09 19:24 
AnswerRe: ascx page in asp.net web application Pin
Christian Graus28-Sep-09 19:42
protectorChristian Graus28-Sep-09 19:42 
AnswerRe: ascx page in asp.net web application Pin
sashidhar28-Sep-09 19:59
sashidhar28-Sep-09 19:59 
AnswerRe: ascx page in asp.net web application Pin
sashidhar28-Sep-09 20:00
sashidhar28-Sep-09 20:00 
QuestionDropdownlist in Webpart Pin
Anil Kumar28-Sep-09 18:59
Anil Kumar28-Sep-09 18:59 
AnswerRe: Dropdownlist in Webpart Pin
Abhijit Jana28-Sep-09 19:05
professionalAbhijit Jana28-Sep-09 19:05 
GeneralRe: Dropdownlist in Webpart Pin
Anil Kumar28-Sep-09 19:14
Anil Kumar28-Sep-09 19:14 

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.