CodeVerge.Net Beta


   Explore    Item Entry    Members      Register  Login  
NEWSGROUP
.NET
Algorithms-Data Structures
Asp.Net
C Plus Plus
CSharp
Database
HTML
Javascript
Linq
Other
Regular Expressions
VB.Net
XML

Free Download:




Zone: > NEWSGROUP > Asp.Net Forum > general_asp.net.security Tags:
Item Type: NewsGroup Date Entered: 3/8/2006 2:48:47 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 1 Views: 20 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
2 Items, 1 Pages 1 |< << Go >> >|
maperry
Asp.Net User
Stopping Page Output on Page_Load3/8/2006 2:48:47 PM

0/0

If I have some code in Page Load that determines if a user is in a particluar role, and do a Response.Write to send a warning that they arent authorized to view that page, how can I stop the rest of the page from showing?

I have the sensitive data set to invisible, but the body of the HTML is still showing up.

 

Easiest way?

 

haidar_bilal
Asp.Net User
Re: Stopping Page Output on Page_Load3/8/2006 4:13:12 PM

0/0

You need to use Role-Based Authentication in ASP.NET:

Check this link: Role Based Authentication, you will find plenty of good articles on this topic.

Regards


Bilal Hadiar, MCP, MCTS, MCPD, MCT
Microsoft MVP - Telerik MVP
2 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
MCAD Developing and Implementing Web Applications with Microsoft Visual C#(TM) . NET and Microsoft Visual Studio(R) . NET Exam Cram 2 (Exam Cram 70-315): Exam Cram 2, McAd Exam 70-315 Authors: Kirk Hausman, Amit Kalani, Priti Kalani, Ed Tittel, Pages: 555, Published: 2003
Developing Web Applications with Visual Basic.NET and ASP.NET Authors: John Alexander, Billy Hollis, Pages: 400, Published: 2002
ASP.NET Cookbook Authors: Michael A. Kittel, Geoffrey T. LeBlond, Pages: 824, Published: 2004
ASP.NET in a Nutshell: A Desktop Quick Reference Authors: G. Andrew Duthie, Matthew MacDonald, Pages: 979, Published: 2003
Mastering ASP.NET with C# Authors: A. Russell Jones, Pages: 816, Published: 2002
Magic of ASP.Net with C# Authors: Panikkar Shibi, Pages: 750, Published: -1
Mastering Web Development with Microsoft Visual Studio 2005 Authors: John Paul Mueller, Pages: 822, Published: 2005
MCAD/MCSD.NET: Developing and Implementing Web Applications with Visual Basic.NET and Visual Studio.NET Authors: Mike Gunderloy, Pages: 1104, Published: 2003
Sams Teach Yourself ASP.NET in 21 Days Authors: Chris Payne, Pages: 1104, Published: 2002

Web:
Stopping further processing with an Exit Sub in the Page_Load ... If you want to stop the output at that point I believe you can use Response.end "Jason" wrote: > I have an ASP.NET page that needs to use ...
Error refreshing a web page - bytes page update successfully? Trace output looks correct in terms of execution sequence and I can stop on breakpoints in the Page_Load and ...
Anas Ghanem Now Register Onclick Attribute for the Linkbutton , in page load add this code : ... also if you want to Invalidate the page Output cache , ...
ASP.NET - Use OutputStream With XmlWriter OutputStream, Allows you to write data to the page output using C# Stream objects ... Don't worry about the parameters to Page_Load or the protected ...
Sagara.NET | All posts tagged 'asp.net' Page execution did not stop at Page_Load, even though we told the ... Here is the output from Error.aspx (remember, this is the list of events that fired ...
Based on Output Value - Stop or Continue Stored Procedure Execution Based on Output Value - Stop or Continue Stored Procedure Execution. ... Protected Sub Page_Load(ByVal sender As Object, ByVal e As System. ...
Inside Microsoft: Remote Management of Windows System Services via ... We’re going to add the status of the service to the output. ... Let’s stop a service with the following code: Sub Page_Load (sender as Object, ...
Help with Response.Redirect(URL,True) behavior So we have the Page_Load event of an ASPX page fire which in the snip you ... stop...hence the True for the end response parm. ...
Improving Performance likely that these Page_Load methods access the database to populate the ..... Output page caching is an ASP.NET feature that increases the performance of ...
CodeProject: Stop Refresh after Submitting your Request. Free ... Mar 14, 2004 ... This is about stopping the refresh of a page after you have ... In the PAGE_LOAD event, you store the session token generated after a first ...




Search This Site:










dynamically setting a hyperlink

datagrid hyperlinkcolumn

how to separate business logic

java / dnn hybrid solution (long)

stumped

skinobject css question please help

turning off custom errors in .net 1.1 not working

how to find fully qualified type names to use with custom exception and handler classes

dnn 3.1.1 french pack available

textbox

dnn 3.0.9 bug: preview mode

number validation

server side notification

dynamically loaded user control inside custom server control weirdness

modifying styles drop down for freetexteditor

string help

new iewc toolbar htc?

handling login events

login controls dont allow login anymore

web services over ftp

use of opt in email & newsletter in dnn

using session_end to log out a client machine

ssl validation

trying to move buttons (next cancel etc) in wizard control

secure downloads in shared hosting

ole vs sql

windows hosting certification exam for it professionals now available!

looking for a third party file download/review module..

deployment

.net framework compatibility

 
All Times Are GMT