473,473 Members | 2,164 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Viewstate of variables.

Been a while since I've touched asp.net but one thing that always seems to
fustrate me is the loss of state on variable declarations. Is there anyway
(i.e. assigning an attribute etc) to instruct the server to remember a
variables state *without* having to go through the rigmarole of saving and
loading to and from the Session state manually or similar workaround for any
Types (including custom types) in exactly the same way web controls retain
state. I understand the reasons (performance) that this is not done by
default ... but it is really anoying.

e.g. This would be great...

[ViewState save=true]
protected Person myperson;

private void Page_Load(object sender, System.EventArgs e) {
if (!this.IsPostBack)
myperson = new Person("Mr Unhappy");
}
//otherwise myperson still points to an instance
}
so that on every postback myperson instance would still exist.

Any ideas are extremely welcome.
Br,

Mark.
Nov 19 '05 #1
9 1846
This is a perfect candidate for a property.

I type:

protected Person myPerson;

Then I run a macro that turns the above code into:

protected Person myPerson
{
get {
Person p = ViewState["Person"] as Person;
if ( p == null ) {
p = new Person( "Mr Happy I don't have to type this every time." );
ViewState["Person"] = value;
}
return p;
}

set { ViewState["Person"] = value; }
}

In code I only reference myPerson. You can also continue to set it in
Page.Load !PostBack and leave out the new declaration in the property.

"Mark Broadbent" <no****@nospam.com> wrote in message
news:OZ**************@TK2MSFTNGP15.phx.gbl...
Been a while since I've touched asp.net but one thing that always seems to
fustrate me is the loss of state on variable declarations. Is there anyway
(i.e. assigning an attribute etc) to instruct the server to remember a
variables state *without* having to go through the rigmarole of saving and
loading to and from the Session state manually or similar workaround for any Types (including custom types) in exactly the same way web controls retain
state. I understand the reasons (performance) that this is not done by
default ... but it is really anoying.

e.g. This would be great...

[ViewState save=true]
protected Person myperson;

private void Page_Load(object sender, System.EventArgs e) {
if (!this.IsPostBack)
myperson = new Person("Mr Unhappy");
}
//otherwise myperson still points to an instance
}
so that on every postback myperson instance would still exist.

Any ideas are extremely welcome.
Br,

Mark.

Nov 19 '05 #2
You can store any variable in ViewState that can be serialized as text.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Ambiguity has a certain quality to it.

"Mark Broadbent" <no****@nospam.com> wrote in message
news:OZ**************@TK2MSFTNGP15.phx.gbl...
Been a while since I've touched asp.net but one thing that always seems to
fustrate me is the loss of state on variable declarations. Is there anyway
(i.e. assigning an attribute etc) to instruct the server to remember a
variables state *without* having to go through the rigmarole of saving and
loading to and from the Session state manually or similar workaround for
any Types (including custom types) in exactly the same way web controls
retain state. I understand the reasons (performance) that this is not done
by default ... but it is really anoying.

e.g. This would be great...

[ViewState save=true]
protected Person myperson;

private void Page_Load(object sender, System.EventArgs e) {
if (!this.IsPostBack)
myperson = new Person("Mr Unhappy");
}
//otherwise myperson still points to an instance
}
so that on every postback myperson instance would still exist.

Any ideas are extremely welcome.
Br,

Mark.

Nov 19 '05 #3
You are having to explicitly implement coding to manage the state of this
variable and we are talking more than a couple of lines -especially when the
instance variable in question is quite complex such as when it has method
calls which change its state (that must be saved).

Thanks for suggestion though - it is probably the cleanest way to do this
(as I unfortunately thought).

Br,

Mark.
"William F. Robertson, Jr." <th****@nameht.org> wrote in message
news:e7**************@TK2MSFTNGP15.phx.gbl...
This is a perfect candidate for a property.

I type:

protected Person myPerson;

Then I run a macro that turns the above code into:

protected Person myPerson
{
get {
Person p = ViewState["Person"] as Person;
if ( p == null ) {
p = new Person( "Mr Happy I don't have to type this every time." );
ViewState["Person"] = value;
}
return p;
}

set { ViewState["Person"] = value; }
}

In code I only reference myPerson. You can also continue to set it in
Page.Load !PostBack and leave out the new declaration in the property.

