Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 09-02-2010
Member
 
Join Date: Nov 2009
Posts: 877
WebPart Connection in ASP.net

Hello, I am new in Programming and recently I have read one of the article on the WebPart Connection in Asp.net. I am not able to get the concept of it exactly. So, if you are having knowledge about it, then please provide me details about it, so I can able to understand it. So, if you know it, then please reply me. Thank you in advance.
Reply With Quote
  #2  
Old 09-02-2010
Member
 
Join Date: May 2008
Posts: 2,293
Re: WebPart Connection in ASP.net

If you check the elements of the Webpart then you will come to know that, the following are Main Elements of WebPart Connection :
  1. Connection Interface
  2. Connection types
    • Provider
    • Consumer
  3. Connection
  4. Connection Points :-
    • ProviderConnectionPoint
    • ConsumerConnectionPoint
Reply With Quote
  #3  
Old 09-02-2010
Member
 
Join Date: Oct 2005
Posts: 2,389
Re: WebPart Connection in ASP.net

If you want to Create Web Part connections then follow the steps below:
  • First you need to fix the data which you require on the Web Part Page
  • Now you need to add all of that Web Parts to the Web Part Page
  • Now you need to connect the Web Parts for achieving the result.
Reply With Quote
  #4  
Old 09-02-2010
Member
 
Join Date: May 2008
Posts: 2,383
Re: WebPart Connection in ASP.net

WebPart Connection in C#.net done as below:
Code:
public interface Testing
{
string MSG 
{ 
get;
}
}
WebPart Connection in vb.net done as below:
Code:
Public Interface Testing
ReadOnly Property MSG() As String
End Interface
Reply With Quote
  #5  
Old 09-02-2010
Member
 
Join Date: Apr 2008
Posts: 2,001
Re: WebPart Connection in ASP.net

If you want make connection between the webpart then you must need to follow the steps below:
  • First thing you must need to perfor is to define the interface which will help you to connect the two webparts.
  • Then it is necessary to make a Provider.
  • Then you need to create that connection and make connection.
  • This interface which you will create must be in PreRender.
Reply With Quote
  #6  
Old 09-02-2010
Member
 
Join Date: Feb 2008
Posts: 1,848
Re: WebPart Connection in ASP.net

If you want to create a user control in c# then you must need to make use of the following code:

Code:
<%@ Control Language="C#" ClassName="Provider" %>
<%@ Implements Interface="IMessage" %>
<script runat="server">
[ConnectionProvider("MSG")]
public IMSG GetMSG() 
{
return this;
}   
public string MSG 
{
get 
{
return MSGtextbox.Text;
}
}
</script>
<asp:TextBox Runat="server" ID="MSGtextbox" />
<asp:Button Runat="server" ID="btn" Text="Change the Text" />
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: , , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "WebPart Connection in ASP.net"
Thread Thread Starter Forum Replies Last Post
VPN Error 5 : No hostname exists for this connection entry. Unable to make VPN connection Xmen Networking & Security 9 14-05-2012 06:05 PM
Tips to optimize your Network Connection and Wireless Connection Computer_Freak Tips & Tweaks 3 18-01-2012 08:30 PM
only wireless connection and no ethernet connection in network connection honda91 Operating Systems 1 06-07-2011 07:43 AM
Create VPN connection results in Dial-up connection Blerim Windows Vista Network 3 01-01-2010 10:02 PM
Free Laptop With Reliance Connection with a net connection for Rs 1500 absolute55 India BroadBand 5 07-03-2009 12:22 AM


All times are GMT +5.5. The time now is 06:16 AM.