|
Thanks for reply,
But this is for design the web service for upload a file. but i want to upload a xml file on rest web service using my .net code.
~Khatri Mitesh
khatrimitesh@hotmail.com
Bikaner (Rajasthan)
INDIA
http://www.youtube.com/watch?v=-oJaaPCrk3Q
|
|
|
|
|
Hi,
I am writting an ASP.NET application in VS 2008. I have some COM component written in VC++ 6.0 as a DLL. I Have add reference of COM DLL in my ASP.NET application. In my application I am calling methods from COM DLL which I want to debug but I am not able to debug my COM DLL. Can any one help me how to debug? I am using IE8 on my machine.
thanks in advance.
Yudhisthira
|
|
|
|
|
Run Asp.net application with visual studio 6.0 for VC++ dll Debugging.
|
|
|
|
|
how to run? how to attach dll to ASP application?
|
|
|
|
|
i hav did the same 7 years ago... don't knw the exact tool options....
|
|
|
|
|
M_SqlPathName = dsExecu.Tables(1).Rows(0)("AppSet_PhysicalPath") + Utilities.Dtgetsource.Rows(J)("FileDir") + Utilities.Dtgetsource.Rows(J)("FileName")
Dim sqlcmdsql As New SqlCommand
sqlcmdsql.Connection = sqlCon1
Dim fileInfo1 As FileInfo = New FileInfo(M_SqlPathName) --up to this line of code am getting the server path as D:\attachment\JON103\SQLQuery11.sql
Dim script As String = fileInfo1.OpenText().ReadToEnd() --then in script am not getting any path so it throws null exceptional error
SqlScript = script
pls anyone chk this out and tell me how to get the server path and upload the excel file to it
|
|
|
|
|
If D:\attachment\JON103\SQLQuery11.sql does not exist, fileInfo1 will be null ('Nothing' in VB). Ensure that the file exists.
modified on Monday, December 7, 2009 5:38 AM
|
|
|
|
|
Dim fileInfo1 As FileInfo = New FileInfo(M_SqlPathName) --up to this line of code am getting the server path as D:\attachment\JON103\SQLQuery11.sql
Dim script As String = fileInfo1.OpenText().ReadToEnd() --then in script am not getting any path so it throws null exceptional error
SqlScript = script
in M_SqlPathName am getting the above directory root name, but in next stept script=fileInfo1.OpenText().ReadToEnd() it throws an error, object reference
|
|
|
|
|
I think my previous answer was quite clear. JUST ENSURE THAT THE FILE EXISTS, if it does not exist, you will get this error.
Hint: You may use File.Exists() method to skip files that do not exist.
|
|
|
|
|
hi all,
i need a help... need to create a dynamic sub folder to store particular job_id's excel files within the sub folder with job_id's name, here the job_id is identity column.. say for eg., JON101, JON123, etc...
sqlcmdsql.Parameters.AddWithValue("@fullFileName", "C:\Bcp\" + Utilities.Jobid + ".xls")
the above code is for generating excel file within common folder, now i need to create sub_folder...
anyone came across this issue, pls help me to resolve
|
|
|
|
|
//this is code to create folder....
private string CreateFolder(string FolderName)
{
if ((!Directory.Exists(@"D:\ " + FolderName + "")))
{
DirectoryInfo oDirectoryInfo = default(DirectoryInfo);
oDirectoryInfo = Directory.CreateDirectory(@"D:\ " + FolderName + "");
}
}
|
|
|
|
|
//to move data from one folder to another
DirectoryInfo dir1= new DirectoryInfo("F:Folder1");
DirectoryInfo dir2 = new DirectoryInfo("F:Folder2");
FileInfo[] Folder1Files = dir1.GetFiles();
if(Folder1Files.Length > 0)
{
foreach(FileInfo aFile in Folder1Files)
{
if(File.Exists("F:Folder2" + aFile.Name))
{
File.Delete("F:Folder2" + aFile.Name);
}
aFile.MoveTo("F:Folder2" + aFile.Name);
}
}
|
|
|
|
|
//Create folder in server
fso = Server.CreateObject("Scripting.FileSystemObject");
fso.CreateFolder("d:\New Folder1");
//example 2
System.IO.Directory.CreateDirectory(Server.MapPath("path_name")+ "\\NewFolder1");
|
|
|
|
|
hi friends,
i am new to .net.please help with the code ,that can display the items from a tab control to the flowlayout control.
i have tab control which contains few buttons and when these buttons are double clicked ,flow layout must show that buttons irrespective of tab pages.if there is a solution to this, provide it with me as early as possible.
i am urgent friends........
|
|
|
|
|
In my crystal report I want to have two detail sections with a seperate header section for each.I mean I want the headers to appear right at the top of their corresponding detail sections . But in the section expert there is no way to change the sections order.How can I achieve the result ?
|
|
|
|
|
Is it possible to use callbacks (like in the old days with C++/MFC) to display listview items? Or how about an observable collection that tells a listview that its data has changed?
Anything like that?
.45 ACP - because shooting twice is just silly ----- "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "The staggering layers of obscenity in your statement make it a work of art on so many levels." - J. Jystad, 2001
|
|
|
|
|
in vb.net to get the items in listview take this
dim name as string
dim ind as integer
for each items as listviewitem in listview1.items
' here you get the name of the item
name = items.text ' or items
'here your get the index
ind = items.index
next items
|
|
|
|
|
|
This is not a WPF application.
.45 ACP - because shooting twice is just silly ----- "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "The staggering layers of obscenity in your statement make it a work of art on so many levels." - J. Jystad, 2001
|
|
|
|
|
|
One way to achieve this would be to have your collection implement INotifyCollectionChanged (if using ObservableCollection is out of bounds), and use a mediator class to monitor the changes. Obviously you'd want to use INotifyPropertyChanged for individual items in the collection.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys | Onyx
|
|
|
|
|
Would using a DataGridView be a better option? I don't want anything fancy - I just need the listview to update items that have changed (possibly hundreds of items changing every 2 or three seconds or so).
BTW, this isn't a WPF application...
.45 ACP - because shooting twice is just silly ----- "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "The staggering layers of obscenity in your statement make it a work of art on so many levels." - J. Jystad, 2001
|
|
|
|
|
I don't know that DGV would be a better choice. The fact that the listview supports virtualisation is a big plus. BTW - I figured it wasn't WPF.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys | Onyx
|
|
|
|
|
|
Hi,
I want monitor com port already open. I am tring to use win api, with overlapped I/O setting, but don't work.
I suppose need to intercept windows event that contain data excanged from application to com port.
Qualcuno ha un idea su come fare??
Thanks in advance,
Cris
http://bugbusters.altervista.org[^]
|
|
|
|