"Mark Broadbent" <no****@nospam.com> wrote in message
news:OZ**************@TK2MSFTNGP15.phx.gbl...
Been a while since I've touched asp.net but one thing that always seems
to
fustrate me is the loss of state on variable declarations. Is there
anyway
(i.e. assigning an attribute etc) to instruct the server to remember a
variables state *without* having to go through the rigmarole of saving
and
loading to and from the Session state manually or similar workaround for

any
Types (including custom types) in exactly the same way web controls
retain
state. I understand the reasons (performance) that this is not done by
default ... but it is really anoying.

e.g. This would be great...

[ViewState save=true]
protected Person myperson;

private void Page_Load(object sender, System.EventArgs e) {
if (!this.IsPostBack)
myperson = new Person("Mr Unhappy");
}
//otherwise myperson still points to an instance
}
so that on every postback myperson instance would still exist.

Any ideas are extremely welcome.
Br,

Mark.


Nov 19 '05 #4
Hi Kevin, thanks but unfortunately I still feel that something is lacking a
bit. Being forced to programmatically implement state management on
something simple (for instance a protected value type e.g. protected int
num) when the functionality/ ability could be there via attributes or
something similar I just find a bit crazy and fustrates me immensely because
it potentially can cause many bugs if not handled correctly especially
someone like me who spends more time on Winforms than asp.net.

MS give us self-state mangaged (or as near as damn it) Web Controls, yet
still force us to implement state management for class level vars.
Am I asking for too much (as per my origonal post) to be able to specify
this for serializable objects? It would bring Web forms programming so much
closer to that of Winforms.

Br,

Mark.

"Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com> wrote in message
news:eS**************@TK2MSFTNGP12.phx.gbl...
You can store any variable in ViewState that can be serialized as text.

--
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
Ambiguity has a certain quality to it.

"Mark Broadbent" <no****@nospam.com> wrote in message
news:OZ**************@TK2MSFTNGP15.phx.gbl...
Been a while since I've touched asp.net but one thing that always seems
to fustrate me is the loss of state on variable declarations. Is there
anyway (i.e. assigning an attribute etc) to instruct the server to
remember a variables state *without* having to go through the rigmarole
of saving and loading to and from the Session state manually or similar
workaround for any Types (including custom types) in exactly the same way
web controls retain state. I understand the reasons (performance) that
this is not done by default ... but it is really anoying.

e.g. This would be great...

[ViewState save=true]
protected Person myperson;

private void Page_Load(object sender, System.EventArgs e) {
if (!this.IsPostBack)
myperson = new Person("Mr Unhappy");
}
//otherwise myperson still points to an instance
}
so that on every postback myperson instance would still exist.

Any ideas are extremely welcome.
Br,

Mark.


Nov 19 '05 #5
The code snippet by far does NOT manage the state of myPerson. The only
thing explicit about it, is I am explicitly storing the item in ViewState.
I could have placed it in Session, Application, Cache, or could have
implemented explicit state management.

ViewState["Person"] points to an instance of myPerson.
Person points to the same instance.

Because ViewState["Person"] points to an instance, no matter how complex
your methods calls are on it, your Person is not actually saved to ViewState
until PreRender. You can make all the changes you want to the internal
workings of your Person object, without reassigning it to ViewState.

How would you expected to have this item persisted?

bill
"Mark Broadbent" <no****@nospam.com> wrote in message
news:eQ****************@TK2MSFTNGP10.phx.gbl...
You are having to explicitly implement coding to manage the state of this
variable and we are talking more than a couple of lines -especially when the instance variable in question is quite complex such as when it has method
calls which change its state (that must be saved).

Thanks for suggestion though - it is probably the cleanest way to do this
(as I unfortunately thought).

Br,

Mark.
"William F. Robertson, Jr." <th****@nameht.org> wrote in message
news:e7**************@TK2MSFTNGP15.phx.gbl...
This is a perfect candidate for a property.

I type:

protected Person myPerson;

Then I run a macro that turns the above code into:

protected Person myPerson
{
get {
Person p = ViewState["Person"] as Person;
if ( p == null ) {
p = new Person( "Mr Happy I don't have to type this every time." );
ViewState["Person"] = value;
}
return p;
}

set { ViewState["Person"] = value; }
}

In code I only reference myPerson. You can also continue to set it in
Page.Load !PostBack and leave out the new declaration in the property.

