Click here to Skip to main content
15,921,028 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: web app, opening Word Doc's Pin
kindzieb18-Jun-07 8:22
kindzieb18-Jun-07 8:22 
GeneralRe: web app, opening Word Doc's Pin
Dave Kreskowiak18-Jun-07 8:59
mveDave Kreskowiak18-Jun-07 8:59 
GeneralRe: web app, opening Word Doc's Pin
kindzieb18-Jun-07 10:03
kindzieb18-Jun-07 10:03 
GeneralRe: web app, opening Word Doc's Pin
Dave Kreskowiak18-Jun-07 10:20
mveDave Kreskowiak18-Jun-07 10:20 
QuestionAccess form variables from custom control (bindingsource) Pin
AlexeiXX318-Jun-07 4:56
AlexeiXX318-Jun-07 4:56 
AnswerRe: Access form variables from custom control (bindingsource) Pin
Dave Kreskowiak19-Jun-07 4:43
mveDave Kreskowiak19-Jun-07 4:43 
GeneralRe: Access form variables from custom control (bindingsource) Pin
AlexeiXX319-Jun-07 8:51
AlexeiXX319-Jun-07 8:51 
GeneralRe: Access form variables from custom control (bindingsource) Pin
Dave Kreskowiak19-Jun-07 10:41
mveDave Kreskowiak19-Jun-07 10:41 
AlexeiXX3 wrote:
Could you tell me how would i use it?


Private Class MyBindClass
    Private Shared someVariable As Integer



AlexeiXX3 wrote:
The variable that i need would be in the main form or a global variable in the main project


You can't do that because the class you created will have no idea what code called it. And, it shouldn't even care.




AlexeiXX3 wrote:
I have a custom control that connects to a web service, ive been using this control in some applications and has worked fine, but now i need to keep session info on the server side which hosts the web service, but the controls dont keep session info automatically, so, using the CookieContainer of the webservice class created for me using the option "Add Web Reference" the control is able to access the same session that the control started when it first connected, but when i access from another of my custom controls, there is no session info, and a new session is started, to access the same session, i have to share the CookieContainer of the control that first connected to the web service to every control that is on my app, thats the variable that i need to share

If you know of any better way to accomplish this, ill appreciate it


This would have helped from the very start. Web Services are not my area of expertise. As I understand it, Web Services are meant to be static methods and stateless.

Off the top of my head, you'd have to have an external store to keep session data persisted and pass a session id back top the client on the first request. The client would then have to pass it's session ID back to the web service on every call. Anything you wanted to save between calls in an individual session would have to be serialized into the persistant storage and deserialized into every call.

Storing values to be used between multiple sessions at the same time would also require an external storage to persist the shared variable, like a database table.


But, that was all off the top of my head with the limited knowledge I have of web services. I'd probably start reading something like this[^] if I wanted to find out more.


A guide to posting questions on CodeProject[^]

Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic
     2006, 2007


QuestionPrint Existing files in the Folder in vb.net Pin
Saivjil18-Jun-07 2:21
Saivjil18-Jun-07 2:21 
AnswerRe: Print Existing files in the Folder in vb.net Pin
originSH18-Jun-07 4:09
originSH18-Jun-07 4:09 
QuestionDropDown problem Pin
matjame18-Jun-07 0:40
matjame18-Jun-07 0:40 
AnswerRe: DropDown problem Pin
Dave Kreskowiak19-Jun-07 4:17
mveDave Kreskowiak19-Jun-07 4:17 
Questiontext-2-speech Pin
Abdul8517-Jun-07 21:56
Abdul8517-Jun-07 21:56 
AnswerRe: text-2-speech Pin
Christian Graus18-Jun-07 13:21
protectorChristian Graus18-Jun-07 13:21 
AnswerRe: text-2-speech Pin
Dave Kreskowiak19-Jun-07 4:08
mveDave Kreskowiak19-Jun-07 4:08 
QuestionTab control Disable/Enable Pin
ozzyrocsdbn17-Jun-07 20:25
ozzyrocsdbn17-Jun-07 20:25 
AnswerRe: Tab control Disable/Enable Pin
Xandip17-Jun-07 20:30
Xandip17-Jun-07 20:30 
QuestionRe: Tab control Disable/Enable Pin
ozzyrocsdbn17-Jun-07 20:56
ozzyrocsdbn17-Jun-07 20:56 
AnswerRe: Tab control Disable/Enable Pin
Dave Kreskowiak18-Jun-07 1:20
mveDave Kreskowiak18-Jun-07 1:20 
QuestionSearching a Certain Column in a Datagrid VB.NET Pin
Vimalsoft(Pty) Ltd17-Jun-07 20:03
professionalVimalsoft(Pty) Ltd17-Jun-07 20:03 
AnswerRe: Searching a Certain Column in a Datagrid VB.NET Pin
Johan Hakkesteegt19-Jun-07 2:19
Johan Hakkesteegt19-Jun-07 2:19 
GeneralRe: Searching a Certain Column in a Datagrid VB.NET [modified] Pin
Vimalsoft(Pty) Ltd19-Jun-07 3:59
professionalVimalsoft(Pty) Ltd19-Jun-07 3:59 
GeneralRe: Searching a Certain Column in a Datagrid VB.NET Pin
Johan Hakkesteegt19-Jun-07 20:25
Johan Hakkesteegt19-Jun-07 20:25 
GeneralRe: Searching a Certain Column in a Datagrid VB.NET Pin
Vimalsoft(Pty) Ltd19-Jun-07 21:29
professionalVimalsoft(Pty) Ltd19-Jun-07 21:29 
QuestionVista look Pin
caltech17-Jun-07 15:38
caltech17-Jun-07 15: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.