Click here to Skip to main content
14,740,174 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 4:43
professionaldeepankarbhatnagar23-Aug-16 4:43 
GeneralRe: I have thousands of user who are accessing my site, How should I handle a load ? Pin
Abhijit Mindcraft23-Aug-16 21:45
MemberAbhijit Mindcraft23-Aug-16 21:45 
GeneralRe: I have thousands of user who are accessing my site, How should I handle a load ? Pin
jkirkerx25-Aug-16 10:20
professionaljkirkerx25-Aug-16 10:20 
Questionadd data to more table relation in same time Pin
ahmed_sa20-Aug-16 13:05
Memberahmed_sa20-Aug-16 13:05 
AnswerRe: add data to more table relation in same time Pin
ahmed_sa21-Aug-16 6:11
Memberahmed_sa21-Aug-16 6:11 
Questionweb form message using master pages message and/or JavaScript message Pin
dcof18-Aug-16 13:07
Memberdcof18-Aug-16 13:07 
AnswerRe: web form message using master pages message and/or JavaScript message Pin
John C Rayan19-Aug-16 3:24
professionalJohn C Rayan19-Aug-16 3:24 
GeneralRe: web form message using master pages message and/or JavaScript message Pin
dcof19-Aug-16 10:30
Memberdcof19-Aug-16 10: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 23:16
professionalJohn C Rayan21-Aug-16 23:16 
Questionweb form using javacript Pin
dcof17-Aug-16 17:16
Memberdcof17-Aug-16 17:16 
AnswerRe: web form using javacript Pin
Peter Leow17-Aug-16 17:49
professionalPeter Leow17-Aug-16 17:49 
AnswerRe: web form using javacript Pin
F-ES Sitecore17-Aug-16 23:48
mveF-ES Sitecore17-Aug-16 23:48 
RantRe: web form using javacript Pin
Richard Deeming18-Aug-16 2:48
mveRichard Deeming18-Aug-16 2:48 
GeneralRe: web form using javacript Pin
Richard MacCutchan18-Aug-16 3:34
mveRichard MacCutchan18-Aug-16 3:34 
AnswerRe: web form using javacript Pin
Richard MacCutchan18-Aug-16 3:32
mveRichard MacCutchan18-Aug-16 3:32 
QuestionHow to create a Join, or place a datatable within a datatable for ReportViewer Pin
jkirkerx17-Aug-16 8:38
professionaljkirkerx17-Aug-16 8:38 
Questionhow to encrypt and decrypt the file through pkcs Pin
Member 1268779016-Aug-16 0:42
MemberMember 1268779016-Aug-16 0:42 
AnswerRe: how to encrypt and decrypt the file through pkcs Pin
Kornfeld Eliyahu Peter16-Aug-16 3:25
professionalKornfeld Eliyahu Peter16-Aug-16 3:25 
QuestionVS2012 cannot open MVC4 application - the system cannot find the file specified (exception from HRESULT 0x80070002) Pin
Usman ali15-Aug-16 20:37
MemberUsman ali15-Aug-16 20:37 
SuggestionRe: VS2012 cannot open MVC4 application - the system cannot find the file specified (exception from HRESULT 0x80070002) Pin
Richard MacCutchan15-Aug-16 22:28
mveRichard MacCutchan15-Aug-16 22:28 
GeneralRe: VS2012 cannot open MVC4 application - the system cannot find the file specified (exception from HRESULT 0x80070002) Pin
Usman ali15-Aug-16 22:57
MemberUsman ali15-Aug-16 22:57 
GeneralRe: VS2012 cannot open MVC4 application - the system cannot find the file specified (exception from HRESULT 0x80070002) Pin
Richard MacCutchan15-Aug-16 23:37
mveRichard MacCutchan15-Aug-16 23:37 
GeneralRe: VS2012 cannot open MVC4 application - the system cannot find the file specified (exception from HRESULT 0x80070002) Pin
Kornfeld Eliyahu Peter16-Aug-16 1:29
professionalKornfeld Eliyahu Peter16-Aug-16 1:29 
GeneralRe: VS2012 cannot open MVC4 application - the system cannot find the file specified (exception from HRESULT 0x80070002) Pin
Usman ali16-Aug-16 20:46
MemberUsman ali16-Aug-16 20:46 
SuggestionRe: VS2012 cannot open MVC4 application - the system cannot find the file specified (exception from HRESULT 0x80070002) Pin
Kornfeld Eliyahu Peter16-Aug-16 21:06
professionalKornfeld Eliyahu Peter16-Aug-16 21: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.