|
Have you looked through the many Database related articles here on Code Project or searched on MSDN for examples?
led mike
|
|
|
|
|
Yes, I have and they have helped me quite a bit.
The only missing piece to this puzzle is the credential thing.
Can you help??
Thanks.
|
|
|
|
|
Beaumont1 wrote: Can you help??
Maybe. Most of the Articles on Database developement here should discuss the login/password part of the database connection string. Is that what you are asking about? Be more specific about "credentials".
led mike
|
|
|
|
|
Yes, you are correct. That's what I am looking for.
Thank you.
|
|
|
|
|
hi,
i want to read from a microprocessor that is directly connected with a croseover ethernet cable
but i dont know how.
on the processor site is everyting in order, i am able to ping to my pc and from my pc using Dos command.
how do i set up the comm using c#??
i know it has something to do with Tcpclient but there i need a portnumber wich i don't know, i don't need acces to the internet.
can anybody help plzz
thx
|
|
|
|
|
A strange question, but I couldn't find anything specific and just trying is not the solution.
Suppose I have two interfaces, lets call them IMyInterface1 an IMyInterface2.
They share a couple of methods (they're identical), but I don't want to use a shared interface with just those methods and then inherit my two interfaces from that one.
Now I have two classes (MyClass1 and MyClass2), each one implementing one of the two interfaces. Both of them must inherit from another class (MarshalByRefObject).
The question is: can I extract a class (MyCommonClass) implementing the common methods of the interfaces, inherit from that class and implement the two classes just implementing the remaining methods? This way MyCommonClass should inherit from MarshalByRefObject, then MyClass1 and MyClass2 should inherit from MyCommonClass.
Are the two interfaces correctly implemented in the compiler's opinion?
Brief pseudo-code:
class MyCommonClass : MarshalByRefObject;
class MyClass1 : MyCommonClass, IMyInterface1;
class MyClass2 : MyCommonClass, IMyInterface2;
Thanks for any help.
|
|
|
|
|
Dario Solera wrote: Are the two interfaces correctly implemented
Short answer: Yes
Bear in mind that any reference to MyCommonClass will not be able to act as iMyInterface1 or IMyInterface2 - only references to either of the MyClass1 or MyClass2
|
|
|
|
|
J4amieC wrote: Bear in mind that any reference to MyCommonClass will not be able to act as iMyInterface1 or IMyInterface2
Yes, that's clear.
Thanks for your reply.
|
|
|
|
|
Dear all.
i am making web application using asp.net and C#(Visual studio 2005). i have listbox(with multi select option) on web form. I am able to capture data through loop. now i want to know how i can place this loop data into single statement for insert statement.
Any one knowing Please guide me.
Thanks
regards
imran khan
|
|
|
|
|
Probably by using prepared statements. It's a bit hard to say without a little more information on what you're inserting.
|
|
|
|
|
Yes i am using prepared statement. Based on listbox selection(can be one or two or three .). i have to insert these value or values along with other information. my problem is i am fetching listbox's values through loop. But how i can insert it in a single insert statement. Please Help..
regards
imran khan
|
|
|
|
|
As I said, it's hard to say without seeing what you're actually doing, I don't know what your query looks like so I can't really comment on how you should do it.
At a wild random guess I'd say setup your statement and parameters before your loop then add parameter values inside your loop, execute the statement after the loop.
|
|
|
|
|
Hello all!
We are working with a partner to integrate customer systems with eachother through EDI. The partner has a solution with translates XML messages to EDI messages and vice versa. All is going well with the translation from XML to EDI. In fact, if you consider the XML standard, all is going well with the translation from EDI to XML. The problem lies within the XML support of the Microsoft MBS Nav software.
The standard XML allows that the order of the attributes in an element varies with every message. For example:
<xmlelement attrib1="1" attrib2="2">
is considered the same as
<xmlelement attrib2="2" attrib1="1">
as far as the standard is concerned. MBS Nav however cannot handle these situations.
I know that .NET 2.0 has decent XML support. I also know a thing or two about C# and .NET. What I don't know, if there is an easy way to generate a XML file with a predetermined order of elements and attributes. I heard something about xsd schemas, but I have never worked with these things before.
Any pointers into a direction are highly appreciated! Thanks in advance.
Behind every great black man...
... is the police. - Conspiracy brother
Blog[ ^]
|
|
|
|
|
Creating a schema for your xml is the path to take. There are plenty of resources available, online, books, articles, etc. that can guide you.
only two letters away from being an asset
|
|
|
|
|
Additional to what Mark said, you might want to take a look at this tutorial
regards
modified 12-Sep-18 21:01pm.
|
|
|
|
|
Thanks for the information. I'll look into that!
Behind every great black man...
... is the police. - Conspiracy brother
Blog[ ^]
|
|
|
|
|
Guys,
I have a date time picker which shows the month in words. (eg 13 January 2006).
When I start the exe a parameter will set the current culture to another language and translates all the labels.
The datetimepicker however doesn't change. I've searched throuhg the properties, but couldn't find anything regarding cultures or languages.
Is it possible to change the language/culture of the datetimepicker WITHOUT changing the regional settings?
Many thanks...
V.
If I don't see you in this world, I'll see you in the next one... And don't be late. (Jimi Hendrix)
|
|
|
|
|
Hi all,
been searching for an answer but cannot find one, so i'm asking
I created a simple custom control (a panel with a header on it). I added the control to my toolbox and when i drag this on my form everything is ok.
But now i'd like to drag a listview control onto my custom panel. This is where it goes wrong. The listview control is not added to my custom panel but to the main form. So when i set the listview's dock style to fill, it fills up the whole form and not my custom panel.
Somehow i've got to handle this in my custom control code, but haven't got a clue.
I'm hoping someone can give me the solution or point me in the right direction.
thank you for helping me out here.
|
|
|
|
|
Hello
Are you sure that the Listview is contained by your custom control? If you don't know it you can check it in "View" option menu. In the "other windows"... there's an option which shows form's control schema...
|
|
|
|
|
il_masacratore wrote: Are you sure that the Listview is contained by your custom control?
no it's not contained. how do i make it contained ?
thanx.
|
|
|
|
|
hi
I was writing windows service. There were 2 services each for client in C# and server in VB.NET. I can't send data from client to server. i am getting the error ' The connected party actively refuses'.I made an application with the same code and it worked fine. the service is working in Local system account.Can anybody help please................
|
|
|
|
|
I've been bulling my hair out to resize the image.
I would like to place an image on the page. the image url is fetched from the database.
I want to resize the image according to the image holding panel. Means.. the image loaded must be loaded in some fixed size. If the image size is less than the fixed size then it has to be streached using some ratio(height and width). otherwise, it has to be resized to the fized size. Otherwise I have to calculate the image width and height of the image and can alert the user that the image size is not enough..
Please Help me out..
Thank You..
Regards,
Stanly.S
|
|
|
|
|
|
|
i just want a system tray that runs 24 hrs even when the computer restarts.
thank you for your help in advance.
|
|
|
|