Click here to Skip to main content
15,885,914 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: I have thousands of user who are accessing my site, How should I handle a load ? Pin
deepankarbhatnagar23-Aug-16 3:43
professionaldeepankarbhatnagar23-Aug-16 3:43 
GeneralRe: I have thousands of user who are accessing my site, How should I handle a load ? Pin
Abhijit Mindcraft23-Aug-16 20:45
Abhijit Mindcraft23-Aug-16 20:45 
GeneralRe: I have thousands of user who are accessing my site, How should I handle a load ? Pin
jkirkerx25-Aug-16 9:20
professionaljkirkerx25-Aug-16 9:20 
Questionadd data to more table relation in same time Pin
ahmed_sa20-Aug-16 12:05
ahmed_sa20-Aug-16 12:05 
AnswerRe: add data to more table relation in same time Pin
ahmed_sa21-Aug-16 5:11
ahmed_sa21-Aug-16 5:11 
Questionweb form message using master pages message and/or JavaScript message Pin
dcof18-Aug-16 12:07
dcof18-Aug-16 12:07 
AnswerRe: web form message using master pages message and/or JavaScript message Pin
John C Rayan19-Aug-16 2:24
professionalJohn C Rayan19-Aug-16 2:24 
GeneralRe: web form message using master pages message and/or JavaScript message Pin
dcof19-Aug-16 9:30
dcof19-Aug-16 9:30 
Is there any way that a reference to the master page can be setup uniquely for a single web page? If so, how would you setup that code?

Here is the code I am thinking you wanted to see:
Imports System.Data
Imports System.Reflection
Imports System.Windows.Forms
Imports Telerik.Web.UI

Imports System.Web.Script.Services
Imports System.Web.Script.Serialization
Imports System.Web.Services

Partial Class attendanceletters_default
    Inherits System.Web.UI.Page

    Protected _master As MasterPage
    Protected _schoolyear As Integer

#Region "Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load"
    Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

        _master = CType(Page.Master, MasterPage)
        _master.PageTitle = "Attendance"

        Dim schoolDate As DateTime = Today()
        Dim schoolMonth As Integer = schoolDate.Month
        Dim schoolYear As Integer = schoolDate.Year

        If schoolMonth >= 8 And schoolMonth <= 12 Then
            _schoolyear = schoolDate.AddYears(1).Year
        ElseIf schoolMonth >= 1 And schoolMonth <= 7 Then
            _schoolyear = schoolDate.AddYears(0).Year
        End If

        If Request.UrlReferrer IsNot Nothing Then
            SiteUserManager.SessionUser.SiteUri = Request.UrlReferrer
        End If

        If Not Page.IsPostBack Then

            If (SiteUserManager.SessionUser IsNot Nothing) Then

                LoadSchools()            

                If ddlSchools.SelectedValue <> "" Then
                    LoadMilestones(ddlSchools.SelectedValue)
                    GetGrdiviewData()
                End If

            End If
        End If
        Response.Cache.SetExpires(DateTime.Now())
        Response.Cache.SetCacheability(HttpCacheability.NoCache)

    End Sub
#End Region

GeneralRe: web form message using master pages message and/or JavaScript message Pin
John C Rayan21-Aug-16 22:16
professionalJohn C Rayan21-Aug-16 22:16 
Questionweb form using javacript Pin
dcof17-Aug-16 16:16
dcof17-Aug-16 16:16 
AnswerRe: web form using javacript Pin
Peter Leow17-Aug-16 16:49
professionalPeter Leow17-Aug-16 16:49 
AnswerRe: web form using javacript Pin
F-ES Sitecore17-Aug-16 22:48
professionalF-ES Sitecore17-Aug-16 22:48 
RantRe: web form using javacript Pin
Richard Deeming18-Aug-16 1:48
mveRichard Deeming18-Aug-16 1:48 
GeneralRe: web form using javacript Pin
Richard MacCutchan18-Aug-16 2:34
mveRichard MacCutchan18-Aug-16 2:34 
AnswerRe: web form using javacript Pin
Richard MacCutchan18-Aug-16 2:32
mveRichard MacCutchan18-Aug-16 2:32 
QuestionHow to create a Join, or place a datatable within a datatable for ReportViewer Pin
jkirkerx17-Aug-16 7:38
professionaljkirkerx17-Aug-16 7:38 
Questionhow to encrypt and decrypt the file through pkcs Pin
Member 1268779015-Aug-16 23:42
Member 1268779015-Aug-16 23:42 
AnswerRe: how to encrypt and decrypt the file through pkcs Pin
Kornfeld Eliyahu Peter16-Aug-16 2:25
professionalKornfeld Eliyahu Peter16-Aug-16 2:25 
QuestionVS2012 cannot open MVC4 application - the system cannot find the file specified (exception from HRESULT 0x80070002) Pin
Usman ali15-Aug-16 19:37
Usman ali15-Aug-16 19:37 
SuggestionRe: VS2012 cannot open MVC4 application - the system cannot find the file specified (exception from HRESULT 0x80070002) Pin
Richard MacCutchan15-Aug-16 21:28
mveRichard MacCutchan15-Aug-16 21:28 
GeneralRe: VS2012 cannot open MVC4 application - the system cannot find the file specified (exception from HRESULT 0x80070002) Pin
Usman ali15-Aug-16 21:57
Usman ali15-Aug-16 21:57 
GeneralRe: VS2012 cannot open MVC4 application - the system cannot find the file specified (exception from HRESULT 0x80070002) Pin
Richard MacCutchan15-Aug-16 22:37
mveRichard MacCutchan15-Aug-16 22:37 
GeneralRe: VS2012 cannot open MVC4 application - the system cannot find the file specified (exception from HRESULT 0x80070002) Pin
Kornfeld Eliyahu Peter16-Aug-16 0:29
professionalKornfeld Eliyahu Peter16-Aug-16 0:29 
GeneralRe: VS2012 cannot open MVC4 application - the system cannot find the file specified (exception from HRESULT 0x80070002) Pin
Usman ali16-Aug-16 19:46
Usman ali16-Aug-16 19:46 
SuggestionRe: VS2012 cannot open MVC4 application - the system cannot find the file specified (exception from HRESULT 0x80070002) Pin
Kornfeld Eliyahu Peter16-Aug-16 20:06
professionalKornfeld Eliyahu Peter16-Aug-16 20:06 

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.