|
You should use blob operations. Do something like this:
SqlCommand command= new SqlCommand("UPDATE bla VALUES (@picture)",connection);
command.Parameters.Add("@picture", SqlDbType.Image, m_lImageFileLength).Value = m_barrImg;
ADO.NET then takes care of your picture in the correct way because you definied the correct type (SqlDbType.Image)
|
|
|
|
|
hai thank u for ur reply. i got it and updated using stored procedure.
|
|
|
|
|
Hi
Can anyone help me out in adding a design script to a script component in SSIS using C#
Tarsha
|
|
|
|
|
Dear All,
How do i read the database name and File Size and File growth Which i will provide in the XML File
How do extract the only the dbname from the XML File i specified here.
like
<xml>
<databasename>
<id> dbname
<name> shiv
<filesize>
<id> size
<value> 10
With GreatRegards,
Siva
|
|
|
|
|
u can use
dataset's readxml method
but u have to keep data in xml file
under proper tags.
rahul
|
|
|
|
|
Hi,
try to use a proper subject line.
Best Regards,
Apurva Kaushal
|
|
|
|
|
hi,
u can keep the items organised in proper tags like
<xml>
<dbname>shiv
<filesize>10
then u can declare a class
say
class DB
{
public string DbName;
public int Size;
}
then call deserialise method .
please refer deserialise method for proper syntax.
those who win are those who believe they can
|
|
|
|
|
Does anyone know what the C# equivalent of PHP crypt() function is?
Basically, PHP's crypt() is one-way encryption of data using DES or MD5 etc.
we used PHP's crypt() function to store passwords in database.
We are now migrating the application to C#. But the encrytion results in different results.
Worse yet, the DES encrption in C# is a two-way encryption, but the same in PHP's crypt() is one-way.
I've been searching for useful information everywhere but in vain.
Any help is greatly appreciated.
Thanks!
|
|
|
|
|
System.Cryptography has MD5 and other algorithms built in.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
I use ControlPaint.FillReversibleRectangle to create a rectangle black on a white usercontrol background.
I want to creare a blue rectangle as a Selection rectangle.
how?
|
|
|
|
|
How do you use .split("key") without losing "key" from the seperation? I know this is possible using perl, but not sure about C#. Anyone have a solution?
|
|
|
|
|
If you use Regex.Split, you can use capturing groups to get the string you are splitting on in the result, or even parts of it.
Regex splitter = new Regex("(key)");<br />
string[] result = splitter.Split(theString);
---
b { font-weight: normal; }
|
|
|
|
|
Hey... So I'm pretty close to the ending of my project but now it's alot of problems.
I am following a link I'll give you in a sec, that tells the computer that files with endings of .ysl will open with my program.
so this is the link: http://www.codeproject.com/script/comments/forums.asp?msg=1479279&forumid=1649#xx1479279xx[^]
and this is the code I've generated:
Microsoft.Win32.RegistryKey YSL = Microsoft.Win32.Registry.ClassesRoot.CreateSubKey(".ysl");
YSL.SetValue("", "YSL");
Microsoft.Win32.RegistryKey YSLSub = YSL.CreateSubKey("YSL");
Microsoft.Win32.RegistryKey DefaultIcon = YSLSub.CreateSubKey("DefaultIcon");
Microsoft.Win32.RegistryKey shell = YSLSub.CreateSubKey("shell");
DefaultIcon.SetValue("", Application.ExecutablePath + "0");
Microsoft.Win32.RegistryKey Open = shell.CreateSubKey("open");
Microsoft.Win32.RegistryKey Command = shell.CreateSubKey("command");
Command.SetValue("", Application.ExecutablePath + " %1");
Now I don't know if that's correct so that's why I need you here.
Another thing, is that I want to know if there is already that key, so I wouldn't run this twice.
If I'll remember on something else I'll add here.
Thanks, NaNg.
|
|
|
|
|
Has anyone else found a bug when setting the wrap mode to Clamp
LinearGradientBrush lb = new LinearGradientBrush(new Rectangle(0, 0, this.Width, 300), Color.FromArgb(199, 213, 254), Color.White, LinearGradientMode.Horizontal );
lb.GammaCorrection = true;
lb.WrapMode = System.Drawing.Drawing2D.WrapMode.Clamp;
this works in all aother enum values except Clamp.
Nick
1 line of code equals many bugs. So don't write any!!
|
|
|
|
|
Mainly I wanna check for what operating system the user is using.
Focusly I wanna check if a user has a Registry Keys (I assume there is only in Microsoft's products).
Can anyone help me with that?
I know it's not realy hard, but I'm looking at the focusly...
Thanks in advance...
NaNg.
|
|
|
|
|
Use : System.Environment.OSVersion.ToString();
|
|
|
|
|
I just spent a couple of hours reading about Windows forms and didn't find anything that tells me how I can pass some data, or a class, or an object, or something to a form.
Kinda miss the old days when you could just stash/pass pointers all over the place
Thanks
NIK
|
|
|
|
|
Here is one option
1) Expose a public property on the Form to hold/receive the desired data.
2) After instantiating the form object, but before calling ShowDialog, set the property with the relevant data.
Appears to work too.
|
|
|
|
|
3) Define a constructor that takes the desired data as parameter.
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook
www.troschuetz.de
|
|
|
|
|
Too easy, too clean, no way )
So obvious, it never occurred to me, I'm still stuck in the old paradigm.
Thanks
NIK
|
|
|
|
|
Hi,
does anyone know how to get the language information for a given string?
thanks!!
Alan Shen
MCAD for .NET Version
^~^~^~^~^~^~^~^~^~^~^
Great idea is the beginging of success!
|
|
|
|
|
A string does not contain any language information. If you create a class with 2 properties (string and CultureInfo) then you can get the information of the string. Just look at CultureInfo to get the language.
|
|
|
|
|
Ok, I am having a problem with a workflow and need some thoughts!
I have a form that binds to a .Net 2.0 Dataset. This dataset is made up of 1 main table and 3 sub tables. I need to be able to do a insert into the first table of the main data, then insert the many-one rows for the sub tables.
How do I structure this using the DotNet 2 Datasets?, I don't want to do a mainform/subform flow, but a datagrid or something along those lines.
Suggestions??
Thanks;
Dave
You are only as good as your last project.
|
|
|
|
|
Hey, I want to have a help button (a button with "?"), but I can't find it...
How can I add it to my form?
|
|
|
|
|
Maybe the Form.HelpButton property?
You know you're a Land Rover owner when the best route from point A to point B is through the mud.
Ed
|
|
|
|