Click here to Skip to main content
15,892,809 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Wich dataaccess metod is faster - with datareader when the data is return from stored procedures or with LINQ Pin
elizas14-Jan-10 23:22
elizas14-Jan-10 23:22 
AnswerRe: Wich dataaccess metod is faster - with datareader when the data is return from stored procedures or with LINQ Pin
Ennis Ray Lynch, Jr.15-Jan-10 3:13
Ennis Ray Lynch, Jr.15-Jan-10 3:13 
GeneralRe: Wich dataaccess metod is faster - with datareader when the data is return from stored procedures or with LINQ Pin
Lyubomir Rumenov Velchev15-Jan-10 3:41
Lyubomir Rumenov Velchev15-Jan-10 3:41 
GeneralRe: Wich dataaccess metod is faster - with datareader when the data is return from stored procedures or with LINQ Pin
Ennis Ray Lynch, Jr.15-Jan-10 3:50
Ennis Ray Lynch, Jr.15-Jan-10 3:50 
GeneralRe: Wich dataaccess metod is faster - with datareader when the data is return from stored procedures or with LINQ Pin
Mycroft Holmes15-Jan-10 11:42
professionalMycroft Holmes15-Jan-10 11:42 
AnswerRe: Wich dataaccess metod is faster - with datareader when the data is return from stored procedures or with LINQ Pin
Not Active15-Jan-10 6:10
mentorNot Active15-Jan-10 6:10 
QuestionGenerate report and download without refreshing (post-back) the page Pin
Rafferty Uy14-Jan-10 20:47
Rafferty Uy14-Jan-10 20:47 
QuestionWhy do I get "Could not load type 'AdamItiel.GlobalApp'"? Pin
senglory14-Jan-10 20:27
senglory14-Jan-10 20:27 
Global.ASAX
<%@ Application Codebehind="Global.asax.vb" Inherits="AdamItiel.GlobalApp" Language="vb" %>



Global.ASAX.VB

<br />
Imports System.Web.SessionState<br />
<br />
Namespace AdamItiel<br />
    Public Class GlobalApp<br />
        Inherits System.Web.HttpApplication<br />
<br />
        Private Shared userFirstNameVal As String<br />
        Public Shared Property UserFirstName() As String<br />
            Get<br />
                Return userFirstNameVal<br />
            End Get<br />
            Set(ByVal value As String)<br />
                userFirstNameVal = value<br />
            End Set<br />
        End Property<br />
<br />
        Private Shared newPropertyValue As String<br />
        Public Shared Property UserLastname() As String<br />
            Get<br />
                Return newPropertyValue<br />
            End Get<br />
            Set(ByVal value As String)<br />
                newPropertyValue = value<br />
            End Set<br />
        End Property<br />
<br />
<br />
        Private Shared newPropertyValue2 As String<br />
        Public Shared Property ClientTypeDesc() As String<br />
            Get<br />
                Return newPropertyValue2<br />
            End Get<br />
            Set(ByVal value As String)<br />
                newPropertyValue2 = value<br />
            End Set<br />
        End Property<br />
<br />
        Private Shared newPropertyValue3 As String<br />
        Public Shared Property Coach() As String<br />
            Get<br />
                Return newPropertyValue3<br />
            End Get<br />
            Set(ByVal value As String)<br />
                newPropertyValue3 = value<br />
            End Set<br />
        End Property<br />
<br />
<br />
        Sub Application_Start(ByVal sender As Object, ByVal e As EventArgs)<br />
            ' Fires when the application is started<br />
        End Sub<br />
<br />
        Sub Session_Start(ByVal sender As Object, ByVal e As EventArgs)<br />
            ' Fires when the session is started<br />
        End Sub<br />
<br />
        Sub Application_BeginRequest(ByVal sender As Object, ByVal e As EventArgs)<br />
            ' Fires at the beginning of each request<br />
        End Sub<br />
