CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums

MS SQL 2008 on ASP.NET Hosting



Zone: > NEWSGROUP > Asp.Net Forum > windows_hosting.hosting_open_forum Tags:
Item Type: NewsGroup Date Entered: 9/29/2004 4:20:13 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 2 Views: 30 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
3 Items, 1 Pages 1 |< << Go >> >|
knighthawksyste
Asp.Net User
Custom Control Drag and Drop Problem9/29/2004 4:20:13 PM

0/0

I have created a custom control that used to drag and drop fine from the toolbox but now when I try to drag and drop it I get the nice symbol saying that can't be dropped here and I'm not sure what I changed to cause this. I have tried undoing everything I changed, that I can remember but I still can't figure out why it would stop working. Here is the code.


Imports System.ComponentModel
Imports System.Web.UI
Imports System.Web.UI.Design
Imports System.Web.UI.WebControls

<ToolboxData("<{0}:Javascript runat=""server""></{0}:Javascript>"), DefaultProperty("Text"), Designer("Javascript.JavascriptDesigner, javascript")> _
Public Class Javascript
Inherits Control

Private jscriptText As String
Private jscriptSource As String

<Browsable(True), Bindable(True), Category("Appearance"), Description("This is the javascript code that will be placed in the script tag.")> _
Public Property Text() As String
Get
Return jscriptText
End Get
Set(ByVal Value As String)
jscriptText = Value
End Set
End Property

<Browsable(True), Bindable(True), Category("Appearance"), Description("This is the html url(relative or absolute) that will be placed in the src attribute.")> _
Public Property Source() As String
Get
Return jscriptSource
End Get
Set(ByVal Value As String)
jscriptSource = Value
End Set
End Property

Public Sub New()
End Sub

Protected Overrides Sub Render(ByVal writer As System.Web.UI.HtmlTextWriter)
Dim output As String
writer.Write(vbCrLf)
writer.AddAttribute("type", "text/javascript")
writer.AddAttribute("language", "javascript")

If Not jscriptSource Is Nothing And jscriptSource <> "" Then
writer.AddAttribute("src", jscriptSource)
End If
writer.RenderBeginTag(System.Web.UI.HtmlTextWriterTag.Script)
If Not jscriptText Is Nothing And jscriptText <> "" Then
writer.WriteLine(jscriptText)
End If
writer.RenderEndTag()
End Sub
End Class
AndrewSeven
Asp.Net User
Re: Custom Control Drag and Drop Problem9/29/2004 7:23:20 PM

0/0

I've had that kind of issue a couple times and it seems to be related to old versions of the same control and/or references to different versions of the source assembly in the project or on the toolbox.

Try removing the controls from the toolbox and re adding them.

Try removing the references in the project.
knighthawksyste
Asp.Net User
Re: Custom Control Drag and Drop Problem9/29/2004 8:17:03 PM

0/0

I found it while the post was being approved and it was like you said. There was a conflict with an old version in the references that caused the problem. So I deleted it and it fixed the problem.
3 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Pro .NET 2.0 Windows Forms and Custom Controls in C#: From Professional to Expert Authors: Matthew MacDonald, Pages: 1037, Published: 2005
Windows Forms Programming in Visual Basic .NET Authors: Chris Sells, Justin Gehtland, Pages: 680, Published: 2003
Professional Web Parts and Custom Controls with ASP.NET 2.0 Authors: Peter Vogel, Pages: 449, Published: 2005
.NET Programming 10-minute Solutions: 10-Minute Solutions Authors: A. Russell Jones, Mike Gunderloy, Pages: 433, Published: 2004
Pro .NET 2.0 Windows Forms and Custom Controls in VB 2005 Authors: Matthew MacDonald, Pages: 1036, Published: 2006
Visual Basic 2008 Programmer's Reference: Programmer's Reference Authors: Rod Stephens, Pages: 1248, Published: 2008
User Interfaces in C#: Windows Forms and Custom Controls: Windows Forms and Custom Controls Authors: Matthew MacDonald, Pages: 624, Published: 2002
Beginning ASP.NET 2.0 in VB 2005: From Novice to Professional Authors: Matthew MacDonald, Pages: 1063, Published: 2006
Professional ASP.NET 2.0 Server Control and Component Development Authors: Shahram Khosravi, Pages: 1186, Published: 2006

