|
|
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>
|
|
|
|
|
Hello All,
I am running into trouble when trying to record user inputs. The regEx expression I currently have:
(0?[1-9]|1[0-2]) 00|01|02|03|04|05|06|07|08|09|10|11|12|13|14|15|16|17|18|19|20|21|22|23|24|25|26|27|28|29|30|31|32|33|34|35|36|37|38|39|40|41|42|43|44|45|46|47|48|49|50|51|52|53|54|55|56|57|58|59))\s([paPA][mM])
Only allows users to enter time in the format HH:MM PM (or AM), I need a regEx expression that will let my users enter time in this way: HH:MM PM as well as this way: HH:MMPM
I know removing the \s will allow users to enter time in this format: HH:MMPM
But is there anyway I can let my users enter time in both formats?
Thanks in advance,
All suggestions are welcome.
|
|
|
|
|
I suggest just using a time control (search for one).
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
Yeah, just make the whitespace character an optional (zero or one) element.
...|55|56|57|58|59))\s?([paPA][mM])
"There are three kinds of lies: lies, damned lies and statistics."
- Benjamin Disraeli
|
|
|
|
|
313help wrote: 00|01|02|03|04|05|06|07|08|09|10|11|12|13|14|15|16|17|18|19|20|21|22|23|24|25|26|27|28|29|30|31|32|33|34|35|36|37|38|39|40|41|42|43|44|45|46|47|48|49|50|51|52|53|54|55|56|57|58|59
You can replace that list of minutes with: [0-5][0-9]
(0?[1-9]|1[0-2]):([0-5][0-9])\s?([apAP][mM])
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
I Am doing project for well integrity team and I want to write query that depend to the first query result.
To know that the result of first query is a list of string.
|
|
|
|
|
The answer is simple. You just do it. But we can't help you beyond that. You need to write code to do it. Where are you stuck?
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
This may not be the best approach for many reasons, but what if you write the results of the first query to a temporary DB table, then your second query can reference those results.
|
|
|
|
|
i'm try to save the result in list then used in second query. But how to used in the query?(i have list)
|
|
|
|
|
My organization is choosing a Web CMS to rebuild our public-facing web site and I would like to beseech the community for their thoughts on potential web content management systems. The only two requirements is that it must be ASP.Net and use SQL Server. My additional requirement is the ability to interface with a NoSql document database (like MongoDb) for the storage of searchable text documents. I've looked at Umbraco and Orchard Project but, having never used a WCMS myself, I don't know what systems are available, what to look for, or what to use as a yardstick in product comparison.
Thoughts?
if (Object.DividedByZero == true) { Universe.Implode(); }
Meus ratio ex fortis machina. Simplicitatis de formae ac munus. -Foothill, 2016
|
|
|
|
|
The most important factor is the thing you haven't mentioned...what is your budget?
|
|
|
|
|
That one hasn't been decided yet. We're preparing an Request for Proposal document and I want to gently nudge the decision makers down the path that will work best for those of us that have to maintain the thing once it is built. I think it is prudent to get as many arguments in our favor as possible before anybody gets their heart set on something that looks pretty in a demo but is in reality a pain in the arse to maintain.
if (Object.DividedByZero == true) { Universe.Implode(); }
Meus ratio ex fortis machina. Simplicitatis de formae ac munus. -Foothill, 2016
|
|
|
|
|
If that's your aim then I'd recommend Sitecore[^]. You need to be realistic though, it is a very particular type of company that when faced with a choice between a 5 to 6 figure product and one that's free goes for the more expensive option because it does the better job. Chances are you're to end up with Umbraco 
|
|
|
|
|
And that is why am here asking about experiences and opinions for products that I have never seen in action and could not possibly describe. I am not going to try and sell a car by only reading the brochure.
if (Object.DividedByZero == true) { Universe.Implode(); }
Meus ratio ex fortis machina. Simplicitatis de formae ac munus. -Foothill, 2016
|
|
|
|
|
|
Thanks, I will look into this one. Their list of clients looks promising. Just wish they had a lot more technical info on their website.
if (Object.DividedByZero == true) { Universe.Implode(); }
Meus ratio ex fortis machina. Simplicitatis de formae ac munus. -Foothill, 2016
|
|
|
|
|
Hi my friends. I want to display the label of a polygon in asp.net using google map. Could you help me?
|
|
|
|
|
Where are you stuck?
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
hi, I want to get a javascript code sample about it. For example.
var polygon1 = new google.maps.Polygon({
paths: polygon,
strokeColor: '#8b7d6b',
strokeOpacity: 0.4,
strokeWeight: 1,
fillColor: '#8b7d6b',
fillOpacity: 0.02,
label: "PolygonLabel",
fontWeight: "bold",
fontColor: "white"
});
Then I want to display "PolygonLabel" text inside the Polygon.
|
|
|
|
|
planet06 wrote: Then I want to display "PolygonLabel" text inside the Polygon. Isn't that what
label: "PolygonLabel", does?
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
hi, you can see it. In this sample "Red" (Polygon's name) is displayed.
"http://stackoverflow.com/questions/32864627/google-maps-api-polygon-labels".
|
|
|
|
|
OK. So what does
label: "PolygonLabel", do?
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
PolygonLabel is the name of Polygon.
|
|
|
|
|