Hello igotyourdotnet,
As for your first question, I've also found your another thread "error
trapping" in this newsgroup and some other members and our engineer Walter
have also joined in that thread. Normally, redirect to login page is caused
by the current user's associated role doesn't meet the ASP.NET(forms
authenticatino) 's authorization requirement. Is the menuitem(on the error
page) point to a page which require higher authorization permission? You
can try Gregory's suggestion on use a static html page to verify the
behavior.
As for the second question, I think basically, we can consider the
following options in ASP.NET 2.0 databinding page:
** If you do not use DataSource control to bind data to GridView, we need
to manually bind DataSource object to GridView.DataSo urce property
programmtically . Also, we should handle GridView.Sort event and rebind the
GridView with the sorted datasource collection. This is just like what we
do in ASP.NET 1.1 for DataGrid.
As for the Sorted DataSource object, I suggest you consider caching a
DataTable of the original data in ASP.NET cache, and when the Gridview's
Sort event fires, you retrieve the DataTable from cache and get a Sorted
DataView from the DataTable. This can help reduce the time we query the
backend database.
#GridView.Sorti ng Event
http://msdn2.microsoft.com/en-us/lib...trols.gridview.
sorting.aspx
Please let me know how you get the datasource object and what's the
datasource object collection so that we can provide some further info
according to the scenario.
** Since you mentioned that you use several dropdownlists to filter the
data retrieved from database and bind them to GridView, how do those
dropdownlist's filter items work in the select query? When using
Datasource Control(SqlData Source or ObjectDataSourc e) we can also configure
the DataSource control to receive paramters from other controls(like
dropdownlist, textbox .....). Therefore, if it is possible to change your
page to use those dropdownlist as paramter source of Datasource control, we
can still bind GridView to datasource control and avoid manual sorting.
Please feel free to let me know if you have any particular concerns or
difficulties here.
Sincerely,
Steven Cheng
Microsoft MSDN Online Support Lead
=============== =============== =============== =====
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.
Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.
=============== =============== =============== =====
This posting is provided "AS IS" with no warranties, and confers no rights.