|
i tried it but split string into 2 parts.....i dont know how to use same for my result,please tell me.
|
|
|
|
|
string []substrings = yourstring.Split(new char[] { '/' });
string k1 = substrings[0];
string k2 = substrings[1];
|
|
|
|
|
Hey my k1 shows all string instead of 1st substring.n giving out of range error for k2.
|
|
|
|
|
|
Doesn't work...giving error as above msg.
|
|
|
|
|
KIDYA wrote: ""AAR"/"KKK"/"MMR""
Do you not see anything wrong with that? "AAR/KKK/MMR" would work.
Do you want to escape the speech marks? Use \".
My failometer is detecting vast quantities of FAIL!
"Its SQL - hardly programming..." (Caslen)
|
|
|
|
|
It works....Thanx...
|
|
|
|
|
hello
what's the diff between lock(Employees.SyncRoot) and lock(Employees)?
(Employees can be any ICollection, ArrayList, Hashtable what not .. don't matter)
Thanks
dev
|
|
|
|
|
The SyncRoot property is used when you create synchronized collections using the .Synchronized() method. All operations on the synchronized collection lock on the object returned by the SyncRoot property. Creating synchronized collections using Synchronized() is not recommended though, because just making individual operations threadsafe usually isn't enough.
Other than that, it doesn't really matter.
|
|
|
|
|
|
yeah thanks saw that seems like it's just a long way of saying "yes it's pretty useless"
dev
|
|
|
|
|
Hello Experts......
i have problem in my dataset has a table which i retrieve from a file,now i want to copy values from dataset to table.i used SQLBULKCOPY but cant work.
Help me!!
My Code:-
<pre>
DataTable dt= ds.Tables["MyNewTable"]; // This is a table i have in my dataset
using (SqlBulkCopy bc = new SqlBulkCopy(conn))
{
conn.Open();
bc.DestinationTableName = "dbo.XYZ"; // This is a table wid same schema as MyNewTable.
// Starts the bulk copy.
DataTable dt1=new DataTable("MyNewTable");
bc.WriteToServer(dt); ;
// Closes the SqlBulkCopy instance
bc.Close();
}
|
|
|
|
|
Hi there,
What kind of error you are getting ?! if no exception then did you make sure that the source datatable has data? and is the connection string correct to be for the destination database ?!
Sincerely Samer Abu Rabie
Imagination is more important than knowledge !
|
|
|
|
|
i am retriving d values in dataset from text file and i want to copy dataset values in d table,.n there was no any error in above code.
|
|
|
|
|
Are you certain about the connection string and there is data in the source datatable ?!
Sincerely Samer Abu Rabie
Imagination is more important than knowledge !
|
|
|
|
|
ya.my connection is ok.passing accurate connection string.and dataset gives data also.i checked using datareader.
tell me how to bind datasource to table.i have same schema table in my database.
|
|
|
|
|
Hi all
How do i delete a temporary html file if i store a html file in
C:\temp
or my html file is: testing.html
How do i delete it ?
Thank You
|
|
|
|
|
You can use File.Delete method: [^]
Nuri
|
|
|
|
|
string path = @"c:\temp\testing.html";
File.Delete(path);
Thanks,
A.m.a.L
|
|
|
|
|
Hi,
I need to write a program that sendes some keystrokes, strings and other values to another application.
I look for an article/tutorial for that goal.
|
|
|
|
|
Here is an article for sending keystokes: [^]
Nuri
|
|
|
|
|
10x..
I have 2 more questions:
1. I think I will have to use the spy++ tool. Where can I find the ttol and a tutorial of for it?
2. Is it possible to send keystorkes to websites?
|
|
|
|
|
Use a webbrowser control and load the webpage inside it.
Thanks,
A.m.a.L
|
|
|
|
|
Hi Guys
Here's the description of the licensing component I've created: -
1. I created a pair of asymmetric keys using RSA algorithm. I embeded the "public key" into the code and kept the "private key" securely with me.
2. Now, when a user tries to run the program, the program looks into registry for a valid license string. If not found, it does the following: -
a. It pulls out a string comprising of the MAC-ID and CPU-ID and hashes it using MD5 algorithms.
b. The above hash is sent back to me by the user.
c. I sign this hash using my private key, and add the start-date and end-date for the license period, and create a license string for the user. This I send back to the user and he enters this into the program.
d. The program, now verifies the signature of this license using the public key. If successful, it matches the MAC-ID and CPU-ID to make sure that the license is intended for this very computer hardware. it then saves this license key into registry to perform the license validation everytime the program is run.
It all works fine, except the following - Let's say I've provided the license for the period between 01 Jan 2009 to 31 Dec 2009. The license is valid as long as the local date on computer of the user is within this range. This means the user can change the date and keep running the program even if the license period expires. I know this is a standard problem, and I also hope this must have been solved. All I'm looking forward is to fix this.
Pls suggest.
Sunny
|
|
|
|
|
Hi!
Either you contact an internet time server to find out the correct time or you save the last time your application was used somewhere on the user's computer (using a symmetric encryption) and compare the current (local) time to this value to find out whether tha local time has been modified.
Regards,
mav
--
Black holes are the places where God divided by 0...
|
|
|
|