|
Hi
I want to know abt binding context and its functions.
I have two tables. one is the parent table and another is the child table.
I have read this tables to a dataset. and create a relation for a column say customer_id (which exissin both tables).
Then i have to add two datagrids and bind one datgrid to the parent table
and another datagrid to child table.
No wi have to implement the binding context
add abutton to the form, and inthe click event of that button increase the binding context by one.
then we can see taht according to the parent tables customer_id in the grid, it will show that id in the child table grid.
pls anyone help it to do.
can anyone give some sample code and explain to me in clearly how this works.
j o h n
|
|
|
|
|
hi,
i want to create an ISAPI extension which would enable me send a page with an image to a browser. there would be options for the user to select a particular image give on a web page and when the user clicks the get button the image should be displayed. i found a sample project here on codeproject given by Jorge Lodos. but i am not able to display the images. i changed the location of the files as specified in the tutorial but only the text is being displayed. can anyone help. also in the html page supplied with the sample code contains a %s in the image src field. can anyone explain what is that. the html code is as follows.
<title>Test Image
Test Image
A car
and the link for the sample project is : http://www.codeproject.com/isapi/image.asp
thanks
aditya
|
|
|
|
|
I believe a HTTPContext class will do this for you. Certainly I know ASP.NET is itself an ISAPI extension, and one of the classes you can override allows you to do the same thing in C#.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Hi all,
I need to build a server with threading pool to handling client request.
Is it better to have ayschronous server connection rather than synchronous
connection, so that the server can have better response or performance ?
Is asynchronous server connection hard to program ?
Thank you
|
|
|
|
|
If you need your server to serve multiple client and not
suspend until it finish the client request use Ayschronous server
June Chang wrote:
Is asynchronous server connection hard to program
multithread application harder to write than single thread application
For more info look at
Socket Code Examples[^]
Multi-threaded .NET TCP Server Examples
[^]
MCAD
|
|
|
|
|
Hi,
I just have a question on the IP right in MS office.
For the starOffice or openOffice by Sun, they have almost
the same functionalities, similar UI and usage processes that are matched with MS office so as to make it compatible with MS office. Then will this infringe the copyright or Intellectual properites of MS office ?
Or in other saying, can I build a MyWord application that is similar
or exact match the functions of MSWord, will I be sued by Microsoft ?
Thanks
|
|
|
|
|
If you ever start making money with it, or make them lose money because of it, you can assume so.
|
|
|
|
|
But then why Microsoft not sue Sun for the StarOffice ? It seems to
copycat from MS and compete with it.
|
|
|
|
|
Microsoft didn't invent word processing. Word is a copycat of WordPerfect.
If Sun ever infringe one of MS's patent, make sure they will get sued.
|
|
|
|
|
Hello,
Are there any standards for designing form or form builder. I need
to write a form designer so that user can design and custom their own
form in the application ? It is fine to write it in c#, but I want to know
if I need to conform to some standards in the market, so to make my application more universal and better compatitibility ?
Many thanks
|
|
|
|
|
|
Hi,
I am writing dll in c#.Net. The dll size is quite large and I wonder
whether it is good to break it into smaller dll. My question is that
will the OS load the whole dll into memory or just load the necessary
objects that is in use to the memory within the dll when the dll is running
? So if it just load the necessary requested objects into memory, I don't need to break it into smaller dll.
Thank in advance
|
|
|
|
|
You make a reference to the whole dll, not parts of a dll, so the whole dll is loaded.
---
b { font-weight: normal; }
|
|
|
|
|
So does it mean that I need to break the large dll into smaller one
so that it consumpt less memory ?
|
|
|
|
|
Not necessarily. When ever the .DLL(s) is/are loaded into memory, they don't get dropped until the process that loaded them quits. Say you break this into 2 .DLL's, then your app calls a single function in each .DLL. They're both going to be loaded until your app quits. So where's the savings? There isn't any.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
But will it unload the unnecessary dll when it finish using it?
Say dllA call dllB, and when dllA finish calling dllB, will dllB unloaded ?
|
|
|
|
|
Not until the app quits. Once it's loaded, it stays loaded in case there's another call to it.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hi,
I got a really strange problem with one of my applications. The application is a single dialog screen (basic form) which have a Tab control on it.
However, for some reason, every time that I start it up - the form appears behind any window that is on the screen... basically I would assume that it's Z order told him that. Putting 'BringToTop' on the constructor, Load or Activate events didn't worked.
It is the first time that I saw something like that, and there is probably a simple stupid solution that I am missing...
Any clues what might be happening? Any ideas for solutions (at this point I am using TopMost=true/false to handle it - works in an ugly way).
Here is the 'auto generated' code for the form. Nothing here that I noticed...
this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
this.ClientSize = new System.Drawing.Size(626, 440);
this.Controls.Add(this.tabMain);
this.Controls.Add(this.label1);
this.Controls.Add(this.btConnect);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.MaximizeBox = false;
this.MinimumSize = new System.Drawing.Size(632, 472);
this.Name = "MainForm";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "My App";
this.TopMost = true;
this.Resize += new System.EventHandler(this.MainForm_Resize);
this.Load += new System.EventHandler(this.MainForm_Load);
this.Activated += new System.EventHandler(this.MainForm_Activated);
this.ResumeLayout(false);
Thanks,
HS.
|
|
|
|
|
1.What is meant by the term "stack trace"?
2.If it doesn't mean simply looking at what's loaded on and off the stack when I step-through the debugger, then when and why would I want to do this?
Many thanks in advance.
|
|
|
|
|
SkunkedWorks wrote:
1.What is meant by the term "stack trace"?
It's a trace of all the functions that were not yet completed because they called another function, ending with the function that has a break point.
SkunkedWorks wrote:
then when and why would I want to do this?
When debugging, you may for example have a crash in a common helper function, such as a library to handle stored procedure calls, and the stack trace will tell you what the real cause of hte problem is, because it will show you which method called the helper method incorrectly, or at least ( in this case ) what stored proc is being called.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Ok, I know this might sound simple, but it's not. I want to Implement the IList interface but I want certain members of it hidden (for example IndexOf and the default public object this[int Index] ) because I am creating a strongly-typed collection.
In VB.NET I could easily do this because each method knew that it was Implemented by a simple: Private Function IndexOf(Value As Object) As Integer Implements IList.IndexOf .
The Implementation was fine in VB like this because one could still cast the object to an IList type and access the methods on it even thought they were private within the Collection class.
Does anyone know how to do this?
|
|
|
|
|
VB lets you change the visibility of objects from an interface ? What a hack !!!
Have you thought of using C# 2.0 ? It's collections are strongly typed. Otherwise, your class will need to contain an IList, not be one.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Umm, no, VB does not let you change the visibility of objects from an interface. If you remember, Interfaces are SUPPOSED to be only methods WITHOUT accessors (i.e. Public, Private, etc.). So that means that any Class implementing that Interface can change the visibility to whatever they want, just as long as every method is Implemented. So, it's not a Hack, it is by design.
However, I did find out how to do this in C# if anyone is interested. It's called Explicit Interface Member Implementation[^] !!!
|
|
|
|
|
By the way, public and private are not accessors, they are "access specifiers" or "access modifiers."
Matt Gerrans
|
|
|
|
|
It doesn't make any sense to implement an interface and then try to hide some parts of it. The whole point of the interface is to communicate what methods and properties (or more generally, behavior) your objects support.
Sounds like what you should do is define your own interface that may be similar to IList , but is not, in fact IList .
I know I would be more than annoyed if I was presented with an object that seemed (and claimed) to implement some interface, but then failed to correctly support all the things that the interface implied.
Why would you want to do this?
Matt Gerrans
|
|
|
|