|
 |
aspx thread: Searching a dataset via dataview?
Message #1 by "Oliver, Wells" <WOliver@l...> on Fri, 25 Oct 2002 13:11:19 -0700
|
|
I have a datagrid with a datasource of a dataview, right, pretty standard.
I want to provide a textbox control beneath the datagrid on the ASPX page
and upon submission have that text be used for a rowfilter on the dataview.
The problem is-- I think-- datasets don't live through postbacks, so I lose
the data.
Anyone done this sort of thing? Tips?
Wells Oliver
Web Applications Programmer
Leviton Voice & Data
xxx-xxx-xxxx
http://www.levitonvoicedata.com
Message #2 by "Marl Atkins" <marl@s...> on Fri, 25 Oct 2002 16:22:28 -0400
|
|
You're right.
You could persist it using the Session["MyView"] = MyView;
I *think* (sorry) you can retrieve it by casting it.
MyView = (DataView)Session["MyView"]
I won't swear to that part though.
-----Original Message-----
From: Oliver, Wells [mailto:WOliver@l...]
Sent: Friday, October 25, 2002 4:11 PM
To: ASP.NET
Subject: [aspx] Searching a dataset via dataview?
I have a datagrid with a datasource of a dataview, right, pretty standard.
I want to provide a textbox control beneath the datagrid on the ASPX page
and upon submission have that text be used for a rowfilter on the dataview.
The problem is-- I think-- datasets don't live through postbacks, so I lose
the data.
Anyone done this sort of thing? Tips?
Wells Oliver
Web Applications Programmer
Leviton Voice & Data
xxx-xxx-xxxx
http://www.levitonvoicedata.com
---
ASP.NET 1.0 Namespace Reference with C#
http://www.wrox.com/acon11.asp?ISBN=1861007442
ASP.NET 1.0 Namespace Reference with VB.NET
http://www.wrox.com/acon11.asp?ISBN=1861007450
These books are a complete reference to the ASP.NET namespaces
for developers who are already familiar with using ASP.NET.
There is no trivial introductory material or useless .NET
hype and the presentation of the namespaces, in an easy-to use
alphabetical order ensures a user-friendly reference format.
We provide in-depth coverage of all the major ASP.NET classes,
giving you those real-world tips that the documentation doesn't
offer, and demonstrating complex techniques with simple
examples.
---
|
|
 |