<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Web Forms</title><link>http://forums.asp.net/18.aspx</link><description>All about building ASP.NET Pages - server controls, events, validation, etc.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>How to overload a method to accept a web form?</title><link>http://forums.asp.net/thread/3275216.aspx</link><pubDate>Sun, 05 Jul 2009 08:47:35 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3275216</guid><dc:creator>rickymartin211</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3275216.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=18&amp;PostID=3275216</wfw:commentRss><description>Hi, 

I use MVC a a programming pattern, in Win apps i simply pass the form to the controller. 

Assume form is frm1

[code=vb]
Public class frm1
	inherits Form

	&amp;#39;code

Sub button_click()
	Dim c as Controller1 = new COntroller1()
	c.SenTo(Me)	
en sub
end class


&amp;#39;controller class

public class Controller1

	Sub New()

	End sub

	Sub SendTO(byref f as frm1)
		&amp;#39;code
	end sub
end class



But Assume i have used the same controller and i have webform called Brand that has the implememtation:
[code=vb]
Partial Class BrandAdmin
    Inherits System.Web.UI.Page


end class



I know i have to overload teh SendTo(). But what should be the type of teh parameter to accept the web form?


cheer</description></item></channel></rss>