"Mark Broadbent" <no****@nospam.com> wrote in message
news:OZ**************@TK2MSFTNGP15.phx.gbl...
Been a while since I've touched asp.net but one thing that always seems
to
fustrate me is the loss of state on variable declarations. Is there
anyway
(i.e. assigning an attribute etc) to instruct the server to remember a
variables state *without* having to go through the rigmarole of saving
and
loading to and from the Session state manually or similar workaround
for any
Types (including custom types) in exactly the same way web controls
retain
state. I understand the reasons (performance) that this is not done by
default ... but it is really anoying.

e.g. This would be great...

[ViewState save=true]
protected Person myperson;

private void Page_Load(object sender, System.EventArgs e) {
if (!this.IsPostBack)
myperson = new Person("Mr Unhappy");
}
//otherwise myperson still points to an instance
}
so that on every postback myperson instance would still exist.

Any ideas are extremely welcome.
Br,

Mark.



Nov 19 '05 #6
Hi Mark,
... Being forced to programmatically implement state management on
something simple (for instance a protected value type e.g. protected int
num) when the functionality/ ability could be there via attributes or
something similar ...
I've been doing web applications for about 10 years now, and have never
thought of it as "simple." In fact, web application development is an order
of magnitude more complex that Windows Forms porogramming, "simply" ( ;-) )
because it works in an HTTP stateless web environment, and on the big bad
Internet, where security is a major player, not to mention all of the other
networking issues involved.
Am I asking for too much (as per my origonal post) to be able to specify
this for serializable objects?
Under the circumstances (as I described in my previous paragraph) I would
have to say "yes."

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Ambiguity has a certain quality to it.

"Mark Broadbent" <no****@nospam.com> wrote in message
news:%2****************@TK2MSFTNGP14.phx.gbl... Hi Kevin, thanks but unfortunately I still feel that something is lacking
a bit. Being forced to programmatically implement state management on
something simple (for instance a protected value type e.g. protected int
num) when the functionality/ ability could be there via attributes or
something similar I just find a bit crazy and fustrates me immensely
because it potentially can cause many bugs if not handled correctly
especially someone like me who spends more time on Winforms than asp.net.

MS give us self-state mangaged (or as near as damn it) Web Controls, yet
still force us to implement state management for class level vars.
Am I asking for too much (as per my origonal post) to be able to specify
this for serializable objects? It would bring Web forms programming so
much closer to that of Winforms.

Br,

Mark.

"Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com> wrote in message
news:eS**************@TK2MSFTNGP12.phx.gbl...
You can store any variable in ViewState that can be serialized as text.

--
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
Ambiguity has a certain quality to it.

"Mark Broadbent" <no****@nospam.com> wrote in message
news:OZ**************@TK2MSFTNGP15.phx.gbl...
Been a while since I've touched asp.net but one thing that always seems
to fustrate me is the loss of state on variable declarations. Is there
anyway (i.e. assigning an attribute etc) to instruct the server to
remember a variables state *without* having to go through the rigmarole
of saving and loading to and from the Session state manually or similar
workaround for any Types (including custom types) in exactly the same
way web controls retain state. I understand the reasons (performance)
that this is not done by default ... but it is really anoying.

e.g. This would be great...

[ViewState save=true]
protected Person myperson;

private void Page_Load(object sender, System.EventArgs e) {
if (!this.IsPostBack)
myperson = new Person("Mr Unhappy");
}
//otherwise myperson still points to an instance
}
so that on every postback myperson instance would still exist.

Any ideas are extremely welcome.
Br,

Mark.



Nov 19 '05 #7
I'm afraid you've lost me a bit with what you have said (doesn't quite make
sense ...to me at least)
I completely understand using the state management techiques (so not a
problem there). Calling methods on the object saved in view state via
property is effectively making a copy of that serialized instance to memory
so that if i did the following for a collection object stored in viewstate
and accessed via property BigCollection....

BigCollection.MoveToRecord(10);

will only perform that operation on the "instance" returned/ deserialized
via the property from viewstate.
It will not perform that operation on the serialized instance stored in
viewstate. I would explicitly have to make sure that I overwrote that item
thus...

ACollection col;
col = BigCollection;
col.MoveToRecord(10);
BigCollection = col;

As you say, I know that I don't *have* to reassign it to ViewState if I
don't want changes to be written back, but that is exactly what I need.

My suggestion in my original post is simply that Web Controls perform their
own state management and that makes things easy (the whole reason MS
introduced them), I just thought that it should be possible to "mark"
variables valuetypes and reftype objects (that can be serialized) to force
asp.net to persist them -if we wanted.

This would surely make state management so much easier to do, less code to
write and less scope for bugs.

Thanks,

