|
hi,
i have set of file paths from client machine, to be uploaded to my upload folder in my application.
i add more than one file to listbox.
when i click save button all files to be uploaded.
i know oploading using htmlinput file.
eagerly waitng for ur solutions...
vinod
|
|
|
|
|
Hope the Article by Konstantin Vasserman File Upload[^] here in CP will Help you.
Regards,
Satips.
|
|
|
|
|
i saw that before itself but its uploading using inputfile.
in my senario, i get the file path from list box and i want the file to upload to my machine
vinod
|
|
|
|
|
Hope this may help you.
Regards,
Satips.
|
|
|
|
|
thank u satips..
but there also it using multiple htmlinputfiles for multple files
but here in my requirement i do not have htmlinputfile i have fromfilepath
and tofilepath(in my machine)
i have to upload from fromfilepath to tofilepath
-- modified at 3:07 Wednesday 13th June, 2007
|
|
|
|
|
Hi,
You can use FileInfo class for this.
FileInfo fInfo = new FileInfo(path);
if(fInfo.Exists)
{
fInfo.CopyTo( destfilename );
}
I hope this will help you.
Thanks and Regards,
Chetan Ranpariya
|
|
|
|
|
Hi,
I am having complex schema XSD file, i want to convert the XSD schema in to database table (oracle/sql server 2000) using vb/c# .net is it possible. If so can you plz guid me how to convert.
Thanks
Warm Regards
Prakash-B
Thanks
Warm Regards
Prakash-B
|
|
|
|
|
|
Hi,
In my ASP.NET website, I used a stored procedure to retrieve some records which has more than one records. In stored procedure I do
SELECT @taskid=taskid, @taskdescp=taskdescp
FROM tb_ticket_task
WHERE tickid=@tickid
But this would return only one record, does stored procedure return any record set which I have been trying to find from the internet but couldn't.
If stored procedure cannot return record set, any alternative I can use using C# in ASP.Net?
Thanks
J Liang
|
|
|
|
|
J Liang wrote: But this would return only one record
Check whether for the particular @tickid are there multiple rows in the tb_ticket_task table.
Hope, as the result is stored in variables it is returning only the last value.
try using select query with only columns i.e.
SELECT taskid, taskdescp FROM tb_ticket_task WHERE tickid=@tickid
J Liang wrote: If stored procedure cannot return record set, any alternative I can use using C# in ASP.Net?
Create a function in SQL Server with return type as table.
Regards
KP
|
|
|
|
|
Hi,
Please let u know how do u execute the SP in your code?
Thanks and Regards,
Chetan Ranpariya
|
|
|
|
|
Hi KP,
it works and I should have knew it, hehe.
I used myCommand.ExecuteNonQuery() instead of myCommand.ExecuteReader() which explain why I could not get all the records.
Then I do while (reader.read()) and assign all I got into an ListItem then to a PlaceHolder. All the data successfully retrieved.
Thanks.
J Liang
|
|
|
|
|
Hello,
So I am working on a project to transfer database data from different locations into one central database via webservices. My initial thought was to install the webservice on the database servers in the different locations and have the consumer webservice installed on the central database server invoke the webservices at each of these locations to update the central database. Now I don't know if that is the right way to do it as I have no clue as to how to differentiate between the webservices in these different locations and how to even call them. Please help. Suggestions and coments as to how I can go about this will be appreciated. Than you.
Nana
|
|
|
|
|
greetings...
another wonderful day and new challenges...
sir/mam, i again need your help on how to manage session in asp.net 2003...
--- is there a way, how to set a session timeout?
--- can someone give me a link for other sample in session management?.. thank you in advance........
start a new beginning in every ending; thats what life for......
|
|
|
|
|
Hope the Article by Narendra Naidu Here[^]
And also the Article by Mandeep S Bhatia here[^] in CP will Help you regarding the Session Management.
Regards,
Satips.
|
|
|
|
|
I have an interesting situation. I am doing a DB query to lookup email addresses from a SQL server table. I want to then put those addresses into an email to be sent programmatically. So there could be anywhere from 1 to x email addresses. Kind of new to asp.net and was curious as to the communities thoughts on if an array or collection would be better, or something else?
Ben Jones
|
|
|
|
|
I would say use System.Collections.Specialized.StringCollection
This is a specialized collection of strings..
Or you can use System.Collections.Generic.List<string>
i.e.
System.Collections.Generic.List<string> myList = new System.Collections.Generic.List<string>();
If you know the exact number of results, array is just raw memory and fastest too, whereas using these above data structures requires some overhead..
|
|
|
|
|
Great thanks for the advice!
Ben
|
|
|
|
|
Hi,
we are using asp.net 2.0 calendar control on our website. I have painted the calendar days with event information and set the tooltips for those days using javascript. But when the user hovers the mouse on the calendar, first it is displaying the control tooltip "Calendar" and if we wait for some time the tooltip will go away and the assigned tooltip will appear. How can I disable the control tooltip?
Thanks,
sridhar.
-- modified at 12:26 Wednesday 13th June, 2007
|
|
|
|
|
Can any one help me in develing a row-clickable DataGrid control?
thanks
kidus
|
|
|
|
|
Hi,
You want to execute any server code on click of the row in datagrid?
If you want to use javascript then you can write follwing code in ItemDataBound event of Datagrid.
if(e.Item.ItemType == ListItemType.Item || e.Item.ItemType == ListItem.AlternatingItem)
{
e.Item.Attributes.Add("onclick", "urjavascriptfunction");
}
I hope this will help you.
Thanks and Regards,
Chetan Ranpariya
|
|
|
|
|
if (dgvEmployee.CurrentRow.Index == -1) // Is there any row selected now?
return;
// Retrieve the first column from the selected row.
int Id = Convert.ToInt32(dgvEmployee.CurrentRow.Cells[0].Value.ToString());
This gives the particular value in the row of cell 0 ...If it help carry on
came out of hardwork
|
|
|
|
|
I have an XML file in my app_data directory. My Data Access layer (a class library project) needs to know where the XML file is.
I currently have:
c:\projects\My website\ (solution file is here)
c:\projects\My website\website (aspx files, web config, & junk)
c:\projects\My website\website\app_data\ (a few database files and an xml file)
c:\projects\My website\websiteDA\ (project folder for data access class library)
If I add the DA class library project as a reference to my website project, is there any way for the class library to know what the data directory of the website may be.
Using something like:
XmlTextReader settingsReader = new XmlTextReader("settings.xml");
tells me it's looking in:
C:\projects\My website\
the same folder as the solution file. Very odd. I would have expected c:\projects\My website\website
DB access gets around this by somehow parsing "|DataDirectory|" in the connection string, resolving it to match the app_data path. Could I do something similar?
-Mike.
|
|
|
|
|
|
That works if I'm trying to resolve a path from a page in the web project. However, I'm trying to accomplish the same from inside a class library referenced by the web project.
-Mike.
|
|
|
|