Click here to Skip to main content
15,920,383 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Master Page, PostBack, and Request.Form Problem Pin
Mike Ellison15-Apr-06 12:38
Mike Ellison15-Apr-06 12:38 
GeneralRe: Master Page, PostBack, and Request.Form Problem Pin
RX Maverick15-Apr-06 13:55
RX Maverick15-Apr-06 13:55 
GeneralRe: Master Page, PostBack, and Request.Form Problem Pin
RX Maverick15-Apr-06 14:33
RX Maverick15-Apr-06 14:33 
GeneralRe: Master Page, PostBack, and Request.Form Problem Pin
Mike Ellison15-Apr-06 17:05
Mike Ellison15-Apr-06 17:05 
Questionimage uploading Pin
TAREQ F ABUZUHRI15-Apr-06 9:43
TAREQ F ABUZUHRI15-Apr-06 9:43 
QuestionSaving an uploaded file on the server?? Pin
Nada Adel15-Apr-06 8:34
Nada Adel15-Apr-06 8:34 
QuestionSession State - Persistant Class? Pin
econner15-Apr-06 7:14
econner15-Apr-06 7:14 
QuestionASP.NET Scope of Public Shared Functions Pin
CKSierrabay15-Apr-06 4:34
CKSierrabay15-Apr-06 4:34 
I want to use a single class to generate DataTables, DataSets, and other objects but I know from experience if I 'Public Share' a variable it is maintained on the server and exposed to ALL users (i.e. Public Share varUserName = 'Mary Sue'... all users see 'Mary Sue' where the variable is written to the page).

Since I'm wanting to use a function and simply return a value/object are there any concerns regarding the scope (lifetime) of the function when multiple users are accessing the same function?

Here's the scenario...

Public Shared Function getUsers(ByVal strFitler as String) as DataTable

Dim dt As New DataTable

'create table and fill...

Return dt

End Function

User_A clicks a button which fires the Public Shared Function getUserInfo() and returns a DataTable which is then used to populate a DataGrid. At the same time User_B clicks the same button. Now for the twist. Lets say User_A applied a filter to view only active users whereas User_B wanted only users with the last name 'Smith'. Since the data being returned is different will both users see the same dataset or given that the requests are probaly not process at the exact same millisecond, will the scope of the function be only during each individual request, thus returning the desired data?

If more clarification is needed I'd be happy to provide. I just want to be sure before I implement.

Thanks in advance,

Chris

AnswerRe: ASP.NET Scope of Public Shared Functions Pin
Guffa15-Apr-06 5:02
Guffa15-Apr-06 5:02 
QuestionHow to fill data to DataList, DataGrid that use client side code Pin
ndkit15-Apr-06 1:57
ndkit15-Apr-06 1:57 
Questiondifference btn asp and asp.net Pin
venugopaldigital15-Apr-06 0:42
venugopaldigital15-Apr-06 0:42 
AnswerRe: difference btn asp and asp.net Pin
munklefish15-Apr-06 2:31
munklefish15-Apr-06 2:31 
AnswerRe: difference btn asp and asp.net Pin
Mike Ellison15-Apr-06 2:32
Mike Ellison15-Apr-06 2:32 
AnswerRe: difference btn asp and asp.net Pin
KaKa'17-Apr-06 17:08
KaKa'17-Apr-06 17:08 
QuestionHelp with GridView Pin
Maqsood Ahmed14-Apr-06 22:34
Maqsood Ahmed14-Apr-06 22:34 
AnswerRe: Help with GridView Pin
Mike Ellison15-Apr-06 3:19
Mike Ellison15-Apr-06 3:19 
QuestionA very good site about "GridView" Pin
PlayGirl14-Apr-06 22:26
PlayGirl14-Apr-06 22:26 
QuestionHow to use submit form in Access Database ASP.Net Pin
Murtuza Husain Miyan Patel14-Apr-06 21:38
professionalMurtuza Husain Miyan Patel14-Apr-06 21:38 
AnswerRe: How to use submit form in Access Database ASP.Net Pin
Mike Ellison15-Apr-06 3:06
Mike Ellison15-Apr-06 3:06 
Questionadding a record to database Pin
bambo123414-Apr-06 20:52
bambo123414-Apr-06 20:52 
AnswerRe: adding a record to database Pin
Mike Ellison15-Apr-06 3:05
Mike Ellison15-Apr-06 3:05 
Questionpass argument to web class Pin
2hdass14-Apr-06 18:57
2hdass14-Apr-06 18:57 
AnswerRe: pass argument to web class Pin
Mike Ellison15-Apr-06 2:51
Mike Ellison15-Apr-06 2:51 
QuestionCreating Reports Dynamically Pin
kc_tri14-Apr-06 11:25
kc_tri14-Apr-06 11:25 
AnswerRe: Creating Reports Dynamically Pin
jitendra gupta14-Apr-06 17:38
jitendra gupta14-Apr-06 17:38 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.