|
Hi Friend'z...
I want to update the database table from datagrid itself placed on form. how can i do that?
I placed one datagrid,one button for showing table data in datagrid, one update button for updating database.
what i mean is after the table is shown in datagrid, if we change the data in datagrid, then by clicking the update button, the database table should be updated.
pl help me friend'z.......
|
|
|
|
|
update the data source....
When you get mad...THINK twice that the only advice
Tamimi - Code
|
|
|
|
|
if u don't know the answer shut up & keep quiet ok? mind it.
|
|
|
|
|
tamimi-code,
i mean to say u only. ok shut up.
|
|
|
|
|
man !!!!!!!!!!!!!!!
i am trying to help you , idiot.
what is the data source for you data grid ??
just update the data adapter, if it has a valid sql commands
When you get mad...THINK twice that the only advice
Tamimi - Code
|
|
|
|
|
Tamimi code,
pl mind ur language. ok? then try to help others...
|
|
|
|
|
I can able to view my entire assembly using Lutz Roeder’s Reflector Tool.
.NET Reflector, which is a class browser and decompiler that can examine an assembly and show you just about all of its secrets.
but, How do I encrypt or protect my MSIL and cannot be read? Which means, I would like to completely eliminate the metadata information stored in my assemblies such as class and methods names. I can do so using the obfuscator tools offered by various vendors. But, how do I enforce a restriction on a class or method and all its members by pure code.
Karthik
|
|
|
|
|
You can't, as far as I know. You need to obfuscate the compiled assemblies.
|
|
|
|
|
Thanks for the reply. how do i obfuscate my assembly through code or project settings?
|
|
|
|
|
I guess you could use a Post-build event to call the obfuscator, although I've never done that.
|
|
|
|
|
You cannot remove the metadata information, it's required for the .NET runtime.
What you can do is renaming all yours classes, methods, and variables. One can still get the code, but its nearly impossible to understand it when everything is named a,b,c,...
Obfuscators are tools that automatically do this renaming in compiled assemblies. They also change the assembly in other ways to make it harder to understand; or try to introduce IL constructs that crash the decompiler.
|
|
|
|
|
Is there any free obfuscator tools?
|
|
|
|
|
hi,
xmlDocument doc=new xmldocument();
doc.Load(@"D:\workjjf\scripts\xml\MajorKeys.xml");
if the file doesn't exsist how to handle the error and how to create a root node to enter values..
pls help me
with regards
prasad
|
|
|
|
|
XmlDocument doc=new XmlDocument();
if (File.Exists(@"D:\workjjf\scripts\xml\MajorKeys.xml"))
{
doc.Load(@"D:\workjjf\scripts\xml\MajorKeys.xml");
}
else
{
XmlTextWriter tw = new XmlTextWriter(filename,null);
tw.Formatting = Formatting.Indented;
tw.WriteStartDocument();
tw.WriteStartElement("cd");
tw.WriteStartElement("genre","Rock and Roll");
tw.WriteAttributeString("SKU","3224554");
tw.WriteElementString("artist","Crystal Method");
tw.WriteElementString("title","Crash Vegas");
tw.WriteEndElement();
tw.WriteEndElement();
tw.WriteEndDocument();
tw.Flush();
tw.Close();
}
-----------------------------
In just two days, tomorrow will be yesterday.
|
|
|
|
|
|
Yes. If your array has 20 numbers in it, generate a number between 0 and 19 and use it as an index into that array.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Random r = new Random((int) DateTime.Now.Ticks);<br />
yourValue = yourArray[r.Next(yourArray.Length - 1)];
Cheers,
Vikram.
The cold will freeze our stares
We won't care... Join the CP group at NationStates. Password: byalmightybob
|
|
|
|
|
No but you can always post a thread here asking for one.
led mike
|
|
|
|
|
I want to get the element on a certain position in an ArrayList.
However, I didn't see any method for that.
I guess I can do it with a foreach and a counter, but this seems quite odd to me, as the ArrayList contains the method RemoveAt() which removes an element at a certain position.
What do you say?
|
|
|
|
|
It's just array indexing.
ArrayList ar = new ArrayList();
object o = ar[0]; // assuming you'd put something in there in between, of course.
If you're using .NET 2.0, never use ArrayList, use List instead, as it's typesafe.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Christian Graus wrote: use List instead
Wouldn't you want to use List<> instead?
_____________________________________________________________________
Our developers never release
code. Rather, it tends to escape, pillaging the countryside all around.
The Enlightenment Project (paraphrased comment)
Visit Me at GISDevCafe
|
|
|
|
|
There is no non-generic List, AFAIK. If there is, yes, I meant to use the generic one.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
|
Hello everyone!
OK, my program has to send me a single string once it is run on the user's computer.
For some strange reason my router isn't routing ports, so I can't make a program that sits there waiting for this string.
Maybe e-mail or another protocol I don't know of?
I wouldn't want the user's antivirus popping up with an error when sending the email, because then the user will think it's a virus and flame me out. Plus it's annoying, and I want my app to be 'smooth'.
I was thinking FTP, but then I'd have to put my username/password on the program and then they'll be able to see it by decompiling, and that's easy to do with C#.
What's the best option? Thanks!
Windows Calculator told me I will die at 28.
|
|
|
|
|
I was wondering if someone could point me in the right direction on this one. I need to write an app that can look at all the programs running on a pc, determine which ones are IE windows, and then read the contents of the loaded web page(s). I am familiar with scraping through web pages using the built in 2.0 browser, but this needs to be able to look over a regular browser window. Mostly, I am looking for the namespace to use to access another program with a c# app.
______________________
Mr Griffin, eleventy billion is not a number...
|
|
|
|