Projekt-Anfragen: Tel: 07022/9319004 info@CodeDocu.de Software Entwicklung in C# WPF Asp.Net Core Vba Excel Word SQL-Server EF Linq, UWP Net
#

ASP.Net: Auszug im Debugger beim Aufruf einer ASP Webseite mit dem IIS

HttpContext.Request gibt die Werte des aktuellen Aufrufs einer Webseite wieder.
Dieser enthält Clientseitige Werte und Serverseitige Werte, die man beim Aufruf einer Webseite verwenden kann um die aktuelle Webseite während des Aufrufs anzupassen.

Abfrage der Werte unter HttpContext.Current.Request


HttpContext.Request-Eigenschaft
.NET Framework 4.6 and 4.5 Andere Versionen
Gets the HttpRequest object for the current HTTP request.

Hier ein Beispiel, welche Werte die HttpContextRequest beim Aufruf einer Webseite im Page_init event einer ASP.Net aufweist.
Die wesentlichen Werte sind gelb dargestellt.
Man sieht aber auch, dass man im .Header eine Vielzahl weiterer Informationen wie zum Beispiel die Parameter für AntiXsrfToken entnehmen kann

sub

Name

Wert

Typ

-

HttpContext.Current.Request

{System.Web.HttpRequest}

System.Web.HttpRequest

+

AcceptTypes

{Length=5}

String()


AnonymousID

Nothing

String


AppRelativeCurrentExecutionFilePath

"~/Default"

String


ApplicationPath

"/"

String

+

Browser

{System.Web.Mobile.MobileCapabilities}

System.Web.HttpBrowserCapabilities {System.Web.Mobile.MobileCapabilities}

+

ClientCertificate

{System.Web.HttpClientCertificate}

System.Web.HttpClientCertificate

+

ContentEncoding

{System.Text.UTF8Encoding}

System.Text.Encoding {System.Text.UTF8Encoding}


ContentLength

0

Integer


ContentType

""

String

+

Cookies

{System.Web.HttpCookieCollection}

System.Web.HttpCookieCollection


CurrentExecutionFilePath

"/Default"

String


CurrentExecutionFilePathExtension

""

String


FilePath

"/Default"

String

+

Files

{System.Web.HttpFileCollection}

System.Web.HttpFileCollection

+

Filter

{System.Web.HttpInputStreamFilterSource}

System.IO.Stream {System.Web.HttpInputStreamFilterSource}

+

Form

{}

System.Collections.Specialized.NameValueCollection {System.Web.HttpValueCollection}

+

HttpChannelBinding

{System.Web.HttpChannelBindingToken}

System.Security.Authentication.ExtendedProtection.ChannelBinding {System.Web.HttpChannelBindingToken}


HttpMethod

"GET"

String

+

InputStream

{System.Web.HttpInputStream}

System.IO.Stream {System.Web.HttpInputStream}


IsAuthenticated

False

Boolean


IsLocal

True

Boolean


IsSecureConnection

False

Boolean

+

LogonUserIdentity

{System.Security.Principal.WindowsIdentity}

System.Security.Principal.WindowsIdentity

+

Params

System.Collections.Specialized.NameValueCollection {System.Web.HttpValueCollection}


Path

"/Default"

String


PathInfo

""

String


PhysicalApplicationPath

"C:\_Daten\Desktop\Web\Programmierer\"

String


PhysicalPath

"C:\_Daten\Desktop\Web\Programmierer\Default"

String

+

QueryString

{a=9&l=0&t=.Net}

System.Collections.Specialized.NameValueCollection {System.Web.HttpValueCollection}


RawUrl

"/Default?a=9&l=0&t=.Net"

String


ReadEntityBodyMode

Classic {1}

System.Web.ReadEntityBodyMode

+

RequestContext

{System.Web.Routing.RequestContext}

System.Web.Routing.RequestContext


RequestType

"GET"

String

+

ServerVariables

