|
it has been like that the whole week long; people should stop replying till he finally gets it.
|
|
|
|
|
Luc Pattyn wrote: it has been like that the whole week long
I did not know that. I tried to answer the question in all earnest.
Too much of heaven can bring you underground
Heaven can always turn around
Too much of heaven, our life is all hell bound
Heaven, the kill that makes no sound
|
|
|
|
|
I want to mention the following:
1. Sorry1 If i am formatting the statements incorrectly, can you point me to directions o0n how to format the comments and how to format the code? it looks like the last time I formatted a question, it was formatted exactly like the code block?
How do you format the code separate from comments (statements)?
2. The directory services name space works very well. however the code wants a ldap path. Is that something from code i can find or do I need to find out this ldap path from the network administrator?
|
|
|
|
|
dcof wrote: 1. Sorry1 If i am formatting the statements incorrectly, can you point me to directions o0n how to format the comments and how to format the code? it looks like the last time I formatted a question, it was formatted exactly like the code block?
You can always edit your question even now and format it within pre tags.
dcof wrote: 2. The directory services name space works very well. however the code wants a ldap path. Is that something from code i can find or do I need to find out this ldap path from the network administrator?
Do you mean the Active Directory Server? This thread[^] talks about a solution. But it uses COM within it.
I don't know if there is a managed way.
Too much of heaven can bring you underground
Heaven can always turn around
Too much of heaven, our life is all hell bound
Heaven, the kill that makes no sound
|
|
|
|
|
Apparently I am not formatting my post correct. Can you point me to a url where the post is formatted ok? How do you get the comments separated from the code?
|
|
|
|
|
You put the code inside the "pre" tags, and you put your comments outside the "pre" tags.
The difficult we do right away...
...the impossible takes slightly longer.
|
|
|
|
|
I will do that from now on.
You put the code inside the "pre" tags, and you put your comments outside the "pre" tags.
Is this post ok?
|
|
|
|
|
Easy:
This is text - it has no formatting.
This is a code block
It starts with a <pre> tag, and ends with a closing </pre> tag.
You can hold your mouse over the word "code" just above the textbox where you type your message, and it will provide you with a list of the "known" code block types.
When you paste, on the right hand side of your screen is a popup with options for the paste - if you are pasting text and code, then select 'HTML "as is"' and it will be pasted unformatted. You can then apply appropriate formatting to just the relevant sections.
The advantage is that the formatting preserves indentation, and visually separates the code from the problem description - makes it easier for us all to read!
Real men don't use instructions. They are only the manufacturers opinion on how to put the thing together.
Manfred R. Bihy: "Looks as if OP is learning resistant."
|
|
|
|
|
Thank you for showing me how to format the statements!
|
|
|
|
|
|
|
Most questions on these forums are well formatted, here[^] is a short example, and here[^] a longer one. All easy to read and hence getting more, earlier and better replies.
BTW: For more information on CodeProject's PRE tags, I wrote this tip[^].
|
|
|
|
|
|
|
Based on this article[^], it looks like you are missing permissions to view the birthdate. Have a look at the discussions at the end of this link.
Too much of heaven can bring you underground
Heaven can always turn around
Too much of heaven, our life is all hell bound
Heaven, the kill that makes no sound
|
|
|
|
|
Hello,
WE are having a bit of issue, trying to save the iframe's form data to database.
we are saving this form data to a textbox as a hidden field, using javascript, then trying to write this textbox to the database in the code behind. for some reason the textbox in code behind is empty and not writing to the database. is there a work around for this?
Thanks.
|
|
|
|
|
Well, you're posting a java question in a C# forum, ya get what you pay for... so here's one of many C# solutions.......
Serialize the iframe instance, store it in a binary database field
If iframe isn't Serializable, make your own class that inherits iframe and use that instead
Here's an example of how to do something similar. note, when serializing something, it's best to just serialize the data structure and rebuild the class from that
Using Serialization to Persist TreeView Control (VB.NET)[^]
|
|
|
|
|
I am trying to add a range of arrays to al istview from 3 files. My arrays are decalred as:
string[] sn = File.ReadAllLines("serverList.txt");
string[] sl = File.ReadAllLines("serverLocation.txt");
string[] st = File.ReadAllLines("serverType.txt");
But when I use:
ListViewItem lvi = new ListViewItem();
lvi = lv.Items.AddRange(sn);
lvi.SubItems.AddRange(sl);
lvi.SubItems.AddRange(st);
Its tells me the addrange taked invalid arguments, why?
|
|
|
|
|
The AddRange[^] method has two overloads, one takes in a ListViewItemCollection object and the other takes in a Generic Array of ListViewItem objects.
You are trying to pass a string array which cannot be implicity convered to either of the required objects stated above.
To acheive what you are trying to do, you must iterate through the string arrays, build a List<ListViewItem> object and pass it to the AddRange method.
|
|
|
|
|
ListView.Items.Add() is horridly slow. So you're onto the right idea when adding a lot of things
This may help you
ArrayList al = new ArrayList();
foreach ()
{
ListViewItem lvi = new ListViewItem();
lvi.Text = "This is a ListView Item";
lvi.SubItems.Add("This is for 2nd column text when ListView.View == Details");
lvi.SubItems.Add("This is for 3rd column text when ListView.View == Details");
al.Add(lvi);
}
Type t = typeof(ListViewItem);
this._listView.SuspendLayout();
this._listView.Items.AddRange(al.ToArray(t) as ListViewItem[]);
this._listView.ResumeLayout();
That's the general idea behind AddRange(). It speeds things up when adding ListViewItems.
Depending on what you want your output to look like, take the above and modify it to build up some ArrayLists from your string[] fields
|
|
|
|
|
There are some simple ways to add a ListViewItem: (this example assumes a ListView with four columns defined, and View = Details):
listView1.Items.Add(new ListViewItem(new[] { "1", "2", "3", "4" })); My guess is there's some neat trick involving Linq where you could take the three lists the OP describes and get them into usable shape (but that's beyond my weirding-powers) .
best, Bill
"Is it a fact - or have I dreamt it - that, by means of electricity, the world of matter has become a great nerve, vibrating thousands of miles in a breathless point of time? Rather, the round globe is a vast head, a brain, instinct with intelligence!" - Nathanial Hawthorne, House of the Seven Gables
|
|
|
|
|
Hi
I heard sth about the programs written by .net language like C# or VB.net which was this that the sources of these programs can be Easily undrestood. Means if you create an application with .Net then a cracker can Esaily get the source of your app with no limitation, All of the source codes!!!! this is really bad! IS IT TRUE?!?!
im just worried about that. i dont want the complete source of some programs (alothough simple) that i programs be in hands of some crakcers. and i heard that the source of programs written by languages for example like Delphi or python can not be decompiled completely! is .Net this much unsafe??!?!?!
BTW i don't want to use any Protector.
if it is true tell me plz and if there is any way to not to allow crackers access to ur codes.
Thanks
|
|
|
|
|
There are numerous obfuscation solutions available for .NET applications, including a free version of one that comes with Visual Studio, and then there are 3rd. party controls ranging from less expensive to pricey.
And last, there are hardware solutions, like dongles.
Suggest you do some research on the web about what's available rather than listening to rumors.
best, Bill
"Is it a fact - or have I dreamt it - that, by means of electricity, the world of matter has become a great nerve, vibrating thousands of miles in a breathless point of time? Rather, the round globe is a vast head, a brain, instinct with intelligence!" - Nathanial Hawthorne, House of the Seven Gables
|
|
|
|
|
There are tools specifically designed to make reverse engineering harder.
But yes it is kind of easy.
On the other hand think about the fact that windows, games.. get craked all the time.
Having the skills and some time everything can be reversed engineered.
So, one could make it harder for hackers to crack their code, but IMO there is no such thing as irreversible/uncrackable code.
All the best,
Dan
|
|
|
|
|
Hamed Hemati wrote: sth
Not a word.
Hamed Hemati wrote: can be Easily undrestood
So what?
Hamed Hemati wrote: this is really bad
No it isn't.
Hamed Hemati wrote: IS IT TRUE
Yes, but not exactly.
Hamed Hemati wrote: im just worried about that
Don't.
Hamed Hemati wrote: i dont want the complete source of some programs (alothough simple) that i
programs be in hands of some crakcers
I only publish source code anyway.
Hamed Hemati wrote: is .Net this much unsafe
There is nothing unsafe about it.
modified on Friday, September 2, 2011 8:14 PM
|
|
|
|