Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Setting category when dynamically uploading a document

Status
Not open for further replies.

f0z

Programmer
Jan 10, 2003
48
US
I'm sure that I'm just looking at this so long that I'm staring right at the answer but I just cant see it.

I just need to specify which category a document will belong to.

The VB.Net Code is as follows:

Code:
KnowDoc.Categories = Array(":Vehicles")

But I just cant get the damn thing to work with c#

I've tried this:

Code:
KnowDoc.Categories = new string[] {@":IT"};
but get an invalid index error.

Any Help is much appreciated cheers, foz.
 
just to close this off this is the code that I got working:

Code:
KnowDoc.Categories = new object[] {@":Category:SubCategory"};

I hope this helps someone else out there

f0z
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top