System.Collections.Specialized.NameValueCollection {System.Web.HttpServerVarsCollection}

+

TimedOutToken

IsCancellationRequested = False

System.Threading.CancellationToken


TlsTokenBindingInfo

Nothing

System.Web.ITlsTokenBindingInfo


TotalBytes

0

Integer

+

Unvalidated

{System.Web.UnvalidatedRequestValues}

System.Web.UnvalidatedRequestValues

+

Url

{http://localhost:54379/Default?a=9&l=0&t=.Net}

System.Uri

+

UrlReferrer

Nothing

System.Uri


UserAgent

"Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.73 Safari/537.36"

String


UserHostAddress

"::1"

String


UserHostName

"::1"

String

+

UserLanguages

{Length=7}

String()

+

Freigegebene Member



+

Nicht öffentliche Member



-

HttpContext.Current

{System.Web.HttpContext}

System.Web.HttpContext


AllErrors

Nothing

System.Exception()


AllowAsyncDuringSyncStages

False

Boolean

+

Application

{System.Web.HttpApplicationState}

System.Web.HttpApplicationState

+

ApplicationInstance

{ASP._global_asax}

System.Web.HttpApplication {ASP._global_asax}


AsyncPreloadMode

None {0}

System.Web.Configuration.AsyncPreloadModeFlags

+

Cache

{System.Web.Caching.Cache}

System.Web.Caching.Cache

-

CurrentHandler

{ASP.default_aspx}

System.Web.IHttpHandler {ASP.default_aspx}


Adapter

Nothing

System.Web.UI.Adapters.ControlAdapter


AppRelativeTemplateSourceDirectory

"~/"

String


AppRelativeVirtualPath

"~/Default.aspx"

String

+

Application

{System.Web.HttpApplicationState}

System.Web.HttpApplicationState

+

ApplicationInstance

{ASP._global_asax}

ASP._global_asax


AspCompatMode

False

Boolean


AsyncMode

False

Boolean

+

AsyncTimeout

{00:00:45}

System.TimeSpan


AutoHandlers

0

Integer

+

AutoPostBackControl

Nothing

System.Web.UI.Control

+

BindingContainer

Nothing

System.Web.UI.Control


Buffer

True

Boolean

+

Cache

{System.Web.Caching.Cache}

System.Web.Caching.Cache


ChildControlsCreated

False

Boolean


ClientID

"__Page"

String


ClientIDMode

Inherit {0}

System.Web.UI.ClientIDMode


ClientIDSeparator

"_"c

Char


ClientQueryString

"a=9&l=0&t=.Net"

String

+

Clientscript

{System.Web.UI.ClientscriptManager}

System.Web.UI.ClientscriptManager


ClientTarget

""

String


CodePage

65001

Integer


ContentType

"text/html"

String

+

Context

{System.Web.HttpContext}

System.Web.HttpContext

+

Controls

{System.Web.UI.ControlCollection}

System.Web.UI.ControlCollection


Culture

"Deutsch (Deutschland)"

String

+

DataItemContainer

Nothing

System.Web.UI.Control

+

DataKeysContainer

Nothing

System.Web.UI.Control


DesignMode

False

Boolean


EnableEventValidation

True

Boolean


EnableTheming

True

Boolean


EnableViewState

True

Boolean


EnableViewStateMac

True

Boolean


ErrorPage

Nothing

String

+

Events

{System.ComponentModel.EventHandlerList}

System.ComponentModel.EventHandlerList

+

Form

{System.Web.UI.HtmlControls.HtmlForm}

System.Web.UI.HtmlControls.HtmlForm


HasChildViewState

False

Boolean

+

Header

{InnerText = {System.Web.HttpException (0x80004005): Innerer Inhalt von konnte nicht abgefragt werden, da der Inhalt nicht literal ist.



ID

"__Page"

String


IdSeparator (System.Web.UI.Control)

"$"c

Char


IdSeparator

"$"c

Char


IsAsync

False

Boolean


IsCallback

False

Boolean


IsChildControlStateCleared

False

Boolean


IsCrossPagePostBack

False

Boolean


IsPostBack

False

Boolean


IsPostBackEventControlRegistered

False

Boolean


IsReusable

False

Boolean


IsTrackingViewState

False

Boolean

+

IsValid

'DirectCast(HttpContext.Current.CurrentHandler, System.Web.UI.Page).IsValid' löste eine Ausnahme des Typs 'System.Web.HttpException' aus

Boolean {System.Web.HttpException}


IsViewStateEnabled

True

Boolean

+

Items

{System.Collections.Specialized.HybridDictionary}

System.Collections.IDictionary {System.Collections.Specialized.HybridDictionary}


LCID

1031

Integer


LoadViewStateByID

False

Boolean


MaintainScrollPositionOnPostBack

False

Boolean

+

Master

{ASP.site_master}

System.Web.UI.MasterPage {ASP.site_master}


MasterPageFile

"/Site.Master"

String


MaxPageStateFieldLength

-1

Integer


MetaDescription

""

String


MetaKeywords

Nothing

String

+

ModelBindingExecutionContext

{System.Web.ModelBinding.ModelBindingExecutionContext}

System.Web.ModelBinding.ModelBindingExecutionContext

+

ModelState

{System.Web.ModelBinding.ModelStateDictionary}

System.Web.ModelBinding.ModelStateDictionary

+

NamingContainer

Nothing

System.Web.UI.Control

+

Page

{ASP.default_aspx}

System.Web.UI.Page {ASP.default_aspx}


PageAdapter

Nothing

System.Web.UI.Adapters.PageAdapter

+

PageStatePersister

{System.Web.UI.HiddenFieldPageStatePersister}

System.Web.UI.PageStatePersister {System.Web.UI.HiddenFieldPageStatePersister}

+

Parent

Nothing

System.Web.UI.Control

+

PreviousPage

Nothing

System.Web.UI.Page

+

Profile

{System.Web.Profile.DefaultProfile}

System.Web.Profile.DefaultProfile

+

RenderingCompatibility

{4.5}

System.Version

+

Request

{System.Web.HttpRequest}

System.Web.HttpRequest

+

Response

{System.Web.HttpResponse}

System.Web.HttpResponse


ResponseEncoding

"Unicode (UTF-8)"

String

+

RouteData

{System.Web.Routing.RouteData}

System.Web.Routing.RouteData

+

Server

{System.Web.HttpServerUtility}

System.Web.HttpServerUtility

+

Session

{System.Web.SessionState.HttpSessionState}

System.Web.SessionState.HttpSessionState


Site

Nothing

System.ComponentModel.ISite


SkinID

""

String


SkipFormActionValidation

False

Boolean


SmartNavigation

False

Boolean


StyleSheetTheme

Nothing

String


SupportAutoEvents

True

Boolean

+

TemplateControl

{ASP.default_aspx}

System.Web.UI.TemplateControl {ASP.default_aspx}


TemplateSourceDirectory

"/"

String


Theme

Nothing

String


Title

"Default"

String

+

Trace

{System.Web.TraceContext}

System.Web.TraceContext


TraceEnabled

False

Boolean


TraceModeValue

SortByTime {0}

System.Web.TraceMode


TransactionMode

0

Integer


UICulture

"Deutsch (Deutschland)"

String


UniqueFilePathSuffix

"__ufps=228267"

String


UniqueID

"__Page"

String


UnobtrusiveValidationMode

WebForms {1}

System.Web.UI.UnobtrusiveValidationMode

+

User

{System.Security.Principal.GenericPrincipal}

System.Security.Principal.IPrincipal {System.Security.Principal.GenericPrincipal}


ValidateRequestMode

Enabled {2}

System.Web.UI.ValidateRequestMode

+

Validators

{System.Web.UI.ValidatorCollection}

System.Web.UI.ValidatorCollection

+

ViewState

{System.Web.UI.StateBag}

System.Web.UI.StateBag


ViewStateEncryptionMode

Auto {0}

System.Web.UI.ViewStateEncryptionMode


ViewStateIgnoresCase

False

Boolean


ViewStateMode

Inherit {0}

System.Web.UI.ViewStateMode


ViewStateUserKey

Nothing

String


Visible

True

Boolean


_IDArea

0

Long


_IDFolder

0

Long


_IDLanguage

0

Long


_Suche

""

String

+

ctlMessage

{Telerik.Web.UI.RadNotification}

Telerik.Web.UI.RadNotification

+

ctlTree

{Telerik.Web.UI.RadTreeView}

Telerik.Web.UI.RadTreeView

+

pnlMain

{System.Web.UI.WebControls.Panel}

System.Web.UI.WebControls.Panel

+

tdListe

{System.Web.UI.HtmlControls.HtmlTableCell}

System.Web.UI.HtmlControls.HtmlTableCell

+

tdTree

{System.Web.UI.HtmlControls.HtmlTableCell}

System.Web.UI.HtmlControls.HtmlTableCell

+

Freigegebene Member



+

Nicht öffentliche Member




CurrentNotification

ExecuteRequestHandler {128}

System.Web.RequestNotification

+

[Error]

Nothing

System.Exception

+

Handler

{ASP.default_aspx}

System.Web.IHttpHandler {ASP.default_aspx}


IsCustomErrorEnabled

False

Boolean


IsDebuggingEnabled

True

Boolean


IsPostNotification

False

Boolean


IsWebSocketRequest

False

Boolean


IsWebSocketRequestUpgrading

False

Boolean

+

Items

Count = 7

System.Collections.IDictionary {System.Collections.Hashtable}

+

PageInstrumentation

{System.Web.Instrumentation.PageInstrumentationService}

System.Web.Instrumentation.PageInstrumentationService


PreviousHandler

Nothing

System.Web.IHttpHandler

+

Profile

{System.Web.Profile.DefaultProfile}

System.Web.Profile.ProfileBase {System.Web.Profile.DefaultProfile}

+

Request

{System.Web.HttpRequest}

System.Web.HttpRequest

+

Response

{System.Web.HttpResponse}

System.Web.HttpResponse

+

Server

{System.Web.HttpServerUtility}

System.Web.HttpServerUtility

+

Session

{System.Web.SessionState.HttpSessionState}

System.Web.SessionState.HttpSessionState


SkipAuthorization

False

Boolean


ThreadAbortOnTimeout

True

Boolean


Timestamp

#12/7/2015 08:10:27 AM#

Date

+

Trace

{System.Web.TraceContext}

System.Web.TraceContext

+

User

{System.Security.Principal.GenericPrincipal}

System.Security.Principal.IPrincipal {System.Security.Principal.GenericPrincipal}


WebSocketNegotiatedProtocol

Nothing

String


WebSocketRequestedProtocols

Nothing

System.Collections.Generic.IList(Of String)

+

Freigegebene Member



+

Nicht öffentliche Member



Mobile
»
ASP.Net: Link Liste mit Tabellen Design
»
ASP.Net: Width in Laufzeit per Unit in Percent festlegten
»
ASP.Net: Wie kopiert man eine WebForm oder UserControl
»
Google: Translate API in ASP.Net Webseite einbinden
»
ASP.Net: Text als Symbol oder SymboIcon anzeigen
»
Telerik: Farbe Color eines SiteMap Link ändern
»
Asp.Net: Text zur Laufzeit ausgeben
»
Asp.Net: Fehlermeldung bei UserControls NullReferenceException
»
Asp.Net: Tabelle in runtime erstellen
»
Asp.Net: HTML Element in der Codebehind Seite verfügbar machen.

.

Jobs, Projekte, Angebote für Freiberufler, Selbstständig an Info@CodeDocu.de