AJAX :: Populate SlideShow Extender From Database?
May 7, 2015how can we have the ajax slide show which take the image path from database, instead of define the image path static in service method.
View 1 Replieshow can we have the ajax slide show which take the image path from database, instead of define the image path static in service method.
View 1 RepliesI have this slideshow extender that works perfectly with hard coded images in the page method. However as soon as I try to make the page method get its images from the database it stops working; no images are returned.
I have tried to declare the datatable that the pagemethod uses both inside the pagemethod and in the on_load event. When in the last case I test the datatable contents by hooking it up to a gridview, it shows that it does get its proper data.
Declaring this dataTable as a private static dataTable, outside the page_load, to make it accessible in the page method (like in this --- post http://forums.asp.net/p/1115257/1726736.aspx---) also does not work.
So the page method with hard coded images works and also the query to the database works!
The Slideshow isnt looping, however, it appears that the page is trying to refresh itself for each loop interval (I can see this at the bottom: downloading ...)
This should work because Im basically used the same code thats in the demo, minus the labels and buttons, and modified the web.config to be identical as well.
[Code]....
Here is the web.config:
[Code]....
i am working on ajax slideshow extender.
1) implement transformations between slide to slide.
2) and the direction means orientation in changing of slides.
I'm using ajax slideshow extender for a slideshow. How do I use an imagebutton to play/pause slideshow. I would have to change the imageurl with the corresponding action...
View 1 RepliesI'm using the Slideshow extender and have a vexing problem that I can't see to solve. The slidehow itself works fine, but I am trying to get the value of the ImageDescriptionLabelID into a javascript variable when the slide changes. Using this code in a javascript function:
[Code]....
It appears that the add_slideChanging event fires BEFORE the image (and accompanying label) change. Is there an event that occurs AFTER the image changes?If not, any ideas on how I can make the number I'm successfully passing in the lblDesc control available to javascript?
what i am trying to achieve is a single image control with slideshow extender attached which when of the category option buttons are pressed the SlideService goes get the images for that category from the image folder sub folders and starts to display them i have got the code to work as to, the point that i have to hardcode the images sub folders path in to the webmethod - but i want the image folder name to be passed as a parameter when the webmethod GetSlides is called - the code i have so far is From the aspx page - (the category name will be a string retrieved from the button text when clicked
[Code]....
I have found all kinds of tutorials on the web showing how to implement the AJAX slideshow extender, but can't get them to work. All I want to do is put a simple slideshow on a master page. I want to use a code behind file for the c# (do not want the script on the page itself.
I ran into a couple of problems with the samples on the web. Specifically when I try to add System.Web.Services.WebMethod and System.Web.Script.Services.ScriptMethod - VS 2010 doesn't know what the "WebMethod" or the "ScriptMethod" are. Further, VS2010 express keeps telling me "{" expected - on the line AjaxControlToolkit.Slide[] slides = new AjaxControlToolkit.Slide[5];
Every tutorial on the web seems to be for ASP.net 2.0 - and is at least 2 years old. Is there an easier way in ASP.Net 4 to implement the slideshow control? I am new to c# in general, so if someone could provide a simple cs codebehind file - and the code on the aspx page, that would be great. I understand more than I can write.
I have a slideshow extender, I will change the slideshow extender's contextkey value by a button click event. So that after button click the slideshow will display different set of image. Originally with postback everything work fine, but I don't want the whole page to refresh.
So I put the slideshow extender inside an updatepanel with triggers target the button click event. Now the whole page didn't refresh and the slideshow extender's contextkey value did change (same code as before) after button click event. However the image set on the slideshow didn't change.
I think I am missing some sort of slideshow extender reload or refresh call but I am not sure how to do this? I didn't see any related property with slideshow extender...
when I run my site that used Slideshow Extender, i get this Error:
Microsoft JScript runtime error: Sys.InvalidOperationException: Can't add a handler for the error event using this method. Please set the window.onerror property instead.
in localhost i ignore this Error and Slideshow Extender works correct.
but when i publish the site I have JScript Error and Slideshow Extender not be loaded.
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?
I need to set up the slide show based on a querystring parameter. I thought I had this figured out, but I clearly don't understand something about how the webservice works. I have this in the .aspx page:
<asp:Button ID="btnPrev" runat="server" Text="Prev" />
<asp:Button ID="btnPlay" runat="server" Text="Play" />
<asp:Button ID="btnNext" runat="server" Text="Next" />
<asp:Label ID="lblDesc" runat="server" />
<cc1:SlideShowExtender ID="SlideShowExtender1" runat="server" BehaviorID="SSBehaviorID"
TargetControlID="tstSlides"
AutoPlay="true"
ImageDescriptionLabelID="lblDesc"
NextButtonID="btnNext"
PreviousButtonID="btnPrev"
PlayButtonID="btnPlay"
PlayButtonText="Play"
StopButtonText="Stop"
Loop="true" >
</cc1:SlideShowExtender>
<asp:Image ID="tstSlides" runat="server" height="300px" Width="300px" />
And this in the code behind:.........................
I would like to use the ajax slideshow extender and getting the Image Url stored in a databaseso far my webserivice look like this..but I think im making a mistake somewhere..its not working
<WebMethod()> _
Public Function GetSlides() As AjaxControlToolkit.Slide()
Dim Connection As SqlConnection
[code]...
I've watched the Slideshow videos and created a number of examples that run fine. The code I've attached at the bottom is the smallest one, but instead of hard coding the image locations, I would like to select the slides from either of the following statements, which return the top 5 images selected randomly from our floorplans database.
<asp:AccessDataSource id="AccessDataSource1" runat="server" DataFile="../fpdb/J3_2005.mdb" SelectCommand="SELECT TOP 5 [Elev_Pimage] FROM [PLANS_Active] ORDER BY RND(INT(NOW*[SF_Total])-NOW*[SF_Total])" />
or,
<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:J3_2005Slideshow %>" ProviderName="<%$ ConnectionStrings:J3_2005Slideshow.ProviderName %>" SelectCommand="SELECT TOP 5 [Elev_Pimage] FROM [PLANS_Active] ORDER
BY RND(INT(NOW*[SF_Total])-NOW*[SF_Total])" />
<title>SlideShow</title>
I have an invoice form that I want to be able to populate using an ajax control. There will be a section at the top that will allow the user to select a record from a db or create a new one. This section will have several criteria types that can be used to select the records. They will be able to choose the record by the invoice id, date of service....etc.
I'm trying to decide between using the dynamic populate extender and the update panel for the different areas of the invoice. For example, there are different sections that show the customer's info, notes for the invoice, the services performed and the totals for the work done. I want each of these to be dynamic. For example, when a new service is added to the invoice the total is updated. Or if an existing invoice is opened these fields will be populated for that record.
I'm trying to decide if the dynamic populate extender or update panels should be used for each of these dynamic sections of the invoice. It seems like either can be used but I'm not sure which would be better.
I want to create a textbox (for entering names) in my aspx application which suggests names of Employees from database. I am pasting my code below. I am using Mysql
Default.aspx:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Untitled Page</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:TextBox ID="TextBox1" runat="server" ontextchanged="TextBox1_TextChanged"></asp:TextBox>
<asp:AutoCompleteExtender ID="TextBox1_AutoCompleteExtender" runat="server"
ServiceMethod="GetCompletionList2" TargetControlID="TextBox1"
UseContextKey="True">
</asp:AutoCompleteExtender>
</div>
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
</form>
</body>
</html>.....................................
i have a drop down list tied to a database called location.
what i hope to achieve is once a location is selected, my other drop down list will auto-populate a list of department in that location. how do i go about on connecting the two drop down list together so when location is changed, it connects to the appropriate row in the database?
I want to Bind div From the Parent Table and Get All Child item also in a div But I am not get that properly...
Jquery Code with html.
Testing.aspx
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Testing.aspx.cs" Inherits="WebApplication14.Testing" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
[Code] ....
Web method For Retriving Data From the Database.
Getdata.asmx:-
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Services;
using System.Configuration;
[Code] ....
Parent class
allclass.cs:-
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace WebApplication14
[Code] ....
In this code how can we get data proper format like parent table data show and this data parent id in child table this child table data also show with parent table.
how o create menue and sub menue from data base?
View 1 RepliesI am drawing the line graph from the following array
var abc=[20,30];
var line = new RGraph.Line('cvs', abc)
.set('spline', true)
.set('numxticks', 11)
.set('numyticks', 5)
[Code] .....
and storing the same value in jquery session
$.session("abc",abc);
and retrieving the same value on button click and re drawing the graph but i am unable to draw it.
i have retrieve the values as below
var def=[];
def =$.session.get("abc")
and passing this array in place of abc array, whats wrong in my code?
How to bind TreeView Control in asp.net using C# code?
View 1 RepliesI am drawing the line graph from the following array
var abc=[20,30];
var line = new RGraph.Line('cvs', abc)
.set('spline', true)
.set('numxticks', 11)
.set('numyticks', 5)
.set('background.grid.autofit.numvlines', 11)
[Code] .....
and storing the same value in jquery session
$.session("abc",abc);
And retrieving the same value on button click and re drawing the graph but I am unable to draw it
I have retrieve the values as below
var def=[];
def =$.session.get("abc")
And passing this array in place of abc array ...
I have decided to use the Ajax Auto complete extender with a database, i found some cool articles on google to do this, but i cannot get it to work, I am trying a simple example where i have 1 textbox and i am trying to obtain products from the products table in the northwind database, heres my code (its not working)
[Code]....
WEBSERVICE
[Code]....
I'm creating a small project wherein i'm using MS Access Database to store the details. How to use autocomplete for Access Database. I used the code in your website to create an autocomplete textbox using SQL Server it is working but the same code for MS Access is not working.
View 1 Replieshow to slideshow images from database without using javascript in asp.net.
View 4 Replies