How To Recover A Deleted Control In ToolBox
Dec 31, 2010I 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 RepliesI 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 Repliesby mistake a .aspx and its corresponding .vb file was deleted from my project's solution explorer.Its not there in Recycle Bin too.Is there any method to recover that file ? I am using Visual Studio 2008. Win XP SP1.
View 6 RepliesIs it possible to use the PasswordRecovery control to recover a password using the email address instead of the user name?
Ideally I'd like to have the PasswordRecovery control allow users to enter their email address instead of their user name and then proceed to answer the security question.
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
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 RepliesDoes 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
}
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.
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?
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 RepliesI 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?
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 RepliesI have found that eventually the login control I place on my page will not authenticate. The solution appears to be to delete it and replace it with a new instance. Obviously this is not tenable. Can someone enlighten me as to why it might stop working for no apparent reason such that simply deleting it and putting a new instance in place will restore functionality? Update: I find it very sensitive. I just did the above described action, got it working again, found that the Authenticate event was no longer properly wired and tried to fix it by removing the '1' from the Authenticate1 in this line. That was sufficient to kill the control which required me to once again delete it and replace. I cannot believe the login control is that sensitive or no one would touch it. What gives?
onauthenticate="Login1_Authenticate1"
Is there a way to search the Toolbox for a specific control?
View 3 RepliesI 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 RepliesI 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.
I was getting tired of copying and pasting Lorem Ipsum text on my web page.
View 4 Replieshow to use password recovery control present in toolbox.
is there any other way to recover forgot password?
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 Repliesi 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 RepliesI'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 Replieshow to permanently add ajax control toolkit in toolbox in vs2013 ? bvx if i add it and then close vs , it disappears ....
View 1 RepliesI have a project to build statistical reports. i am told to use crystal reports if its a license free, If it is not than user some other free source.
This is my first attempt to use reports in asp.net. Can anyone guide me how to start with e.g if i am using crystal reports than how do i add a crystal report control in my toolbox(Microsoft Visual Developer Express Edition 2008).
Please help me to understand how reports work.Any good tutorials,from scratch would be very helpful.
I have developed a User Control in inline code model and convert this into dll and try to add it into Visual Studio ToolBox. It shows error "There is no component found in the object.". It is showing actually because i have not added ToolBoxData attribute just before the class declaration, because there is no class declaration in the inline code model. I don't know where i have to add ToolBoxData attribute.
View 1 RepliesI'm creating a webservice. I wanna recover the URL that is used my webservice.
e.g: Someone from www.sth.com invoke my webservice's methods. Now I wanna recover www.sth.com from my webservice!
I am using mySql 5.1 in my current project and I do have a .IBD file of patient with me. I want to recover data from .IBD file to my patient table structure.
View 4 Replies