Mark.
"William F. Robertson, Jr." <th****@nameht.org> wrote in message
news:e1**************@TK2MSFTNGP09.phx.gbl...
The code snippet by far does NOT manage the state of myPerson. The only
thing explicit about it, is I am explicitly storing the item in ViewState.
I could have placed it in Session, Application, Cache, or could have
implemented explicit state management.

ViewState["Person"] points to an instance of myPerson.
Person points to the same instance.

Because ViewState["Person"] points to an instance, no matter how complex
your methods calls are on it, your Person is not actually saved to
ViewState
until PreRender. You can make all the changes you want to the internal
workings of your Person object, without reassigning it to ViewState.

How would you expected to have this item persisted?

bill
"Mark Broadbent" <no****@nospam.com> wrote in message
news:eQ****************@TK2MSFTNGP10.phx.gbl...
You are having to explicitly implement coding to manage the state of this
variable and we are talking more than a couple of lines -especially when

the
instance variable in question is quite complex such as when it has method
calls which change its state (that must be saved).

Thanks for suggestion though - it is probably the cleanest way to do this
(as I unfortunately thought).

Br,

Mark.
"William F. Robertson, Jr." <th****@nameht.org> wrote in message
news:e7**************@TK2MSFTNGP15.phx.gbl...
> This is a perfect candidate for a property.
>
> I type:
>
> protected Person myPerson;
>
> Then I run a macro that turns the above code into:
>
> protected Person myPerson
> {
> get {
> Person p = ViewState["Person"] as Person;
> if ( p == null ) {
> p = new Person( "Mr Happy I don't have to type this every
> time." );
> ViewState["Person"] = value;
> }
> return p;
> }
>
> set { ViewState["Person"] = value; }
> }
>
> In code I only reference myPerson. You can also continue to set it in
> Page.Load !PostBack and leave out the new declaration in the property.
>
> "Mark Broadbent" <no****@nospam.com> wrote in message
> news:OZ**************@TK2MSFTNGP15.phx.gbl...
>> Been a while since I've touched asp.net but one thing that always
>> seems
>> to
>> fustrate me is the loss of state on variable declarations. Is there
>> anyway
>> (i.e. assigning an attribute etc) to instruct the server to remember a
>> variables state *without* having to go through the rigmarole of saving
>> and
>> loading to and from the Session state manually or similar workaround for > any
>> Types (including custom types) in exactly the same way web controls
>> retain
>> state. I understand the reasons (performance) that this is not done by
>> default ... but it is really anoying.
>>
>> e.g. This would be great...
>>
>> [ViewState save=true]
>> protected Person myperson;
>>
>> private void Page_Load(object sender, System.EventArgs e) {
>> if (!this.IsPostBack)
>> myperson = new Person("Mr Unhappy");
>> }
>> //otherwise myperson still points to an instance
>> }
>>
>>
>> so that on every postback myperson instance would still exist.
>>
>> Any ideas are extremely welcome.
>> Br,
>>
>> Mark.
>>
>>
>
>



Nov 19 '05 #8
I agree with all you say *except* the last bit :)
If it can be done with web controls, it can be done with anything
(serializable).

I guess if the Earth was round I'd like it flat ......oh wait a minute ;-)

"Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com> wrote in message
news:uD**************@tk2msftngp13.phx.gbl...
Hi Mark,
... Being forced to programmatically implement state management on
something simple (for instance a protected value type e.g. protected int
num) when the functionality/ ability could be there via attributes or
something similar ...


I've been doing web applications for about 10 years now, and have never
thought of it as "simple." In fact, web application development is an
order of magnitude more complex that Windows Forms porogramming, "simply"
( ;-) ) because it works in an HTTP stateless web environment, and on the
big bad Internet, where security is a major player, not to mention all of
the other networking issues involved.
Am I asking for too much (as per my origonal post) to be able to specify
this for serializable objects?


Under the circumstances (as I described in my previous paragraph) I would
have to say "yes."

--
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
Ambiguity has a certain quality to it.

"Mark Broadbent" <no****@nospam.com> wrote in message
news:%2****************@TK2MSFTNGP14.phx.gbl...
Hi Kevin, thanks but unfortunately I still feel that something is lacking
a bit. Being forced to programmatically implement state management on
something simple (for instance a protected value type e.g. protected int
num) when the functionality/ ability could be there via attributes or
something similar I just find a bit crazy and fustrates me immensely
because it potentially can cause many bugs if not handled correctly
especially someone like me who spends more time on Winforms than asp.net.