<br />
        Sub Application_AuthenticateRequest(ByVal sender As Object, ByVal e As EventArgs)<br />
            ' Fires upon attempting to authenticate the use<br />
        End Sub<br />
<br />
        Sub Application_Error(ByVal sender As Object, ByVal e As EventArgs)<br />
            ' Fires when an error occurs<br />
        End Sub<br />
<br />
        Sub Session_End(ByVal sender As Object, ByVal e As EventArgs)<br />
            ' Fires when the session ends<br />
        End Sub<br />
<br />
        Sub Application_End(ByVal sender As Object, ByVal e As EventArgs)<br />
            ' Fires when the application ends<br />
        End Sub<br />
<br />
    End Class<br />
End Namespace<br />
<br />
<br />




Default.aspx
<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="Default.aspx.vb" Inherits="AdamItiel._Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    QQQQQQQQQQQQQQQQQ
    </div>
    </form>
</body>
</html>



Default.aspx.VB

Namespace AdamItiel<br />
<br />
Public Partial Class _Default<br />
    Inherits System.Web.UI.Page<br />
<br />
    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load<br />
<br />
    End Sub<br />
<br />
End Class<br />
<br />
End Namespace<br />
<br />





Why do I get "Could not load type 'AdamItiel.GlobalApp'"?
QuestionHow to know client IP Address ? Pin
Samarjeet Singh@india14-Jan-10 20:16
Samarjeet Singh@india14-Jan-10 20:16 
AnswerRe: How to know client IP Address ? Pin
thatraja14-Jan-10 20:36
professionalthatraja14-Jan-10 20:36 
GeneralRe: How to know client IP Address ? Pin
Samarjeet Singh@india14-Jan-10 23:14
Samarjeet Singh@india14-Jan-10 23:14 
GeneralRe: How to know client IP Address ? Pin
Manas Bhardwaj15-Jan-10 0:56
professionalManas Bhardwaj15-Jan-10 0:56 
GeneralRe: How to know client IP Address ? Pin
thatraja15-Jan-10 3:06
professionalthatraja15-Jan-10 3:06 
AnswerRe: How to know client IP Address ? Pin
April Fans17-Jan-10 16:32
April Fans17-Jan-10 16:32 
Questionasp:menu control works slow in ie7 Pin
sanjubaba14-Jan-10 18:22
sanjubaba14-Jan-10 18:22 
QuestionHow to create .Net application similar to a source safe(VSS) Pin
Pradyumna Sarode14-Jan-10 11:25
Pradyumna Sarode14-Jan-10 11:25 
AnswerRe: How to create .Net application similar to a source safe(VSS) Pin
leckey14-Jan-10 16:26
leckey14-Jan-10 16:26 
QuestionNewbie - 2 questions Pin
Mike65432114-Jan-10 8:12
Mike65432114-Jan-10 8:12 
AnswerRe: Newbie - 2 questions Pin
David Mujica14-Jan-10 8:48
David Mujica14-Jan-10 8:48 
GeneralRe: Newbie - 2 questions Pin
Mike65432114-Jan-10 8:59
Mike65432114-Jan-10 8:59 
AnswerRe: Newbie - 2 questions Pin
Not Active14-Jan-10 9:48
mentorNot Active14-Jan-10 9:48 
QuestionHow to get mac address of a client system in asp.net Pin
mithun narayanan14-Jan-10 7:23
mithun narayanan14-Jan-10 7:23 
AnswerI was wrong a long time ago Pin
Ennis Ray Lynch, Jr.14-Jan-10 7:55
Ennis Ray Lynch, Jr.14-Jan-10 7:55 
AnswerRe: How to get mac address of a client system in asp.net Pin
Abhishek Sur14-Jan-10 10:09
professionalAbhishek Sur14-Jan-10 10:09 
QuestionRe: How to get mac address of a client system in asp.net Pin
mithun narayanan17-Jan-10 16:43
mithun narayanan17-Jan-10 16:43 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.