ASP.NET 1.0 and 1.1 BasicsASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.
You are currently viewing the ASP.NET 1.0 and 1.1 Basics section of the Wrox p2p Programmer to Programmer discussion community. This is a community of more than 40,000 computer programmers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining our free Wrox p2p community you can post your own programming questions and respond to other programmers’ questions. Registered users also don't have to see the ads that are displayed to guests. Registration is fast, simple and absolutely free so please, join today!
Join today and post to win prizes! Post more to increase your chances of being Wrox’s top poster of the month.
Public Class newdev
Inherits System.Web.UI.Page
Private dlgcolor As ColorDialog
Protected WithEvents lblcolor As System.Web.UI.WebControls.Label
Protected WithEvents lblerr As System.Web.UI.WebControls.Label
Protected WithEvents txtdevcode As System.Web.UI.WebControls.TextBox
Protected WithEvents txtdevname As System.Web.UI.WebControls.TextBox
Protected WithEvents Button1 As System.Web.UI.WebControls.Button
Protected WithEvents btnshow As System.Web.UI.WebControls.ImageButton
Protected WithEvents txtcolor As System.Web.UI.HtmlControls.HtmlInputText
Protected WithEvents Button2 As System.Web.UI.WebControls.Button
#Region " Web Form Designer Generated Code "
'This call is required by the Web Form Designer.
<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
End Sub
Private Sub Page_Init(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Init
'CODEGEN: This method call is required by the Web Form Designer
'Do not modify it using the code editor.
InitializeComponent()
End Sub
#End Region
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
'Put user code to initialize the page here
dlgcolor = New ColorDialog()
End Sub
Private Sub btnshow_Click(ByVal sender As System.Object, ByVal e As System.Web.UI.ImageClickEventArgs) Handles btnshow.Click
dlgcolor.ShowDialog()
End Sub
End Class
when I run the application and click on the button to view the dialogbox i am getting error
WindowsForms != WebForms. You can host winforms inside of webforms and the methodology to doing so is like calling a COM object (You have compile the file and then call it from your webform using the object tag)
"The one language all programmers understand is profanity."