Click here to Skip to main content
14,644,810 members
Home » Discussions » ASP.NET
   

ASP.NET

 
AnswerRe: ASP.Net MVC: Request.IsAuthenticated getting false after successfully login Pin
Ram Kumar Kangeyan11-Dec-18 17:07
professionalRam Kumar Kangeyan11-Dec-18 17:07 
Questionweb form build options with javascript message Pin
dcof18-Sep-16 4:24
Memberdcof18-Sep-16 4:24 
AnswerRe: web form build options with javascript message Pin
ZurdoDev19-Sep-16 1:18
mveZurdoDev19-Sep-16 1:18 
QuestionVS2015: Difference between Bootstrap Snippets and Bootstrap Tags Pin
Harakiri198117-Sep-16 7:24
MemberHarakiri198117-Sep-16 7:24 
AnswerRe: VS2015: Difference between Bootstrap Snippets and Bootstrap Tags Pin
Keviniano Gayo19-Sep-16 1:30
MemberKeviniano Gayo19-Sep-16 1:30 
GeneralRe: VS2015: Difference between Bootstrap Snippets and Bootstrap Tags Pin
Harakiri198119-Sep-16 5:20
MemberHarakiri198119-Sep-16 5:20 
GeneralRe: VS2015: Difference between Bootstrap Snippets and Bootstrap Tags Pin
Keviniano Gayo19-Sep-16 6:15
MemberKeviniano Gayo19-Sep-16 6:15 
Questionweb form master page not displaying message Pin
dcof16-Sep-16 15:28
Memberdcof16-Sep-16 15:28 
In a vb.net 2010 web form application, I have the following code that works in a development environment.
If (gvAttendanceLetters.Rows.Count() > 0 And gvAttendanceLetters.DataKeys(0).Values(3) = "999") Then
               Dim _dt As DataTable = New DataTable()
               Dim Schyear As String = "  "
               For k = 0 To gvAttendanceLetters.Rows.Count() - 1
                   _dt.Clear()
                   _cbBuildLetter2.Checked = False
                   _cbBuildLetter2 = gvAttendanceLetters.Rows(k).FindControl("cbBuildLetter")
                   _dt = GetAttorneyCAIPDupSchoolYear(gvAttendanceLetters.DataKeys(k).Values(2))
                   For j = 0 To _dt.Rows.Count() - 1
                       If _dt.Rows.Count() > 0 And _dt.Columns.Count > 2 Then
                           If _dt.Rows(j)(_dt.Columns(2).ColumnName()).ToString() > "1" And _cbBuildLetter2.Checked = True Then
                               _master.Visible = True
                               _master.ErrorMessage = "You have selected student(s) having more than one CAIP Infinite Campus Entry for the current school year. Please consolidate all CAIP information for each student into one entry for the current school year."
                               Exit Sub

                           End If
                       End If
                   Next
               Next
           End If

Once the code is deployed to a test app server, the code listed above does not work. Thus I am wondering if you can tell me what I can do to get the message to display in a production enviroment?

The following is additional code that is used for the master pages that you may want to look at.

<%@ Master Language="VB" CodeFile="MasterPage.master.vb" Inherits="MasterPage" %>
<!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">
    <link rel="stylesheet" type="text/css" href="~/styles/site.css" />
    <link rel="stylesheet" type="text/css" href="~/styles/jquery-ui-1.7.2.custom.css" />    
    <title></title>
    <asp:ContentPlaceHolder id="MPHead" runat="server">
    </asp:ContentPlaceHolder>
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="manScript" runat="server" />
<div id="container">
    <div id="header">        
        <asp:HyperLink runat="server" ID="lnkHome" NavigateUrl="~/" EnableViewState="false">
            <asp:Image  ID="imgLogo" runat="server" BorderWidth="0px" ImageAlign="Left" EnableViewState="false" ImageUrl="~/images/aPlusBlrdClear.gif"  />
        </asp:HyperLink>             
        <div id="headertitle">                
            <h1><asp:Label runat="server" ID="lblHeaderTitle" /></h1>
            <asp:SiteMapPath runat="server" ID="SiteMapPath1" SiteMapProvider="SQLSiteMapProvider"
                PathDirection="RootToCurrent"
                PathSeparator=" > "
                />
        </div>          
        <div id="loginout">
            <asp:ImageButton runat="server" ID="imgbtnLoginLogout" ImageAlign="AbsBottom" ImageUrl="~/images/ico-login.gif" EnableViewState="true"  />
            <asp:LinkButton runat="server" ID="hypLoginLogout" Text="Login" />
            <br />
            <asp:Label runat="server" ID="lblLoginMessage" CssClass="user_settings" />
            <br />
            <asp:Label runat="server" ID="lblLoginName" CssClass="user_settings" />
            <br />
            <asp:Label runat="server" ID="lblDatabase" CssClass="user_settings" />
        </div>                
        <br class="clear" />        
        <hr />
        <div id="menu" class="menu" >
            <asp:Menu ID="Sitemap" runat="server" DataSourceID="DataSourceSiteMap"
                ItemWrap="true"
                StaticEnableDefaultPopOutImage="false"
                StaticMenuStyle-Width="170px" 
                DynamicMenuStyle-Width="250px"  
                Orientation="Horizontal"  
                StaticMenuItemStyle-CssClass="staticmenuitems ui-corner-all "
                DynamicMenuItemStyle-CssClass="dynamicmenuitems  ui-corner-all "
                DynamicMenuStyle-CssClass="dynamicmenu"
                SkipLinkText=""
                />               
            <asp:SiteMapDataSource ID="DataSourceSiteMap" SiteMapProvider="SQLSiteMapProvider" runat="server"
                ShowStartingNode="false"
             />
        </div>        
        <br  class="clear" />        
    </div>
       <div id="content">   
        <asp:Panel runat="server" ID="pnlMessage" Enabled="false" Visible="false" >
            <div class="ui-widget ui-widget-content ui-corner-all" style="width: 600px; padding: 0.4em; margin-left: auto; margin-right: auto; border: 1px solid #003366;" >
	            <asp:Label runat="server" id="lblMessageBackGround" CssClass="ui-header ui-widget-header ui-corner-all">
                    <asp:Label runat="server" ID="lblMessageHeader" EnableViewState="false" />
	            </asp:Label><asp:Label runat="server" ID="lblMessage" EnableViewState="false" />
	            <br />
	            <br />
                <asp:LinkButton runat="server" ID="lnkbtnClose" Text="close" />
                <br />
            </div>
        </asp:Panel>
        <br />  
                <asp:ContentPlaceHolder id="MPContent" runat="server" />
        <br class="clear" />
    </div>
    <br class="clear" />