Web:
MSDN Visual Studio Extensibility Custom control drag and drop ... Custom control drag and drop error in shell. ... problem was resolved and I was able to use the custom control and drag and drop onto any target web pages. ...
CodeProject: Silverlight Drag and Drop Custom Controls. Free ... Oct 25, 2008 ... How to create Custom Control and Drag and Drop Functionallity; Author: diego jose; Section: Silverlight; Chapter: Web Development.
CodeProject: Windows Forms, Custom Controls Part 1: Mastering ... I have humbly taken it upon myself to change that and hopefully help others learn more about Windows Forms, Drag and Drop and Custom Controls in general. ...
CodeProject: Creating an Ajax enabled Drag and Drop custom control ... Drag and Drop custom control; Author: Christopher Owen; Section: Miscellaneous; ... Yeah, I had this problem with the most stable release of Scriptacalous. ...
Drag-and-drop Custom Server Control(s) to / between WebPartsZone(s ... Drag-and-drop Custom Server Control(s) to / between WebPartsZone(s ... Channel 9 : Tracey Trewin: Tackling Tough Problems - From Math to XBox ...
A drag-and-drop custom edit control. Part 2 Feedback Report a problem Satisfaction survey. A drag-and-drop custom edit control. Part 2. Source, Windows/DOS Developer's Journal archive ...
TheMSsForum.com >> Dotnet >> Drag and drop problem - The Microsoft ... Thanks! Tag: Drag and drop problem Tag: 227413. 13 ยท Can I use a custom control in a cell of datagrid? Hi, In a cell of a winform datagrid I would like to ...
Custom Controls vs UserPane Controls and Drag/Drop I have a custom control that consists of a bevel button (with popup menu) and a text filed that is not editable, but must acept drag and drop. ...
Error rendering control while drag and drop People editor ... Jul 9, 2008 ... While drag and drop from visual studio toolbox into my class library I am getting this error "Error rendering control, Object reference not ...
Opera Browser Wiki :: Custom Buttons to Drag'n'Drop into your Opera Opera allows you to easily drag-n-drop custom buttons from a web page straight onto ... Page and Window Control; Menu; Mail; Fullscreen; Toolbar Control ...

Videos:
Waves GTR3 GTR3 is the best sounding virtual guitar amp and effects software in the world. Period. * 19 Guitar Amps * 7 Bass Amps * 22 Cabs * 2...
XML11: An Abstract Windowing Protocol Google TechTalks June 1, 2006 Arno Puder Arno Puder received his masters and Ph.D. in computer science and is currently working as an Assistant Prof...




Search This Site:










visible property of a labelcontrol

linkbutton in a control force a click on a page

godaddy and sql server

panel content gone when editing parent properties

about datagrid control build problem....

problem with panels inside usercontrols

the best service of asp .net 2.0

dispose (by the book) causes infinite loop!

attribute of custom control - surely there is away

composite control base question

creating a provider model

i cant use my computer as web server

custom webcontrol - "error creating control" error in designview

multi-assembly dll guru required

quick ad 2003 questions

options for creating rich email body

what firewall or other security to use?

gridview and header

asp:dropdownlist

generate css

web custom control with radiobuttons

inamingcontainer. (why unique names ????)

custom validation control

question on hosting

retrieving auto-generated dhtml client id server side?

html analyzer

how do i create a composite control w/ htmlanchor control and capture the onserverclick event in my main page?

loadpostdata in use....

controls.add in composite control that inherits another control

namespace in dll

  Privacy | Contact Us
All Times Are GMT