|
it means that the Server is a windows Form that I would like te remote it means what are the method that I should use to do this.
thank you a lot
hello
|
|
|
|
|
can anyone pls say in what kind of a scenario can i go for System.Data.Oledb and System.Data.Odbc. Is there any difference in their performance. will it suit well for Oracle.
----------------------------------------------------------------
where there is a will there is a way
|
|
|
|
|
Hi,
generally those are two different abstraction layers mainly doing the same thing. When trying to decide which one to use you should at first look for which one a driver for the target db is available. In the case of Oracle you could use both. If I remember correctly OleDb was faster, but this only matters if you fetch large amounts of data from the db.
If you know you are using Oracle and you also know you will never switch the database engine than have a look at ODP.NET[^]. It's an implementation of the common ADO.Net interfaces which comes directly from Oracle and is (naturally) faster than the other two. It also has some more Oracle specific functionalities. The biggest drawback is that you can only access Oracle with it and nothing else.
Robert
|
|
|
|
|
Hi All,
I need your expert on the following issue.
We are working on designing a portal in .Net, which will be deployed at multiple locations. (US and Europe)
The purpose is software distribution (upload and downloads).
All updates will happen through an intranet portal (publishing of a new software product/patch etc). This need to be replicated with all other deployments (US and Europe etc).
Publishing of software includes uploading the software (installer) and related information (description etc).
This involves 2 things.
Transferring the software product file (installer). This might be huge one.
Updating the data base with related information.
If anyone has thoughts or worked on similar assignments, Please let me know. I am interested in knowing the best practices in this area.
-- modified at 0:20 Wednesday 16th August, 2006
|
|
|
|
|
Hi all,
After Selecting An item in Combobox (Using Mouse),
It is Generating an event SelectedValueChanged() .
1. In that I have written a code to Display a part of the string.
It is displaying on the combobox.
2. but Immediatly ,it is displaying The whole string which i Selected with the mouse.
I dont need 2nd part.
can any suggest me what is happening with that event.
Why it is displaying full selected Text.
Thanks In Advance.
Nagaraju
|
|
|
|
|
if u can paste the code u have written then i would be helpful to suggest u something.
---------------------------------------
where there is a will there is a way
|
|
|
|
|
I am sending My code.
private: System::Void cboSelect_SelectedValueChanged(System::Object^ sender, System::EventArgs^ e)
{
String ^str;
str=cboSelect->SelectedItem->ToString()->SubString(0,5);
cboSelect->Text=str;
}
I need to print only 5 charecters from Selected Item on the comboBox.
I have Tried above code with SelectedIndexChanged() and SelectionChangeCommitted(),but failed.
please Help out.
Nagaraju
|
|
|
|
|
I'm changing some code in an existing program and when I rebuild I get the maximum errors have been reached (102 or something like that). Can I change this number? If so where? I'd like to get all the errors so I can fix the "easy" stuff first.
|
|
|
|
|
102?? I doubt you can change this. If you've got 102 errors, you've got more serious problems than changing that limit. It sounds like a good re-write is in order.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
That's actually what I'm trying to do. Making it more OOP but I had variable calls all over the place that didn't have declarations. This is that monster program where one function has over 5k of lines.
|
|
|
|
|
Oh God, I feel for you! But, Guffa is right. Start at the top and work your way down. There is no setting to change the max number of errors in the list.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
leckey wrote: This is that monster program where one function has over 5k of lines.
The largest function I ever had to deal with what where one developer created a function with about 1.5K lines. It was an override of the Render method in a web control and much of it was copy and pasted from other parts of the web control. After a few days of refactoring I managed to get the method down to about a couple of hundred lines and I'd created about a dozen other methods of a couple of dozen lines each that the main method called repeatedly. After all that I was totally exhausted and I still hate that class and am only glad that the client never asked for any modifications in that area.
|
|
|
|
|
Most of the errors that you get are probably related to other errors. If you for an example have an error that makes it impossible for the compiler to create a specific method, you will also get an error everywhere that you use that method.
Start at the top and fix the errors, and you'll see that the list of errors will quickly get shorter. If you start in the middle of the list you will only find that you can't fix most of the errors, as they are related to previous errors.
---
b { font-weight: normal; }
|
|
|
|
|
I create a txt file which name xx.txt, then I execute the WebClient.UploadFile to upload the file to the server side. The file was uploaded successfully but few lines of header and footer was added to the original context of the file. Please see the example bellow.
-----------------------8c8883ecf24ad9e
Content-Disposition: form-data; name="file"; filename="xx.txt"
Content-Type: application/octet-stream
Context of the txt file
-----------------------8c8883ecf24ad9e
if the uploaded file was jpg, ... format, the system will not be able to reopen the uploaded one because of this header, please advice
Nadia Borshek
|
|
|
|
|
I am not sure of what you are expecting. it looks like you need to set the content type properly.
well, refer to the following web links for some info on the similar topics.
Upload handling
http://support.microsoft.com/kb/323246/EN-US/
sample products handling uploads.
http://www.iisworks.com/fileman/home.asp
|
|
|
|
|
Thank you for your reply, but what I am looking for is upload a file to the server withour user inteaction, that why I used WebClient.UploadFile(), then the problem I am facing that I can not review or open the uploaded file again.
|
|
|
|
|
I want to upload file without user interaction, and at the same time i need to open the file throug the explorer
|
|
|
|
|
Urgent
How can we generate XML help file in VS 2005????
|
|
|
|
|
Please don't write whole sentences in bold.
A single question mark is all that is neaded to mark the sentence as a question. Multipe question marks have no meaning at all, other than informing everyone that you don't know how to write.
Open the properties for the project. Go to the Build tab. In the Output section you will find the "XML documentation file" property. Check the checkbox and verify that the generated file name is what you want.
---
b { font-weight: normal; }
|
|
|
|
|
hey folks,
can anyone tell me if it's possible to alter a enumeration or a class during runtime? for example adding an item to a enumeration or exchanging a method with another?
if not, what can i do to customize the host application with a 'add-in' which is loaded by the host application?
thanks for hints
bernd
|
|
|
|
|
Specify an interface for the add-in, then create a library with a class that implements the interface. Now you can load the library dynamically, and use the interface to access the object without having to use reflection for everything.
---
b { font-weight: normal; }
|
|
|
|
|
hey Guffa, thanks.
it's not that easy. i haven't the source code of the host application under my control btw. i wouldn't like to touch it.
you say reflection...is reflection able to do things we speek about? till now i used reflection just "raedonly".
regards, bernd
|
|
|
|
|
thebread wrote: i haven't the source code of the host application under my control
Then the answer is no. You can't do it using .NET.
Anything is possible. You could alter the executable file to make changes in the program, but there is no support what so ever for this in .NET. You are totally on your own to fiddle with the byte codes.
For an example, to replace a method you would either have to overwrite the code in the method, or add additional code for a method and change every call to the original method to use the new method instead.
Are you up to the task? Have you done any assembler programming, for instance? I've done a lot of assembler programming and even machine code programming myself, but I would hesitate to try what you are suggesting...
---
b { font-weight: normal; }
|
|
|
|
|
Although it is a complicated procedure you can use code dom to create/insert dynamic code, though I'm not sure of the value of this in your case.
Exchanging one method for another can be done using a pattern, possible strategy or adapter.
only two letters away from being an asset
|
|
|
|
|
uiui, sounds crazy. the pattern should be implemented in the host application i think, isn't it? if i do the step to touch the code of the host application i haven't to go the long way round doing stuff with code dom and something like that. but this could be a powerfull plug-in mechanism...i'll give it a try later.
thanks for your advice, bernd
|
|
|
|