473,394 Members | 1,879 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Page Navigation with Server.Transfer and ViewState

Dan
I have a datagrid in ASP.NET 1.1

When selecting a particular row, it should divert to another aspx page
and allow me to edit details about that selected row.

What do people feel is the best practise for page navigation?

I'm of the opinion that query string usage via hyperlinks isn't as
secure as post methods via forms, as people could easily amend the url
in their browser address bar?

I'm currently trying to do the following:-

viewState("selectedRowId") = DataGrid1.DataKeys(e.Item.ItemIndex)
Server.Transfer("secondPage.aspx", True)

Then on my secondPage.aspx,

response.write("selectedRowId = " & Request.Form("selectedRowId"))

This doesn't work. I am currently using hidden form values on my first
page and some client-side script to set the hidden value based on my
selected row, then submitting the form, but this is just a bit long
winded and time consuming. I don't want to use Session variables
either, as i'd need to maintain them and clear them.

Surely there must be a better way to do this? What do people generally
use for quick secure page navigation?

Any suggestions are most welcome

Thanks in advance

Dan

Oct 27 '06 #1
0 1118

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

Similar topics

1
by: | last post by:
Is it possible to access the previous page's viewstate directly through the context object after a server.transfer. If so, how? The way i'm doing it is saving all needed items to a structure on...
3
by: Stephen | last post by:
I was wondering if someone can help me with an web application design problem. I have a aspx page which builds up an arraylist called addresses and outputs the values in the arraylist items to a...
3
by: Gvnn | last post by:
Hi, I've a little problem, i've an asp.net page, with a runat server form, like this: <%@ Page Language="vb" AutoEventWireup="false" Codebehind="index.aspx.vb" Inherits="indexGstPro"%> <HTML>...
2
by: Mike | last post by:
hi to all does any body know or receive this message before and how i can repare this: The viewstate is invalid for this page and might be corrupted. thank's Mike
3
by: Mohamud Faruk | last post by:
I am writing a web based application using ASP.Net. As part of the application flow I am calling several web forms and the user can navigate between different forms. Currently I am aware of...
4
by: Manuel Lopez | last post by:
Hello, I need to know on evry request the page name, my problem is when use the method server.transfer, i always get the name of the calling page. I use context.Current.Request.Url, but I am...
3
by: venky | last post by:
Hi, I have a question regarding page navigation. See i have a page called page1.aspx and page2.aspx. On some event in the both the pages the page get transfered to page3.aspx using...
7
by: Shadow Lynx | last post by:
I realize that his question has been asked, in many other forms, many times in this group. Even so, my tired eyes have not yet found a sufficient answer, so I've decided to "reask" it even though...
2
by: thirunavukarasukm | last post by:
Hai I am creating one web application i am using xml String with one containing xml Output to assign that temporary variable.. this my requirement I want to transfer one xml file to...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.