Hi all,
I am trying to do a 3-tier application to learn C#. Now I got a WinForm as
GUI, a service, and a remoting object "SqlSender" to connect MSDE. I found
such interesting thing. See following code snippet:
// Host A - Client WinForm - MyGui
....
public void buttonFind_Clic k(object sender, System.EventArg s e)
{
string cmdStr = "SELECT * FROM table";
// send out SQL command via remote object SqlSender
SqlSender sqlSender = new SqlSender();
sqlSender.sqlSe lectRequest(cmd Str);
// !!! problem here, the dataSet1 is EMPTY ?!
sqlSender.print Rows(sqlSender. dataSet1);
}
// Host B - SqlSender to connect data base
public class SqlSender : MarshalByRefObj ect
{...
public void sqlSelectReques t(string cmdStr)
{
try
{
// clear the DataSet from the last operation
dataSet1.Clear( );
this.sqlSelectC ommand1.Command Text = cmdStr;
this.sqlDataAda pter1.SelectCom mand.Connection = sqlConnection1;
sqlConnection1. Open();
this.sqlDataAda pter1.Fill(data Set1, "table");
sqlConnection1. Close();
//if I put "printRows(data Set1)", it is ok, dataSet1 already gets the
data
}
...
}
}
It seems that WinForm cannot access the DataSet. How can I show the data
that was retrieved by the Remoting object "SqlSender" in GUI then? Is it
still possible to use DataBinding as if they are locating on one machine? I
tried to delcare the dataSet in "SqlSender" with "static" but it doesn't
help. This question has disturbed me the whole weekend, please help!
cheers,
eedych 0 1019 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Uma Vivek |
last post by:
Hi,
I have a problem with Flash remoting via .NET . I seem to have all the
code right, but flash does not seem to display the data at all.
Here's is what Ive done so far...
(1) Ive installed Flash Remoting MX, and copied over the contents of
wwwroot\flashremoting\bin into my web application's folder\bin.
|
by: bettervssremoting |
last post by:
To view the full article, please visit
http://www.BetterVssRemoting.com
Better VSS Remote Access Tool
This article makes a detailed comparison among SourceAnyWhere,
SourceOffSite, VSS Remoting and possible others.
Keywords: VSS Remote Access, VSS Web Access, VSS Internet Access,
|
by: Ron L |
last post by:
I am trying to setup a solution that will include a client which will access
a database via remoting calls. I am hosting my remoting project in IIS, and
am using Windows Integrated security. Since some of my users will be coming
in through the web (from non-trusted domains) to log into their local domain
account, I am trying to implement a login screen which will gather the user
data (login, pwd, domain). The login screen will be...
|
by: Dennis Stew |
last post by:
How do I access Public variables within a Windows Service?
I can, and have, created installed and executed a basic Service. From my
client App I can Start, Stop...etc the service.... What I want to do is to
read properties that are in the service. for instance if the service had a
Propertie or Public variable like
Public Int Myint = 12; (or... Public Myint as integer = 12)
|
by: Mark |
last post by:
I want to put out a Excel or Access database spreadsheet on a web
page. Can I do this and will it let me update the spreadsheet or
will it be a static web page? If not then should I put it out there
as a file on the web page and open it up and then update the
spreadsheet? Please advise.
| |
by: bettervssremoting |
last post by:
To view the full article, please visit
http://www.BetterVssRemoting.com
Better VSS Remote Access Tool including SourceOffSite, SourceAnyWhere
and VSS Remoting
This article makes a detailed comparison among SourceAnyWhere,
SourceOffSite, VSS Remoting and possible others.
|
by: Sunny |
last post by:
Hi all,
I'm creating client/server app in C# (VS. 2003).
So, I need the client to call the server with some auth info (user and
pass).
If the auth is OK, server will do some work and will prepare a zip-file
and some other text and numeric data and will notify the client that
everything is ready.
And the client will fetch the data.
So if it was all console/desktop application, I know what to do (in
|
by: JTS |
last post by:
I need to create three ASP.NET applications - each one will run on a
different production server. Each application does basically the same thing
with respect to data access; the apps differ primarily in presentation and
audience. Each app will need to interact with a SQL Server database that is
running on its own server. All servers will initially be on the same subnet,
however there is no guarantee that they will remain on the same subnet...
|
by: |
last post by:
Dear Groups,
I am trying to develop a simple client <-> server application where (for
database security reasons) the server only has access to the centralised
database (and a file repository), and not the client.
I think the best way to do this is to expose data layer objects using
Remoting to the client.
This sounds almost like a design pattern to me, but I can't seem to find
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |