Ask a Question related to ASP.NET Security, Design and Development.
-
Doruk #1
Help Needed: Passing variables securely to other ASPX pages
The problem that we are experiencing is simple:
We want to pass certain parameters from a page with several server
controls to another page.
We want to do this in a dotnet compliant manner, but we can't seem to
find a good and clean solution anywhere.
The options we looked into are as follows. Comments following the
options are why we did not want to go with them:
1-) Use a query string
- Too limited (formats it can carry etc.)
- Easy to manipulate
2-) Use Server.Transfer
- Too messy (Browser does not see the URL change, relative paths
fail)
- Certain issues associated with server.transfer
3-) Use session variables
- Take up memory and resources longer than needed
- The parameters passed are only associated with that call and not
the whole session!
4-) Dynamically write out client side script to submit form
- Not a webcontrol
- To much spaghetti code given the way that we are developing the
rest of our system
If anyone has a clean(er) solution to pass variables from a page to
the next please let me know!!!!
Thanks,
Doruk
Doruk Guest
-
passing a token from pageA.aspx to pageB.aspx
I am trying to get pageA.aspx gridView to pass a key (say deptID) to pageB.aspx which will use the value passed as a filter in it's own griView... -
help needed - recompilitation of aspx page
Hello. I have written a web application which takes a request and polls stuuf on the internet and returns it. Most of the code is written as code... -
creating ASPx Pages on the FLY
Hello, Greetings. I am creating a web site which will contain lot of articles. I had been planning to create simple HTML page on the server... -
using code behind variables in .aspx
avs: If its a WebControl then you can acess it in codebehind already. In codebehind you need this line: yourtableid.width = intWidth --... -
aspx pages not viewable
We have just purchased .net ent. edition for our company. I have installed .net on my desktop where I do the developing of our aspx, and vb.net... -
Steve C. Orr [MVP, MCSD] #2
Re: Help Needed: Passing variables securely to other ASPX pages
You could create a base page class that all your pages inherit from.
This base class could contain the "spaghetti code" involved with filling
hidden fields & such. That way the messy stuff is all tucked away.
--
I hope this helps,
Steve C. Orr, MCSD, MVP
[url]http://Steve.Orr.net[/url]
Hire top-notch developers at [url]http://www.able-consulting.com[/url]
"Doruk" <doruk@toz.net> wrote in message
news:220db56b.0311110945.3ef885d0@posting.google.c om...> The problem that we are experiencing is simple:
>
> We want to pass certain parameters from a page with several server
> controls to another page.
>
> We want to do this in a dotnet compliant manner, but we can't seem to
> find a good and clean solution anywhere.
>
> The options we looked into are as follows. Comments following the
> options are why we did not want to go with them:
>
> 1-) Use a query string
> - Too limited (formats it can carry etc.)
> - Easy to manipulate
>
> 2-) Use Server.Transfer
> - Too messy (Browser does not see the URL change, relative paths
> fail)
> - Certain issues associated with server.transfer
>
> 3-) Use session variables
> - Take up memory and resources longer than needed
> - The parameters passed are only associated with that call and not
> the whole session!
>
> 4-) Dynamically write out client side script to submit form
> - Not a webcontrol
> - To much spaghetti code given the way that we are developing the
> rest of our system
>
> If anyone has a clean(er) solution to pass variables from a page to
> the next please let me know!!!!
>
> Thanks,
>
> Doruk
Steve C. Orr [MVP, MCSD] Guest
-
bruce barker #3
Re: Help Needed: Passing variables securely to other ASPX pages
look at ViewState
"Doruk" <doruk@toz.net> wrote in message
news:220db56b.0311110945.3ef885d0@posting.google.c om...> The problem that we are experiencing is simple:
>
> We want to pass certain parameters from a page with several server
> controls to another page.
>
> We want to do this in a dotnet compliant manner, but we can't seem to
> find a good and clean solution anywhere.
>
> The options we looked into are as follows. Comments following the
> options are why we did not want to go with them:
>
> 1-) Use a query string
> - Too limited (formats it can carry etc.)
> - Easy to manipulate
>
> 2-) Use Server.Transfer
> - Too messy (Browser does not see the URL change, relative paths
> fail)
> - Certain issues associated with server.transfer
>
> 3-) Use session variables
> - Take up memory and resources longer than needed
> - The parameters passed are only associated with that call and not
> the whole session!
>
> 4-) Dynamically write out client side script to submit form
> - Not a webcontrol
> - To much spaghetti code given the way that we are developing the
> rest of our system
>
> If anyone has a clean(er) solution to pass variables from a page to
> the next please let me know!!!!
>
> Thanks,
>
> Doruk
bruce barker Guest
-
Polux #4
Re: Help Needed: Passing variables securely to other ASPX pages
ViewState works only for a single page. It cannot be shared among pages.
Not a viable solution.
bruce barker wrote:> look at ViewState
>
>
> "Doruk" <doruk@toz.net> wrote in message
> news:220db56b.0311110945.3ef885d0@posting.google.c om...
>>>>The problem that we are experiencing is simple:
>>
>>We want to pass certain parameters from a page with several server
>>controls to another page.
>>
>>We want to do this in a dotnet compliant manner, but we can't seem to
>>find a good and clean solution anywhere.
>>
>>The options we looked into are as follows. Comments following the
>>options are why we did not want to go with them:
>>
>>1-) Use a query string
>> - Too limited (formats it can carry etc.)
>> - Easy to manipulate
>>
>>2-) Use Server.Transfer
>> - Too messy (Browser does not see the URL change, relative paths
>>fail)
>> - Certain issues associated with server.transfer
>>
>>3-) Use session variables
>> - Take up memory and resources longer than needed
>> - The parameters passed are only associated with that call and not
>>the whole session!
>>
>>4-) Dynamically write out client side script to submit form
>> - Not a webcontrol
>> - To much spaghetti code given the way that we are developing the
>>rest of our system
>>
>>If anyone has a clean(er) solution to pass variables from a page to
>>the next please let me know!!!!
>>
>>Thanks,
>>
>>Doruk
>
>Polux Guest



Reply With Quote

