|
I have create one xml from one dataTable.
DataTable dt=new DataTabel();
.................
oleDbCommand1.CommandText = "SELECT * From ss";
adapt = new OleDbDataAdapter(oleDbCommand1);
...............
adapt.Fill(dt, "one");
dt.WriteXml("dei.xml");
the xml is like this:
<one>
<unu> string <\unu>
<\one>
<one>
<unu> double <\unu>
<\one>
<one>
<unu> float <\unu>
<\one>
i need to create :
<one>
<unu> string <\unu>
<unu> double <\unu>
<unu> float <\unu>
<\one>
-- modified at 4:54 Wednesday 14th March, 2007
|
|
|
|
|
Add this datatable to a dataset names one. Then use dataste writexml method..
I am not sure..It's a wild guess
|
|
|
|
|
no works that
|
|
|
|
|
I'm a beginner. I opened a new form and want to close old form. But I don't know how to close old form. Help me!
Thank you everybody.
|
|
|
|
|
|
You can hide the old form
Form2 form=new Form2();
this.Hide();
form.Show();
... but it is a problem if you close the form2 the program run in background
|
|
|
|
|
ya so when form2 is closed,
please use a similar piece to show any other form, from which u can proceed.
Keshav Kamat
India
|
|
|
|
|
if you want to close the application you need to use
Application.Exit();
|
|
|
|
|
Don't close the form where static void main is there. Entire application will be closed !!!!!!!!!!
|
|
|
|
|
Hello All,
While creating a database, i have to issue the following command.
CREATE DATABASE Logger1 ON PRIMARY (Name = test_data, filename ='C:\\mydb_data.mdf', size = 3, maxsize = 5, filegrowth = 10%)log on (name = mydbb_log, filename = 'C:\\mydb_log.ldf', size = 3, maxsize = 20, filegrowth = 1)
Please note that the max file size while creating the mdf file is 5MB and the max file size while creating the ldf file is 20MB.
I dont want to restrict it to a finite value.
By default when a database is created through GUI, it has an unrestricted file size.
so in the same way, can someone please tell me what should I provide as maxsize to have unrestricted growth.
any help would be useful
Keshav Kamat
India
|
|
|
|
|
Keshav V. Kamat wrote: can someone please tell me what should I provide as maxsize to have unrestricted growth
I wasn't aware that you had to supply a max size value. Just leave it out.
|
|
|
|
|
hey thanks man.
it just got the default value, ie. unrestricted growth, which i wanted.
Keshav Kamat
India
|
|
|
|
|
Hi Please help us,
I have a captcha images with me and the images have noise(means some horizontal and vertical lines to protect Captcha image from OCR software).So please tell me how can remove the noise of the image.
Regards,
UdayKiran.
|
|
|
|
|
I think the point is that you are not supposed to be able to remove the noise by software. The only reason I can think of to ask this question is how to get around a captcha image in order to spam a site.
|
|
|
|
|
I must call another application from my C# application (Windows forms).
I am searching the code corresponding to the "system" command I used before in the normal C language.
Thank you in advance.
Patrick Meinguet
|
|
|
|
|
Play with System.Diagnostics namespace
Thanks and Regards
Sandeep
If you want something you never had,
do something you have never done!
|
|
|
|
|
Great, I used the System.Diagnostic.Process to start another process.
Thank you for your help, and sorry for the late answer.
Patrick Meinguet
|
|
|
|
|
|
Thank you for your help, my problem is now solved.
Sorry for the late answer ...
Patrick Meinguet
|
|
|
|
|
Sir,
I have a grid view that displays record from database. My problem is that whenever there is no record(s) from the database, it doesn't display the header of the grid? How can I display the header of the grid even if there's no record retrieved.... .NET 2005
In .net 2003 it displays the header even if there is no record(s)
/Dabuskol
-- modified at 3:38 Wednesday 14th March, 2007
Dabsukol
|
|
|
|
|
hi,
Create the headers directly through GUI.
right click the data grid. go to properties.
go to the last part which is misc-columns.
click on it. a new dialog will open. u add all the headers here.
so that even if the records retrieved are empty,
the headers will be displayed.
please get back to me if needed.
Keshav Kamat
India
|
|
|
|
|
in that case, please dont have headers stored in the columns of the database.
just have the headers as the column names.
Keshav Kamat
India
|
|
|
|
|
I can 't find the misc-columns you are saying. What I have is property called "Collection" and from there you can define the header. that is what I did.
Please expound mor ein detailed.
Dabsukol
|
|
|
|
|
Hi,
I have a function named func1() and dropdown1_SelectedIndexChanged(object sender, System.EventArgs e) event
Now in this function after few steps i want this event to be raised!!!
How can this be achieved?
Gautham
|
|
|
|
|
Hello,
Raising the event can only be done by the dropdown control itselve.
So you can change the "SelectedIndex" property of your dropdown instance, from the "func1" method.
If you just whant to run threw the "dropdown1_SelectedIndexChanged" methods code, I would make a third method which is called from both methods.
All the best,
Martin
|
|
|
|