|
|
Do the following thing :
step 1 :load file
FileInfo fileinfo = new FileInfo(yourfilePath);
step 2 : open file using jet provider
string strSql = "SELECT * FROM [" + fileinfo.Name + "]";
string strCSVConnString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + fileinfo.Directory.FullName + ";" + "Extended Properties='text;HDR=No;'";
step 3 : load data set
OleDbDataAdapter oleda = new OleDbDataAdapter(strSql, strCSVConnString);
DataTable dtbCSV = new DataTable();
oleda.Fill(dtbCSV);
step 4 : wite to xml
dtbCSV.WriteXml()
|
|
|
|
|
yes u r right, when we are using datatable/dataset.
But i want any other way without using the datatable/dataset...b'coz it will consume much memory...
Thanks & Regards,
Jeneesh k. v.
|
|
|
|
|
|
Hi All,
I want to to develop HTML editor in ASP.net page where user can write his template can make a define his own size own font
For this i m using tinymce but this is giving very weird behavior.
thanks and regards,
Amit Patel
|
|
|
|
|
Amit Patel1985 wrote: For this i m using tinymce but this is giving very weird behavior.
With this amount of information how do you expect anyone to help?
Bob
Ashfield Consultants Ltd
Proud to be a Code Project MVP
|
|
|
|
|
Hi All,
if any one used the FreeTextBox please help me to find out how to enable the print preview.
Thanks and regards,
Amit Patel
|
|
|
|
|
Hi all,
I have a ConfirmButtonExtender that I need to display only if a start time dropdown is later than an end time dropdown. i.e. Start time = 23:00 and the End time = 01:30. I need the ConfirmButtonExtender to display, but if Start time = 13:00 and End time = 14:00 then it should not display. Is there a way to do this in C#?
Thanks in advace for your help,
Lee
|
|
|
|
|
Make Use Of JavaScript..!
Use OnClientClick..!
LatestArticle :Log4Net
Why Do Some People Forget To Mark as Answer .If It Helps.
|
|
|
|
|
I forgot to mention this is in a wizard control and needs to run the time check on the next button click.
|
|
|
|
|
|
Thanks that's just what I wanted.
Lee
|
|
|
|
|
Any Time..!
All the best..!
LatestArticle :Log4Net
Why Do Some People Forget To Mark as Answer .If It Helps.
|
|
|
|
|
Hi Lee,
I thought the main purpose of the confirmbuttonexteneder is for client side questions and post back.. can't you just use javascript to check the datetime before showing the ConfirmButtondialog?
thanks,
Wilson
Still a newbie.. learning
|
|
|
|
|
Hi Wilson,
It is and it was to ask the question "Was the time selection intentional?", yu see this is for an online scheduler for conferences and if the end time is before the start time the conference goes into the next day.
Anyway, this is now working and a closed case.
Thanks anyway,
Lee
|
|
|
|
|
hello friends
i want to know what is diff between in these two way of adding item in cache.
cache["key"]= value;
and
cache.add("key",value,...);
thanks in advance
|
|
|
|
|
|
Hi findtango,
If you access the cache via the indexer, i.e.,
1. Cache["Key"] = value;
a. the value remains in the cache indefinitely.
Instead while you are using
2. cache.add():
a. It will accept some more parameters for expiration and all
b. Also, calling the Add method returns an object that represents the cached item.
If the key already exists in the Cache the method will fail.
Thanks & Regards,
Jeneesh k. v.
|
|
|
|
|
Please give me a link or explain how will i write the code for checking duplicate user name is existing while trying to insert new one by using core ajax coding
|
|
|
|
|
I think you can do it in Database by making query,
like in sqlserver
IF EXISTS(SELECT Id FROM user WHERE username = @username)
Duplicate
else
No Duplicate
|
|
|
|
|
I have taken a DetailsView . Now I want to retrieve the details shown in detailsview in the panel in which there are many textboxes of respective fields.
like GridView in which we use "RowCommand" event , which event should i take to retrieve the details??
modified on Wednesday, January 6, 2010 7:02 AM
|
|
|
|
|
Hi,
Could someone tell me how to open the .msg file as how we double click and open the .msg file. Please send code. Thanks for your help in advance
With Regards,
Samson
|
|
|
|
|
Whats Your Requirement Here..!
1)You need to open .msg file and convert into txt file
2)Send the .msg file as Email..!
3)?????????????????
samsonx wrote: Please send code.
This is Considered as rude in here..!
Check This Link..!
http://dotnet.dzone.com/articles/how-parse-and-view-outloook-ms[^]
LatestArticle :Log4Net
Why Do Some People Forget To Mark as Answer .If It Helps.
|
|
|
|
|
I am using a crystal report developed separately with crystal report developer ie BI.
I am going to use that report for my application.
i have loaded that report in the report document and i have set the same to the crystal report viewer.
but my concern here is while developing the report i have used a database and a server.
but while using the application the server and the database may come dynamically , i have used the ReportDoc.SetDatabaseLogon() but its of no use its asking me the same database which i used while developing the report,
how to change the same..
thanks for helping in advance
|
|
|
|
|
Hi,
I have two buttons(BUTTON1,BUTTON2) and one object tag to display the video. Now when i click BUTTON1 i want to update the video. So <object> tag should be effected. But when i click BUTTON2, it should not effect the video. Here i used the update panel to achieve this.
<asp:updatepanel id="UpdatePanel1" runat="server" updatemode="Conditional">
<contenttemplate>
<object>
<tiggers>
<asp:asyncpostbacktrigger controlid="Button1" eventname="Click">
<asp:button id="Button1" runat="server" onclick="Button1_Click">
<asp:button id="Button2" runat="server" onclick="Button2_Click" >="">
In the above code i specified that - object tag(VIDEO) should be effected when we click on Button1 only. But it is blinking when we click on Button2 also. How can we prevent the blinking or refresh of the video when we click on Button2? Can anybody help us? Thanks in advance.
Padmaja N
|
|
|
|