VS 2010 NormalSlider Control Does Not Show Up In The Toolbox
Nov 8, 2010
I made a UserControl called SliderUserControl which contains two labels and a WebSlider (third party slider control) in a table. The labels left and right of the slider should give the value of the slider and (Maximum - value) of the slider respectively. So if the slider goes from 0-100 and is at 30 now, then the control looks like this:
Code:
30 ----|---------- 70
I accomplished this with some simple javascript, and it's all working just fine:
asp Code:
<%@ Control Language="vb" AutoEventWireup="false" CodeBehind="SliderUserControl.ascx.vb" Inherits="F1TimeTrials.Controls.SliderUserControl" %>
<%@ Register assembly="Infragistics35.Web.v10.2, Version=10.2.20102.1011, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb"
[code]....
I said, this works fine. If I use a Register directive that points to the SliderUserControl.ascx source then I can use it on my page and it works.However, I actually need three different kind of sliders, each slightly different from this 'base' slider. For example, one will work with integers, another will work with float point values, etc. So what I want to do is create three classes that inherit SliderUserControl, and customize it from there. So, for example, a slider that goes from 1 to 11 with only one label (without the extra second label on the right) could look like this:
vb.net Code:
Imports Infragistics.Web.UI.EditorControls
Namespace Controls
[code]....
And now I'm a little stuck... I can build this project, but the NormalSlider control does not show up in the toolbox as I'm used to from windows forms projects. I thought well, that's probably different for ASP.NET, but then I remembered that it DOES work for a different control. I have a class Grid that inherits a third party UltraWebGrid control:
vb.net Code:
Imports Infragistics.WebUI.UltraWebGrid
Namespace Controls
Public Class Grid
Inherits Infragistics.WebUI.UltraWebGrid.UltraWebGrid
'...
End Class
End Namespace
When I build the project now, the Grid control does show up in the toolbox! So that's a bit strange..However, I googled the problem of course and I figured out how to get a custom control (class inheriting a control) onto a page, and apparently I can use another Register directive where I need to specify the Assembly and the Namespace. As far as I know, the Assembly is just the current project (the control is not in a separate project) called F1TimeTrials, and the Namespace is either Controls or F1TimeTrials.Controls. So I tried both of those, for example:
asp Code:
<%@ Register TagPrefix="uc" Assembly="F1TimeTrials" Namespace="F1TimeTrials.Controls" %>
Now, I can type "<uc:" and Intellisense shows me the NormalSlider control. Great! However, when I place it on the page, it does not show up during design-time.
asp Code:
<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="SliderTest.aspx.vb" Inherits="F1TimeTrials.SliderTest" %>
<%@ Register TagPrefix="uc" Assembly="F1TimeTrials" Namespace="F1TimeTrials.Controls" %>
[code]....
There are no warnings or errors or anything, but the control isn't there.When I run the project, it throws a null-reference exception in the Page_Load event of the NormalSlider class. Apparently, Slider (= the WebSlider third party control on the base class) is Nothing. I don't get it... How can it be Nothing in the Page_Load event? Should I call some method that creates the control in the base-class first?
View 18 Replies
Similar Messages:
Nov 8, 2010
I have just installed VS 2010 Professional. After I create a c# web project with default target 4.0, I don't see most items in ajax toolbox. When I try to choose items, CalendarExtender along with other items are not in the list to choose from.Shouldn't those items like CalenderExtender be available by default? Suppose I could manually download the ajax toolkit but is that the right way to fix it?
View 1 Replies
Feb 25, 2010
I've realised that the custom controls that I add to the toolbox are lost on restart of Visual Studio 2010 RC 1.Was there a problem that occured during the installation or is it a know bug?I did not encounter this problem with the beta 2.
View 1 Replies
Feb 21, 2010
how do I get the 3.5 extensions to show in my vwd toolbox? I've got .net 3.5 sp1 installed and the silverlight toolkit and the silverlight 3 tools. I want to use the media player control.
View 5 Replies
Dec 4, 2010
I create a customtoolbox mainly one that contains the AJAX toolbox control kit as soon as I choose items and select OK the tab just disappears.
View 1 Replies
Feb 1, 2011
Why would only some of the controls show in the toolbox of VS2008? I am using Ajax 3.0 and was working fine for a couple years. Now I do not have all of the extenders available to controls. I removed the reference and added it back for the dll. Still the same.
View 1 Replies
Nov 18, 2010
Recently i am working in VS2008 installed in windows xp SP2. In the toolbox i added a new tab and added some third party controls in the toolbox, by using "Choose Item" dialog.. I also added Ajax ToolKit to the tool box. It worked fine and i could drag n drop controls.
But then if i restart VS2008, all the tabs i created and controls in it goes off and disappears ncluding Ajax Toolkit. Each time i restart it, I have to have add those controls newly?
Is this a Bug?? or Is there any solution for this?
View 3 Replies
Feb 26, 2010
http://www.asp.net/learn/Ajax-Control-Toolkit/tutorial-47-cs.aspx
According to the above article you "Unblock" the zip file and then unzip it. You then create a new tab within the toolbox window and add the dll to show and use the toolbox items. However when I do that I'm getting the following:
'Request for the permission of type
'System.Web.AspNetHostingPermissio
View 1 Replies
Oct 7, 2010
User control can not be added in to toolbox,Unless or until it is changed into custom control.(VS 2005.) Once i have changed user control into custom controls(Composite Controls,WebControls,Controls) then i can add it into tool box. These statement are correct?. or is there any possibility to add usercontrol in toolbox?
View 1 Replies
Jul 26, 2010
How do I display the Toolbox? I've looked under every menu item and just don't see it.
View 1 Replies
Feb 18, 2011
Does anyone know why I can't add a subclass that inherits a control from AjaxControlToolKit to the ToolKit? I explicitly implemented IComponent which I didn't really have to since the IControl in the parent implements IComponent already. I'll compile the code, and try to add the DLL but I get the "doesn't contain any controls" error. I know this is a very specific error so there wasn't much help elsewhere.
[System.ComponentModel.DesignerCategory("Component"),
ToolboxData("<{0}:TabPanelWithDataBinding runat=server></{0}:TabPanelWithDataBinding>")]
public class TabPanelWithDataBinding : TabPanel, IComponent, IDisposable
{
//all the meat stuff
}
View 1 Replies
Dec 31, 2010
I delete a control(TextBox) from toolBox by accident, but not getting how to get it back at there please help me to recover.
View 1 Replies
Mar 27, 2010
I am using a login control from the toolbox currently. I have the following code that is invoked when the user click on the log in button:
Protected Sub Login_Authenticate(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.AuthenticateEventArgs) Handles
Login.Authenticate 'To attempt connection to database. Prompt if fail Dim myConnection As SqlConnection = New SqlConnection(ConfigurationManager.ConnectionStrings("connString").ConnectionString) Try myConnection.Open() Catch ex As Exception MsgBox("Cannot
connect to server", 0) End Try 'Prepare SQL command to query,update or delete from database Dim sqlComm As New SqlCommand("SELECT * from Accounts", myConnection) 'Execute SQL command Dim reader As SqlDataReader = sqlComm.ExecuteReader() 'Retrieve result from
reader While (reader.Read()) If Login.UserName = reader("Username") & Login.Password = reader("Password") Then e.Authenticated = True Response.Redirect("Management.aspx") End If End While 'Close the connection myConnection.Close() End Sub
Now my question is instead of using memebership table, I would like to do the authentication with my own sql server database and once the verification is done as shown in the above code, I want to activate the DestinationPageUrl. I tried using: e.Authenticated = True Response.Redirect("Management.aspx") to set the authentication to be successful after I am done with the verification but it still does not redirect.
View 3 Replies
Nov 16, 2010
I am running Visual Studio 2010. I do not see a label control in my toolbox HTML tab. How can I add it?
View 10 Replies
Mar 1, 2011
I downloaded and installed AJAX Control Toolkit, following this link
http://www.asp.net/ajaxlibrary/act.ashx.
The tab doesn't show on the Toolbox. I right clicked at the Toolbox and select Show All. The tab and the controls shows up but all controls are gray out, look like disable. How can I make enable?
View 4 Replies
Jul 13, 2010
ive used the Ajax Control Toolkit in previous versions of VWD but for some reason im having trouble adding the Toolkit to the toolbox in this new version (2010) i have setup on my laptop, when i browse to and select the .dll file it gives me the error "Object reference not set to instance of an object" can anyone please help ive been trying to fix this issue for a little over an hour now.
View 1 Replies
Jul 8, 2010
Is there a way to search the Toolbox for a specific control?
View 3 Replies
Jul 20, 2010
I have project A, which is a class library project. I compile it and it creates a dll. In my project B which is a web application project, I add a reference to the A.dll, and I click on toolbox and select choose item, navigate to dll, and click on it. The control does not show up on my toolbox. When I right click my toolbox and select "show all", the control is there, but it's grayed out. I have been searching for an answer to this for a couple of days now, nothing changes.
View 3 Replies
Feb 21, 2010
I want to create a map control which will be a server side control.I want to have it as a tool in the toolbox. The above control will contain providers that will fetch maps from the following sources:
1) WMS
2) Oracle Spatial DB
3) Google
4) MS Virtual earth.
How to create the providers for the different map sources? Then I hav to create different screens which will take the parameters and send them to the map preoviders. The map providers will send the generated map to a map control (could be a active X control) or something else. The map control should also be capable of performing standard functions like pan,zoom etc. Pls give some idea as well as source code on how to start with it.
View 3 Replies
Oct 16, 2010
I was getting tired of copying and pasting Lorem Ipsum text on my web page.
View 4 Replies
Mar 26, 2013
how to use password recovery control present in toolbox.
is there any other way to recover forgot password?
View 1 Replies
Feb 5, 2010
I'm using Visual Web Developer 2008 Express with the AJAX control toolbox.I've created a web page using controls from the AJAX tool kit. When I preview the page in the browser from the IDE it looks fine.When I upload the page to a server and try to view the page in IE, none of the AJAX controls are there. Would anyone be able to explain this?
View 7 Replies
Jan 18, 2010
i open visual studio 2008 and create a new project, in this project i use the ajaxcontroltoolkit, now in the vs toolbox i add a new tab, and named it AjaxcontrolToolkit, then i click on it and select choose items, in the .net framework components i browseto the ajaxcontroltoolkit dll, then all the ajaxcontroltoolki controls appears in the tab, an work fine, but when i close the vs and start it again i lost that tab, there are any way to keep in this tab for the next restart of vs?
View 2 Replies
Feb 28, 2010
I'm using Visual Studio 2008 SP1 for ASP.NET 3.5 development.But the SqlDataSource control is not visble in the Toolbox - Data section.When I drag in a GridView control, the smart task list asks me to configure the SqlDataSource control, so it is "in there somewhere"
View 2 Replies
May 7, 2015
how to permanently add ajax control toolkit in toolbox in vs2013 ? bvx if i add it and then close vs , it disappears ....
View 1 Replies