|
i have integrated SMS with my dotnet project,after sending a SMS i am getting XML document as Acknowledgement on my browser,so i want to capture that XML content and display the message in the user understandable form on the browser..plz help me out
|
|
|
|
|
Load XML File in DataTable, bind Table to grid and display result on Screen
|
|
|
|
|
Hi All!
I would like your thoughts and suggestions on the following scenario.
I need a distributed appication evironment to save the IIS server from working itsself to death!
The basics is this:
I want a webpage/ application/ service to start a application sitting on a diffrent machine on the intranet, then communicate with this application for the duration of the process.
Applications on the machines are added on the fly, so the calling application or web page cannot be re-compiled.
It seems Remoting won't work for me as the calling application has to be re-compiled when the target assembly changes, or a new one is added.
Any thoughts would be much appreciated.
alex_nel
|
|
|
|
|
So you want to write a generic application that goes and gets data from any possible application running on another computer to reduce the load on your primary server?
Theres a type of program that does that already - its called a proxy.
Have you considered just running multiple application servers?
|
|
|
|
|
Hello,
I had a requirement where I have set of datatables in a dataset.
The datatables have rows which have parent - child relation,
but the relation is not defined on the dataset.
Now I want to update the database with the data present in dataset. When I update the database, I must get the newly generated primary keys back and these keys must be reflected to all the child rows where it is foriegn key.
Can anyone tell me how to do this?
Thanks.
|
|
|
|
|
An update shouldn't change the value of the primary key. If you want a new primary key, do an insert .
I are troll
|
|
|
|
|
|
Do you want to use VB6, or VB.NET? You can have VB.NET and C# projects in teh same solution, and reference VB.NET projects from C# projects and share the assemblies (i.e. compiled result, not the actual code). But you can't have VB6 and C# in the same solution.
|
|
|
|
|
yes i want to have vb.net and c# in one project.would u please tell me what i should write in my project which is in c# to call a function in my another project which is in vb?
if u help me that is very kind of u.
|
|
|
|
|
Hi,
A .NET app can instantiate objects and call on its public methods and properties, independent of what CLR language is used. Just add a reference to the DLL you want to use, add a using statement (app=C#) or an Imports statement (app=VB.NET) and use the types as if they were in your app's language.
A .NET app can call upon unmanaged code (as in VB, not VB.NET) by using P/Invoke, which may be rather easy up to very difficult depending on the kinds of data that need to be marshaled.
Luc Pattyn [Forum Guidelines] [My Articles]
- before you ask a question here, search CodeProject, then Google
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get
- use the code block button (PRE tags) to preserve formatting when showing multi-line code snippets
|
|
|
|
|
|
I would like to know whether anyone has used NodeDragger to change node coordinates. Also is there a way to load an image onto a node, or can we just change its shape and color?
My other question is, I have found an application where we can save a layout but it is in jpeg format. Is there a way to save & upload a layout in GLEE/ GraphViz?
Thanks in advance.
|
|
|
|
|
In MVC , we create a business object that represents a table fields may be with the same column names or with other names then create public properties to get and set those values .
that is totally fine until now .
then i want to display that Object in a grid , i will assign the datasource property to a ILIST,Ienumerable,IDataSource object like for example List< of One business objects > then the grid will iterate through the collection of objects getting every object and accessing the properties names that will reflect the column names in the grid , and the values of those properties will be assigned to the column values in the grid
like for example
<br />
public class Customer<br />
{<br />
string FName;<br />
string LName;<br />
<br />
public string FirstName<br />
{<br />
get { return this.FName;}<br />
set { this.FName = value;}<br />
}<br />
public string LastName<br />
{<br />
get { return this.LName;}<br />
set { this.LName = value;}<br />
}<br />
<br />
}<br />
now to display that class to the grid i will put it into a list for example then
the grid will iterate through the list , reading each object public properties to draw the column names
the grid will have the same column names like the public properties
then accessing these properties values to display it to the grid .
i need to make a business object to be displayed in the grid but the problem is that the business object in my task doesn't have public properties , the public properties are replaced with a data structure that reads the table schema , "Generic Business Object" that is modifiable according to the table schema inside the data base
but finally i need to display each Generic Object to the data source controls like grid
Human knowledge belongs to the world.
|
|
|
|
|
I am not sure what value a business object without properties poses.
If you need some kind of generic data storage and transfer facility, I highly recommend that you use DataSet/DataTable/DataView. These are, for all intents and purposes, generic "business objects" that can take on the traits of a table, such as the same columns filled with rows of data from that table. You can then bind the DataTable, or if you need sorting and filtering, a DataView wrapped around that DataTable, to the GridView.
Once you have that, there are more than enough resources on the internet that explain how to bind a DataTable/DataView to a grid.
|
|
|
|
|
Thank you jon rista , but my Manager doesn't recommend for me a datatable or dataview , i don't know why .
i tried to convince him to use these tools but he refused , he tries to confuse me a little .
Anyway , i thank you very much for your response and consideration
Human knowledge belongs to the world.
|
|
|
|
|
Actually problem is, the application using the merged dll is not able to find the resources inside merged DLLs.
Let me explain the problem with the help of a demo project.
Here is what I have done in demo project
Inside one solution, I have 4 projects.
Project 1: DLL with name A.B.C.Resources1.dll and namespace A.B.C
Project 2: DLL with name A.B.C.Resources2.dll and namespace A.B.C
Project 3: DLL with name A.B.D.Resources3.dll and namespace A.B.D
Project 4: EXE with name X.Y.Z.ResourcesTest.exe and namespace X.Y.Z .
This project has the above three projects added as references.
Each of the first three projects contains :
A. Image resource (The resources are added the way you told).
B. One form and one button added to it.
I am simply setting the image for the button inside constructor of each project, as :
Button_Name.Image = Properties.Resources.Image_Name;
The fourth project has three buttons, each for one DLL and I am calling appropriate constructor on button click event.
Now, if i use three DLLs separately : everything works fine.
If I merge three dlls with command :
ILMerge /log:A.B.C.Resources.log /t:library /copyattrs /allowdup /out:A.B.C.Resources.dll A.B.C.Resources1.dll A.B.C.Resources2.dll A.B.D.Resources3.dll
and
use the merged DLL in the 4th project : The image for button of the 2nd DLL is not visible (Resources not found).
Observations and Findings :
1. After merging, the Resource class is getting renamed by the ILMerge for the 2nd DLL. This happens because the namespace of
the first and second DLL is the same.
Ex : I saw the merged DLL inside Reflector, It shows, inside namespace A.B.C.Properties,
Class Resources for the A.B.C.Resources1.dll DLL is as it is : Resources
Class Resources for the A.B.C.Resources2.dll DLL is renamed to A.B.C.Resources23043.Resources
2. For the 3rd DLL everything works fine, as it has different namespace.
3. If I change the namespace for the 3rd DLL to A.B.C and merge the DLLs, the image for buttons of the 2nd as well as 3rd DLLs are missing.
4. If I use the different namespace for each DLL and merge them and use, everything works fine.
5. So, basically I think this is due to renaming of the Resource class in the A.B.C.Properties namespace.
Is there any way to solve this, without changing the namespaces?? Because I want all the dlls to have the same namespace.
Is there any way to stop renaming by ILMerge?
Regards
Abhishek
|
|
|
|
|
Check this article [^]. The last section shows a way to have the same Namespace with different projects.
I would keep things simple by having different namespaces. You seem to be defeating the whole point of namespaces.
|
|
|
|
|
HI,
When i compile code using .net framework anyone can see all my code by using reflection.exe
How can i block this option ??
|
|
|
|
|
Obfuscation tools usually start you off in the right process.
|
|
|
|
|
Compilation in release mode makes it hard enough to read that people can't be bothered. Obfuscation tools are a waste of time anyway. Have you considered that your code probably isn't as unique and wonderful as you first thought?
|
|
|
|
|
Wrong on all counts. Compilation in release mode in no way makes it too hard to disassemble in something like Reflector. There are even extensions which will generate a whole solution for you.
Obfuscation although limited in what it can do is the best defence people have to protect their intellectual property, at least until DRM comes in.
Regards,
Rob Philpott.
|
|
|
|
|
Debug mode compilation generally precludes some optimizations which affects the readability of the code.
To be completely frank, an obfuscator provides little to no protection against a funded attacker. If your algorithms are complex/unique enough to be protected, then protect them with patents. If someone is prepared to rip off your implementation, and ignore any IP laws in doing do, then they are going to be able to achieve this regardless of obfuscation.
I'm engaged with a client who make use of the (otherwise) excellent yFiles graph layout library. Unfortunately these people have decided to run their library through an obfuscator. Not only does this fail to hide the actual design patterns and rough algorithms used, it also makes any exception thrown an utterly meaningless "A.B in A.A.B.A".
Source code in itself has very little value if you don't have anyone capable of maintaining it. Obfuscators are around so you can reassure your PHB that FooCorp isn't going to come and walk off with all your IP. I am yet to see code which is not protected by patent which has any value worth protecting. I'd be interested in examples.
|
|
|
|
|
Mark Churchill wrote: Obfuscation tools are a waste of time anyway.
Hear hear!
|
|
|
|
|
I have a multithreaded .NET app that I would like to use a single threaded ActiveX control in. Unfortunately, this causes an exception as I would expect. However, I was wondering if there is a workaround for this?
I cannot change the app from MTAThread to STAThread since it is using sockets for communications and needs the multiple threads for comms, and the single threaded ActiveX control is Adobe's flash control (in order to play a flash movie).
So, like I said, is there a workaround for this somehow?
Thanks,
David
|
|
|
|
|
Hi,
this is what I would attempt:
create a new thread, call Thread.SetApartmentState (only once!) and only then have it access your ActiveX.
if you need multiple threads accessing the ActiveX, AFAIK you have to proxy that and let only the one thread do the work.
Luc Pattyn [Forum Guidelines] [My Articles]
- before you ask a question here, search CodeProject, then Google
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get
- use the code block button (PRE tags) to preserve formatting when showing multi-line code snippets
|
|
|
|