</div>
    </form>
</body>
---
#Region "Public Property ErrorMessage() As String"
    Public Property ErrorMessage() As String
        Get
            Return lblMessage.Text
        End Get
        Set(ByVal value As String)
            If (String.IsNullOrEmpty(value)) Then

                pnlMessage.Enabled = False
                pnlMessage.Visible = False

            Else

                pnlMessage.Enabled = True
                pnlMessage.Visible = True
                lblMessage.Text = value
                lblMessageHeader.Text = "Error"
                lblMessageBackGround.CssClass = "ui-widget ui-header ui-widget-header ui-state-error ui-corner-all"

            End If
        End Set
    End Property
#End Region
</html>

QuestionregEx expression help Pin
313help9-Sep-16 9:54
Member313help9-Sep-16 9:54 
AnswerRe: regEx expression help Pin
ZurdoDev9-Sep-16 10:19
mveZurdoDev9-Sep-16 10:19 
AnswerRe: regEx expression help Pin
Nathan Minier10-Sep-16 2:51
professionalNathan Minier10-Sep-16 2:51 
SuggestionRe: regEx expression help Pin
Richard Deeming12-Sep-16 2:36
mveRichard Deeming12-Sep-16 2:36 
QuestionRun Query based on to other query result in asp Pin
26s11247-Sep-16 4:19
Member26s11247-Sep-16 4:19 
QuestionRe: Run Query based on to other query result in asp Pin
ZurdoDev7-Sep-16 5:53
mveZurdoDev7-Sep-16 5:53 
AnswerRe: Run Query based on to other query result in asp Pin
David Mujica7-Sep-16 8:16
MemberDavid Mujica7-Sep-16 8:16 
GeneralRe: Run Query based on to other query result in asp Pin
26s11247-Sep-16 8:31
Member26s11247-Sep-16 8:31 
QuestionThoughts on a Web CMS Pin
Foothill6-Sep-16 5:15
professionalFoothill6-Sep-16 5:15 
AnswerRe: Thoughts on a Web CMS Pin
F-ES Sitecore6-Sep-16 5:20
mveF-ES Sitecore6-Sep-16 5:20 
GeneralRe: Thoughts on a Web CMS Pin
Foothill6-Sep-16 5:34
professionalFoothill6-Sep-16 5:34 
GeneralRe: Thoughts on a Web CMS Pin
F-ES Sitecore6-Sep-16 5:54
mveF-ES Sitecore6-Sep-16 5:54 
GeneralRe: Thoughts on a Web CMS Pin
Foothill6-Sep-16 6:01
professionalFoothill6-Sep-16 6:01 
AnswerRe: Thoughts on a Web CMS Pin
David Mujica6-Sep-16 8:26
MemberDavid Mujica6-Sep-16 8:26 
GeneralRe: Thoughts on a Web CMS Pin
Foothill6-Sep-16 9:30
professionalFoothill6-Sep-16 9:30 
Questionthe Labelling of a polygon in asp.net Pin
planet065-Sep-16 21:55
Memberplanet065-Sep-16 21:55 
QuestionRe: the Labelling of a polygon in asp.net Pin
ZurdoDev6-Sep-16 4:15
mveZurdoDev6-Sep-16 4:15 

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.