MS give us self-state mangaged (or as near as damn it) Web Controls, yet
still force us to implement state management for class level vars.
Am I asking for too much (as per my origonal post) to be able to specify
this for serializable objects? It would bring Web forms programming so
much closer to that of Winforms.

Br,

Mark.

"Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com> wrote in message
news:eS**************@TK2MSFTNGP12.phx.gbl...
You can store any variable in ViewState that can be serialized as text.

--
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
Ambiguity has a certain quality to it.

"Mark Broadbent" <no****@nospam.com> wrote in message
news:OZ**************@TK2MSFTNGP15.phx.gbl...
Been a while since I've touched asp.net but one thing that always seems
to fustrate me is the loss of state on variable declarations. Is there
anyway (i.e. assigning an attribute etc) to instruct the server to
remember a variables state *without* having to go through the rigmarole
of saving and loading to and from the Session state manually or similar
workaround for any Types (including custom types) in exactly the same
way web controls retain state. I understand the reasons (performance)
that this is not done by default ... but it is really anoying.

e.g. This would be great...

[ViewState save=true]
protected Person myperson;

private void Page_Load(object sender, System.EventArgs e) {
if (!this.IsPostBack)
myperson = new Person("Mr Unhappy");
}
//otherwise myperson still points to an instance
}
so that on every postback myperson instance would still exist.

Any ideas are extremely welcome.
Br,

Mark.



Nov 19 '05 #9
This would be much easier to explain with a chalkboard, but I will try to
make it understandable. I think you are a little confused on when an object
is "copyed" and when a reference to an object is copyed.

I am fluffing a little bit on the details to get the point across. This
following assumes that BigCollection is the property using the pattern
discussed earlier.

ViewState is a string keyed collection. The key is a string and the value
is an object reference to an actual object.

ViewState is only serialized on SaveViewState and Deserialized on
LoadViewState. When the ViewState is deserialized the text is converted
into a real object and the object reference is saved in the ViewState
StateBag. When you access ViewState["BigCollection"] you are NOT
deserializing the object, the object is already deserialized and is sitting
on the managed heap.

Since all class instances are basically pointers was this means is
ViewState["BigCollection"] points to heap address 0x01234567.
When accessing the BigCollection property it points to heap address
0x01234567.

No matter what methods you call on it, ie MoveToRecord(10), the address of
BigCollection never changed. You can not change the "this" pointer of an
object.

Even when you assigned BigCollection to another pointer.

Collection col = BigCollection.

col still points to heap address 0x01234567.

So in your snippet below when you assign col back to BigCollection, you are
replacing nothing. It is the same thing as
int a = 7;
a = 7.

The value of A did not change.

BigCollection, ViewState["BigCollection"], and col all point to the same
location.

So when the SaveViewState method is called and the serialization takes
place, all changes made to heap address 0x1234567 will be inforce and
updated correctly.

bill

FYI, this is nearly the same model the WebControls implement in their state
mechanism.

