How to create custom Data View web part in .NET?
Windows Server Forum Index Windows Server
Server discussion on Windows platform.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web winserverhelp.com
How to create custom Data View web part in .NET?

 
Post new topic   Reply to topic    Windows Server Forum Index -> Portal Server Development
Author Message
Guest






Posted: Thu Jan 20, 2005 5:46 pm    Post subject: How to create custom Data View web part in .NET? Reply with quote

I am using WSS SDK to create my custom web part which contains a Data
View control.

I got the following code from somewhere, but i really dont know how to
make it work.

DataViewWebPart _mydataview = new DataViewWebPart();
_mydataview.DataFields = DATAFIELDS;
_mydataview.DataQuery = DATAQUERY;
_mydataview.Xsl = XSL;
Controls.Add (_mydataview);

What should i pass in DATAFIELDS, DATAQUERY & XSL values.

One more thing, i want to populate this Data View with data from two
external sharepoint web sites.

Thanks,
Shanker
Back to top
Mike Linster
Guest





Posted: Thu Jan 20, 2005 11:11 pm    Post subject: RE: How to create custom Data View web part in .NET? Reply with quote

I would suggest not using the code you are using for the DataView, it is not
documented and will not be as stable as you want. I would however suggest
using any of the the normal data access techniques in .NET either datasets or
the like. That way you can control all of the view of the data.

HTH
Mike

"dshanker24@hotmail.com" wrote:

Quote:
I am using WSS SDK to create my custom web part which contains a Data
View control.

I got the following code from somewhere, but i really dont know how to
make it work.

DataViewWebPart _mydataview = new DataViewWebPart();
_mydataview.DataFields = DATAFIELDS;
_mydataview.DataQuery = DATAQUERY;
_mydataview.Xsl = XSL;
Controls.Add (_mydataview);

What should i pass in DATAFIELDS, DATAQUERY & XSL values.

One more thing, i want to populate this Data View with data from two
external sharepoint web sites.

Thanks,
Shanker

Back to top
 
Post new topic   Reply to topic    Windows Server Forum Index -> Portal Server Development All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




New Topics Powered by phpBB