Click here to Skip to main content
16,007,443 members
Home / Discussions / C#
   

C#

 
AnswerRe: How to empty a Text file? Pin
Rudolf Jan6-Apr-07 0:32
Rudolf Jan6-Apr-07 0:32 
Questionopen OR run File Pin
TAREQ F ABUZUHRI5-Apr-07 12:28
TAREQ F ABUZUHRI5-Apr-07 12:28 
AnswerRe: open OR run File Pin
Luc Pattyn5-Apr-07 12:37
sitebuilderLuc Pattyn5-Apr-07 12:37 
QuestionHex String Pin
AAKAra5-Apr-07 11:37
AAKAra5-Apr-07 11:37 
AnswerRe: Hex String Pin
Luc Pattyn5-Apr-07 12:44
sitebuilderLuc Pattyn5-Apr-07 12:44 
GeneralRe: Hex String Pin
AAKAra6-Apr-07 3:52
AAKAra6-Apr-07 3:52 
GeneralRe: Hex String Pin
Luc Pattyn6-Apr-07 4:11
sitebuilderLuc Pattyn6-Apr-07 4:11 
GeneralRe: Hex String Pin
AAKAra6-Apr-07 11:39
AAKAra6-Apr-07 11:39 
Again i am runing into problems.,
I am having difficulties in filling the byte array from the selected items in the listbox,

byte[] aGroup = new byte[1024];
string strKeyRingResXML = "";
string strSecurity = "<security>" + key + "";
string strKeyRingReqXML = "<iacdevrequest>" + strSecurity +
"<requestoperations><dump><options><onlinemode><object id="\""" +
="" stridhi="" +="" "."="" stridlo="" "\"="">";


strKeyRingResXML = ACDev.ProcessRequest(strKeyRingReqXML);

xmlDoc.LoadXml(strKeyRingResXML);

string strAttributesPath = "IACDEVRESPONSE/RESPONSEOPERATIONS/DUMP/OBJECT/ATTRIBUTE[@NAME='KeyRings']";
XmlNode keyringNode = xmlDoc.SelectSingleNode(strAttributesPath);
string keyring = keyringNode.InnerText;
aGroup = GetBytes(keyring);
aGroup contains 100 groups
Here comes the trouble,

I have a list box which filters for the unassignable groups(50-100) for this particular server but my database contains 1000 groups so that the user can see the other 50 or even 100 groups in someother sever.
I need to make changes to the byte array for only those items(from the 50 say i select 5 groups and deselect 2 groups),



for (int index = 0; index < count; index++)

{

if (SecurityGroups.Items[index].Selected)

I need to get the value set for that particular index in the byte array
i tried doing a
aGroup[SecurityGroups.Items[index].Value] = 1;
else
aGroup[SecurityGroups.Items[index].Value] = 0;
but this does not work

}

Can someone please suggest how to go about?
QuestionPDF Generation Tool Pin
RB@Emphasys5-Apr-07 10:33
RB@Emphasys5-Apr-07 10:33 
Questionhandle to process Pin
likefood5-Apr-07 8:16
likefood5-Apr-07 8:16 
AnswerRe: handle to process Pin
pbraun5-Apr-07 8:55
pbraun5-Apr-07 8:55 
GeneralRe: handle to process Pin
likefood5-Apr-07 13:22
likefood5-Apr-07 13:22 
Questionhow to code a administrator login page using C#.net and ASP.net 1.1 Pin
sudhanshuk3ito515-Apr-07 6:07
sudhanshuk3ito515-Apr-07 6:07 
AnswerRe: how to code a administrator login page using C#.net and ASP.net 1.1 Pin
Sathesh Sakthivel5-Apr-07 6:42
Sathesh Sakthivel5-Apr-07 6:42 
AnswerRe: how to code a administrator login page using C#.net and ASP.net 1.1 Pin
Not Active5-Apr-07 7:08
mentorNot Active5-Apr-07 7:08 
QuestionListBox Pin
AAKAra5-Apr-07 5:51
AAKAra5-Apr-07 5:51 
AnswerRe: ListBox Pin
kubben5-Apr-07 5:58
kubben5-Apr-07 5:58 
GeneralRe: ListBox Pin
AAKAra5-Apr-07 11:36
AAKAra5-Apr-07 11:36 
QuestionI don´t know how to access my components to the groupbox Pin
Ens805-Apr-07 5:50
Ens805-Apr-07 5:50 
AnswerRe: I don´t know how to access my components to the groupbox Pin
BoneSoft5-Apr-07 6:33
BoneSoft5-Apr-07 6:33 
GeneralRe: I don´t know how to access my components to the groupbox Pin
Ens805-Apr-07 7:56
Ens805-Apr-07 7:56 
GeneralRe: I don´t know how to access my components to the groupbox Pin
BoneSoft5-Apr-07 8:47
BoneSoft5-Apr-07 8:47 
GeneralRe: I don´t know how to access my components to the groupbox Pin
Ens805-Apr-07 13:19
Ens805-Apr-07 13:19 
QuestionDataTable Pin
joaquimc5-Apr-07 4:43
joaquimc5-Apr-07 4:43 
AnswerRe: DataTable Pin
Not Active5-Apr-07 5:07
mentorNot Active5-Apr-07 5:07 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.