"Mark Broadbent" <no****@nospam.com> wrote in message
news:eN**************@TK2MSFTNGP10.phx.gbl...
I'm afraid you've lost me a bit with what you have said (doesn't quite make sense ...to me at least)
I completely understand using the state management techiques (so not a
problem there). Calling methods on the object saved in view state via
property is effectively making a copy of that serialized instance to memory so that if i did the following for a collection object stored in viewstate
and accessed via property BigCollection....

BigCollection.MoveToRecord(10);

will only perform that operation on the "instance" returned/ deserialized
via the property from viewstate.
It will not perform that operation on the serialized instance stored in
viewstate. I would explicitly have to make sure that I overwrote that item
thus...

ACollection col;
col = BigCollection;
col.MoveToRecord(10);
BigCollection = col;

As you say, I know that I don't *have* to reassign it to ViewState if I
don't want changes to be written back, but that is exactly what I need.

My suggestion in my original post is simply that Web Controls perform their own state management and that makes things easy (the whole reason MS
introduced them), I just thought that it should be possible to "mark"
variables valuetypes and reftype objects (that can be serialized) to force
asp.net to persist them -if we wanted.

This would surely make state management so much easier to do, less code to
write and less scope for bugs.

Thanks,

Mark.
"William F. Robertson, Jr." <th****@nameht.org> wrote in message
news:e1**************@TK2MSFTNGP09.phx.gbl...
The code snippet by far does NOT manage the state of myPerson. The only
thing explicit about it, is I am explicitly storing the item in ViewState. I could have placed it in Session, Application, Cache, or could have
implemented explicit state management.

ViewState["Person"] points to an instance of myPerson.
Person points to the same instance.

Because ViewState["Person"] points to an instance, no matter how complex
your methods calls are on it, your Person is not actually saved to
ViewState
until PreRender. You can make all the changes you want to the internal
workings of your Person object, without reassigning it to ViewState.

How would you expected to have this item persisted?

bill
"Mark Broadbent" <no****@nospam.com> wrote in message
news:eQ****************@TK2MSFTNGP10.phx.gbl...
You are having to explicitly implement coding to manage the state of this variable and we are talking more than a couple of lines -especially when
the
instance variable in question is quite complex such as when it has

method calls which change its state (that must be saved).

Thanks for suggestion though - it is probably the cleanest way to do this (as I unfortunately thought).

Br,

Mark.
"William F. Robertson, Jr." <th****@nameht.org> wrote in message
news:e7**************@TK2MSFTNGP15.phx.gbl...
> This is a perfect candidate for a property.
>
> I type:
>
> protected Person myPerson;
>
> Then I run a macro that turns the above code into:
>
> protected Person myPerson
> {
> get {
> Person p = ViewState["Person"] as Person;
> if ( p == null ) {
> p = new Person( "Mr Happy I don't have to type this every
> time." );
> ViewState["Person"] = value;
> }
> return p;
> }
>
> set { ViewState["Person"] = value; }
> }
>
> In code I only reference myPerson. You can also continue to set it in > Page.Load !PostBack and leave out the new declaration in the property. >
> "Mark Broadbent" <no****@nospam.com> wrote in message
> news:OZ**************@TK2MSFTNGP15.phx.gbl...
>> Been a while since I've touched asp.net but one thing that always
>> seems
>> to
>> fustrate me is the loss of state on variable declarations. Is there
>> anyway
>> (i.e. assigning an attribute etc) to instruct the server to remember a >> variables state *without* having to go through the rigmarole of saving >> and
>> loading to and from the Session state manually or similar workaround

for
> any
>> Types (including custom types) in exactly the same way web controls
>> retain
>> state. I understand the reasons (performance) that this is not done by >> default ... but it is really anoying.
>>
>> e.g. This would be great...
>>
>> [ViewState save=true]
>> protected Person myperson;
>>
>> private void Page_Load(object sender, System.EventArgs e) {
>> if (!this.IsPostBack)
>> myperson = new Person("Mr Unhappy");
>> }
>> //otherwise myperson still points to an instance
>> }
>>
>>
>> so that on every postback myperson instance would still exist.
>>
>> Any ideas are extremely welcome.
>> Br,
>>
>> Mark.
>>
>>
>
>



Nov 19 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: blurz | last post by:
Hi, would like to know whether I can use ViewState to pass variables from one web page to another. I've been trying do this but all I managed to do is to pass the variable to the target page but...
9
by: John Kirksey | last post by:
I have a page that uses an in-place editable DataGrid that supports sorting and paging. EnableViewState is turned ON. At the top of the page are several search fields that allow the user to filter...
10
by: neo | last post by:
hi, I am studying ASP.NET and have few questions - 1) The session ID and values of controls is stored in VIEWSTATE variable. So now when we put EnableViewState="false" in Page directive and...
0
by: S.Sigal | last post by:
Hello: I've been trying to 'organize' the layout of my larger controls by moving variables into instances of subclasses...but it just dawned on me that I might be opening a real can of worms due...
1
by: Simon | last post by:
Hi everyone, I have a quick question that I hope someone can help me with: I've made a user control that contains a text box and some validation functionality. This control has a few extra...
1
by: Hugo Flores | last post by:
Hi, I'm trying to pass information between pages. I'm trying to avoid using QueryString and Session variables. I saw somewhere that I could use contxt.Items.Add (combined with Server.Transfer)...
6
by: Patrick.O.Ige | last post by:
I'm constructing a link from a viewstate and passing it on to a querystring.. After clciking a checkboxlist i add the value to a viewstate and return it but on the same page i also have a...
4
by: Dan | last post by:
Hi, i'm not sure to understand the difference between refreshing the pagina by clicking on 'refresh' in the browser and a postback. What i think it is: Suppose a page with a form containing a...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
0
Oralloy
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,...
0
jinu1996
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...
0
agi2029
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,...
1
isladogs
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...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.