Guest
|
Posted:
Thu Jan 20, 2005 5:46 pm Post subject:
How to create custom Data View web part in .NET? |
|
|
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 |
|
Mike Linster
Guest
|
Posted:
Thu Jan 20, 2005 11:11 pm Post subject:
RE: How to create custom Data View web part in .NET? |
|
|
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
|
|
|