Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > ASP.NET Server level DataSet?

Reply
Thread Tools

ASP.NET Server level DataSet?

 
 
Dominic
Guest
Posts: n/a
 
      11-15-2003
Here's the situation:
I have 2 web projects for the same client, a WWW-Public web project
and an Admin project. Both projects are on the same server and I
found myself loading the exact same dataset in each project. Rather
than duplicate server resources I created a 3rd project which has the
common DataSet and certain modules that manipulate the DataSet. My
test cases were run within the 3rd project where all worked fine. Now
I'm in the quandry where I can't use that 3rd project dataset in the
other 2 projects. Caching/Application Variables seem to be out of the
question unless someone knows a way for a project to reference its own
httpcontext over the actual requesting context from the other
project(s). I can't seem to get any type of a global variable on the
3rd project to work as only the project that created the dataset can
see/use it, thus requiring an instance per project which is what I'm
tring to avoid. Any ideas?

quick rant:
Microsoft's answer for cross-project issues always seems to be 'by
design for security' which is annoying. As a .Net programmer it's
soooo tempting to want to easily share compilable controls/forms
between projects. Not even offering it is a huge limitation on an
otherwise powerful platform. I understand the security concern but
would it have been so hard to offer it allowed if only explicitly?

Dominic
 
Reply With Quote
 
 
 
 
Alvin Bruney
Guest
Posts: n/a
 
      11-15-2003
It's tempting but microsoft is right because allowing such behavior is a
hackers dream come true.

You have a couple of options here. Basically you will need to push the
dataset from one process to another.

For that you can use .net remoting which will be the fastest method or you
can write a webservice to transport the dataset back and forth. The
webservice will run on the machine and will just return a dataset so any
process can call it and get a dataset back. Finally, you can use state
server to cache the dataset somewhat like a web farm scenario. This sounds
tempting but it is a radical change in architecture just to get a dataset
visible across applications. I'd personally go with the webservice because
it is easily callable from anywhere at anytime. There may be other options
as well, but these will get you started.

regards

--


-----------
Got TidBits?
Get it here: www.networkip.net/tidbits
"Dominic" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed) om...
> Here's the situation:
> I have 2 web projects for the same client, a WWW-Public web project
> and an Admin project. Both projects are on the same server and I
> found myself loading the exact same dataset in each project. Rather
> than duplicate server resources I created a 3rd project which has the
> common DataSet and certain modules that manipulate the DataSet. My
> test cases were run within the 3rd project where all worked fine. Now
> I'm in the quandry where I can't use that 3rd project dataset in the
> other 2 projects. Caching/Application Variables seem to be out of the
> question unless someone knows a way for a project to reference its own
> httpcontext over the actual requesting context from the other
> project(s). I can't seem to get any type of a global variable on the
> 3rd project to work as only the project that created the dataset can
> see/use it, thus requiring an instance per project which is what I'm
> tring to avoid. Any ideas?
>
> quick rant:
> Microsoft's answer for cross-project issues always seems to be 'by
> design for security' which is annoying. As a .Net programmer it's
> soooo tempting to want to easily share compilable controls/forms
> between projects. Not even offering it is a huge limitation on an
> otherwise powerful platform. I understand the security concern but
> would it have been so hard to offer it allowed if only explicitly?
>
> Dominic



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
c is a low-level language or neither low level nor high level language pabbu C Programming 8 11-07-2005 03:05 PM
page-level vs control-level enableViewState =?Utf-8?B?Sm9l?= ASP .Net 3 10-26-2005 07:14 PM
Is Cisco PIX Application level firewall or Packet level firewall? Learning Cisco Cisco 3 10-15-2005 12:55 AM
Accessing higher security level from higher security level nderose@gmail.com Cisco 0 07-11-2005 10:20 PM
Page Level and Applicatoin Level Custom Errors rranveer@gmail.com ASP .Net 2 02-13-2005 02:03 AM



Advertisments