|
Why you want to store into a dataset?
Best Regards,
Apurva Kaushal
|
|
|
|
|
Hi,
I have a problem. I have a dataset contains 8 tables. Each table contains 25,000-30,000 records. I want to insert all the records at a time. There is no primary key or foreign key constarints or no conditions to check. Just dumping to database. That's all. For that I used the below code. But no insertion is happening. Can anybody help please?
SqlDataAdapter PEOQCAdap=new SqlDataAdapter();
SqlCommand inscommand=new SqlCommand();
inscommand.Connection=SqlCon;
inscommand.CommandType=CommandType.StoredProcedure;
inscommand.CommandText="INSERT_NOISSUELEVEL";
inscommand.Parameters.Clear();
inscommand.Parameters.Add(new System.Data.SqlClient.SqlParameter("@VALUE1",System.Data.SqlDbType.VarChar,50,"VALUE"));
inscommand.Parameters.Add(new System.Data.SqlClient.SqlParameter("@ASTNDA",System.Data.SqlDbType.BigInt,8,"AST_FOR_NDA_ID"));
inscommand.Parameters.Add(new System.Data.SqlClient.SqlParameter("@ANALAYST",System.Data.SqlDbType.VarChar,50,"CREATE_BY"));
inscommand.Parameters.Add(new System.Data.SqlClient.SqlParameter("@CREATEDATE",System.Data.SqlDbType.NVarChar,50,"CREATE_DATE"));
inscommand.Parameters.Add(new System.Data.SqlClient.SqlParameter("@NDAID",System.Data.SqlDbType.BigInt,8,"NDA_ID"));
inscommand.Parameters.Add(new System.Data.SqlClient.SqlParameter("@COMPANY",System.Data.SqlDbType.VarChar,50,"COMPANY_NAME_AT_OFFER"));
PEOQCAdap.InsertCommand=inscommand;
PEOQCAdap.Update(ds.Tables[0]);
Any sort of help is great!!!
Thanks
Raja Raman S
Reuters India Pvt.Ltd.
Bangalore
|
|
|
|
|
hi
could someone please tell me how to read .resx file from the code.
note : in a web form
thank you all
Tamimi - Code
|
|
|
|
|
Resource files are Xml files, so you could use XmlTextReader or XmlDocument types.
If you want to access the information without dealing with Xml take a look at the ResourceManager class.
"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
|
|
|
|
|
|
Hi, I want create a Label with transparent Color as "Color.FromArgb(40, 0, 0, 255)"
how can I do?
Please help me
|
|
|
|
|
Please don't cross post.
---
b { font-weight: normal; }
|
|
|
|
|
Hello
You'd have to inherit your own class from class Label, and in your class call
SetStyle(ControlStyles.SupportTransparentBackColor, true);
Then change the BackColor as you like.
Regards
|
|
|
|
|
Hi,
Does any body know how to host multiple server channels in an exe, or is it possible to do that... I have a windows service and I need at least 2 server channels when I make a second call to TcpServerChannel constructor then and exception comes that the tcp channel is already registered...
Can any body help...
Thanks in advance...
Regards.
-- modified at 3:18 Wednesday 27th September, 2006
|
|
|
|
|
I have a webservice through which i have to access a specific folder and then hae to retrieve the list of some specific files (file name, date created, last modified) from that folder. I have done it successfully. Now i want to access this method of webservice in my c# application. I am confused to access this method. I am not sure what to return and how to return values from that method of webservice. I want to use file name, date created, and last modified date from that webservice to populate ListView in the C# application. can anybody help me by telling me what should be the return value of that webmethod of webservice?
Regards
sAqIb
|
|
|
|
|
Create a simple class that encapsulates the information and return an array og this class.
public class Info
{
public string Name;
public DateTime Created;
public DateTime LastModified;
}
[WebMethod]
public Info[] GetFiles()
{
return new Info[2];
}
"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
|
|
|
|
|
Hai,
I am eswar i am trying to read the items from the list box here in list box we can select multiple items how to read these multiple items from the listbox can any body help in this situation.
regards,
Eswar.
|
|
|
|
|
code> private void Form1_Load(object sender, System.EventArgs e)
{
for(int i=0;i<10;i++)
{
listBox1.Items.Add("this is" + i.ToString());
}
listBox1.SelectionMode = SelectionMode.MultiExtended;
}
private void button1_Click(object sender, System.EventArgs e)
{
for(int i=0;i<listbox1.selecteditems.count;i++)
{
="" messagebox.show(listbox1.selecteditems[i].tostring());
="" }
="" }<="" code="">
|
|
|
|
|
private void Form1_Load(object sender, System.EventArgs e)
{
for(int i=0;i<10;i++)
{
listBox1.Items.Add("this is" + i.ToString());
}
listBox1.SelectionMode = SelectionMode.MultiExtended;
}
private void button1_Click(object sender, System.EventArgs e)
{
for(int i=0;i
|
|
|
|
|
Hello
I have to show popup window using loop ,
On button click event if I call ShowInfoNotification() method the popup window comes,
But I have to show this in loop.
How can I do this,may I use thread here? how can I use sleep() method
private Utility.NotifierX objNotifierX = new Utility.NotifierX();
private void btnSubmit_Click(object sender, System.EventArgs e)
{
objNotifierX.ShowInfoNotification("test");
}
Yogesh_T
|
|
|
|
|
|
Good luck. Let os know if you need any help by asking a specific question when you are stuck.
|
|
|
|
|
I have three 3 projects in my solution. One for connecting to database. One for giving the general class files and one front end. In connection project i have defined two class for different connections. I want to create a object of this classes in the general project dynamically based on a value in the app.config file. where can i give this object creation? i tried in main function, but as it in front end project its not working.
Plz help
regards
Hari
|
|
|
|
|
Hi guys
i am doing a desktop application in C#. I have two master forms. in a child form i want to inhert any one of a master form dynamically based on a value (say msdesign). How can i do this?
Regards
Hari
aspspider.net/rkharikrishnan
|
|
|
|
|
Hello to all,
Is there a way to add a meta data or tag to each frame of the TIF image? I have a project that gets a certain frame from a TIF file. The frame will be saved or appended to another TIF file which already has an existing frame in it. My problem is that I need to save the name of the file from which the frame originated and what page. For example, frame 0 is from file: TIF1.TIF and frame 1 is from TIF4.TIF and frame 2 is from TIF2.TIF.
Thanks in advance.
|
|
|
|
|
The TIF format allows for such metadata, I think there are some code samples on how to do this, but I'm not sure where I've seen them. Have you googled ?
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Hello,
I'm a new to C# and am practicing Image Processing Code with C#.
I practiced a very simple code:
1. One MenuStrip (menuStrip1) which holds File->Open
2. One PictureBox (pictureBox1)
Just read from image file and display it on PictureBox.
Moreover, I want to add scroll bar if the image size is bigger than the initial form.
Here code fragment for reading image and set the AutoScroll and AutoScrollMinSize.
private void openToolStripMenuItem_Click(object sender, EventArgs e)<br />
{<br />
<br />
...<br />
img = Image.FromFile(openFileDialog1.FileName);<br />
this.AutoScroll = true;<br />
this.AutoScrollMinSize = img.Size;<br />
<br />
pictureBox1.Image = img;<br />
...<br />
}
However, I found some defects that if I move the scroll bar in X or Y then the MenuStrip is also moved.
How can I fix this problem? That is, I want to scroll only the image on PictureBox.
Regards,
-- modified at 22:43 Tuesday 26th September, 2006
|
|
|
|
|
Hi,
I created a dataset with the designer of the VS 05 and added a query into it.
I found out that this query takes some time on slow computers and I want to make the CommandTimeout larger.
I checked the properties of the query and I can change several parameters like the CommandText and the CommandType, but the CommandTimeout is missing.
I don't want to change the CommandTimeout within the code generated by the designer, because it will be deleted each time I update the scheme.
So how can I do this without changing the designer's code?
I thought about using partial class, but I don't have an idea of how to do this.
Ami
|
|
|
|
|
I have C# application in .Net 1.1 that is trying to move a file using the File.Move() method.
It catches the following IOException.
System.IO.IOException: The process cannot access the file "C:\DOCUME~1\autolab\LOCALS~1\Temp\QbgEsQueues\trwq\1083.S2R.processing" because it is being used by another process.
at System.IO.__Error.WinIOError(Int32 errorCode, String str)
at System.IO.File.Move(String sourceFileName, String destFileName)
at QBGES.InterprocessBase.GetNextMessage()
Is there a way for me to find out which process was accessing the file, to cause the File.Move() to fail?
Thanks.
ssalem
|
|
|
|
|
Did your code create the file ? Did you remember to call the Close method on the file ? If this is not the problem, then I'm not sure how you can find out who the culprit is. But, it looks to me like a temp file that's been created by a process which is probably using it, and will delete it when done.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|