 |
 |
Apologies for the shouting but this is important.
When answering a question please:
- Read the question carefully
- Understand that English isn't everyone's first language so be lenient of bad spelling and grammar
- If a question is poorly phrased then either ask for clarification, ignore it, or mark it down. Insults are not welcome
- If the question is inappropriate then click the 'vote to remove message' button
Insults, slap-downs and sarcasm aren't welcome. Let's work to help developers, not make them feel stupid.
cheers,
Chris Maunder
The Code Project Co-founder
Microsoft C++ MVP
|
|
|
|
 |
For those new to message boards please try to follow a few simple rules when posting your question.- Choose the correct forum for your message. Posting a VB.NET question in the C++ forum will end in tears.
- Be specific! Don't ask "can someone send me the code to create an application that does 'X'. Pinpoint exactly what it is you need help with.
- Keep the subject line brief, but descriptive. eg "File Serialization problem"
- Keep the question as brief as possible. If you have to include code, include the smallest snippet of code you can.
- Be careful when including code that you haven't made a typo. Typing mistakes can become the focal point instead of the actual question you asked.
- Do not remove or empty a message if others have replied. Keep the thread intact and available for others to search and read. If your problem was answered then edit your message and add "[Solved]" to the subject line of the original post, and cast an approval vote to the one or several answers that really helped you.
- If you are posting source code with your question, place it inside <pre></pre> tags. We advise you also check the "Encode "<" (and other HTML) characters when pasting" checkbox before pasting anything inside the PRE block, and make sure "Use HTML in this post" check box is checked.
- Be courteous and DON'T SHOUT. Everyone here helps because they enjoy helping others, not because it's their job.
- Please do not post links to your question into an unrelated forum such as the lounge. It will be deleted. Likewise, do not post the same question in more than one forum.
- Do not be abusive, offensive, inappropriate or harass anyone on the boards. Doing so will get you kicked off and banned. Play nice.
- If you have a school or university assignment, assume that your teacher or lecturer is also reading these forums.
- No advertising or soliciting.
- We reserve the right to move your posts to a more appropriate forum or to delete anything deemed inappropriate or illegal.
cheers,
Chris Maunder
The Code Project Co-founder
Microsoft C++ MVP
|
|
|
|
 |
Good day friends!
I taught this would be possible but I spend over 2hrs trying to figure this out but to no avail.
This is what I want;
I have datalist control that displays payment details and everything is working fine except one. Which is
I want to display sum of all the payments made on a label control called Aggregate.
For example
Customer Name Amount Date
Paul $2000 20-09-2016
Catherine $5000 20-09-2016
Otes $3000 20-09-2016
Aggregate = Sum of all payments made
Any solution please...
Thanks in advance...
|
|
|
|
 |
This sounds very easy to do. Where are you stuck?
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
 |
Thanks for your reply. Am stuck at the summing. Help please
|
|
|
|
 |
Otekpo Emmanuel wrote: Help please I would love to but I have no idea what your problem is. It's like you went to the mechanic and said, "I can't drive my car." Do you think they could help?
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
 |
I have datatable and I want to create chart based on 3 values.
|
|
|
|
|
 |
I want to be like this...
https://imagebin.ca/v/2wMnsVdMBeG6
the above pic will show you the data and chart that I wanted. But I want the month without duplicated.
|
|
|
|
 |
So do you have an actual programming question?
|
|
|
|
 |
I have some other but I can't share it it's has secret data, But it similar to previse pic.
|
|
|
|
|
 |
Question
how I can do like the image in asp c#? I have duplicate month and name
https://imagebin.ca/v/2wMnsVdMBeG6
|
|
|
|
 |
26s1124 wrote: Question
how I can do like the image in asp c#? I have duplicate month and name
Answer: Since you haven't specified which charting control you require, then I'd suggest you to look at Hichart[^] to build dynamic and responsive charts. Head over to their official website, check out the demos and do three things: READ, APPLY and LEARN.
Don't expect someone from here to write the whole code for you. If you are asking for it, then this isn't the right place to ask. You may need to find a freelancer folk to do the work for you, and of course you have to pay them.
|
|
|
|
|
 |
please tell me what is sub domain ?
each sub domain contains a separate project ?
in what kind of scenario people go or sub domain ?
how sub domain is configured in IIS ?
tbhattacharjee
|
|
|
|
|
 |
You can host multiple websites/apps with single domain. Subdomains are mostly used by internal users for a particular business / customer.
For example , if you build a application for a customer www.business.com then you can create many flavours of the same application for testing , UAT , Staging before going to live like
uat.business.com
staging.business.com etc..
Hope this make sense.
|
|
|
|
 |
sub domain is possible when two application running in two different pc of different web site hosting company?
tbhattacharjee
|
|
|
|
 |
The exact same web application is deployed on our IIS 8.5 server and runs correctly.
Here is what is on my .aspx page ....
<video id="embed1" runat="server" width="1280" height="720" autoplay="autoplay" controls="controls" />
This is what is in my code behind ...
embed1.Attributes("src") = "Videos\" & sVideoName
embed1.Attributes("type") = "video/mp4"
I set the source and type of the HTML5 player in the code behind because the video name is passed as a query string parameter.
On the IIS 7.5 server, I have added the MIME type, ".mp4 video/mp4" and the Windows 2008 R2 server has the "Desktop Experience" feature installed.
What am I missing to get this to work on my IIS 7.5 server ?
BTW: I am using IE 11.
|
|
|
|
 |
If you request the video file directly within the browser, rather than loading your aspx page, do you get the video, or do you get an error?
If you get an error, then try opening the video file in a browser running on the server. IIS should give you a much more detailed error message for a local request.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
 |
I've made a new .aspx page with no code behind and discovered the following:
1) If I move the .MP4 file to the root of the website and reference it like this ...
<video id="embed1" runat="server" width="1280" height="720" autoplay="autoplay" controls="controls" >
<source src="QA.mp4" type="video/mp4" />
</video>
The video plays correctly.
However, if I mode the video to a subfolder on the website (/Videos) and reference it like this ...
<video id="embed1" runat="server" width="1280" height="720" autoplay="autoplay" controls="controls" >
<source src="Videos/QA.mp4" type="video/mp4" />
</video>
The video does not play.
It must be the syntax of the "src" attribute, but what is the correct syntax ?
|
|
|
|
 |
Try /Videos/QA.mp4. Assuming videos is at the root.
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
 |
Tried that.
The error message I get is: "Unsupported video type or invalid file path"
The weird thing is that if I reference the video from the root, everything works fine.
Ugh.
I'm considering deploying the website with the videos stored at the root and just move on.
|
|
|
|
 |
i am using asp.net MVC and identity to authenticate user. i saw after successfully authenticate Request.IsAuthenticated return false
this is sample login code which i debug and saw it is working fine.
[HttpPost]
[AllowAnonymous]
[ValidateAntiForgeryToken]
public async Task<ActionResult> Login(LoginViewModel model, string returnUrl)
{
if (!ModelState.IsValid)
{
return View(model);
}
var result = await SignInManager.PasswordSignInAsync(model.Email, model.Password, model.RememberMe, shouldLockout: false);
switch (result)
{
case SignInStatus.Success:
return RedirectToLocal(returnUrl);
case SignInStatus.LockedOut:
return View("Lockout");
case SignInStatus.RequiresVerification:
return RedirectToAction("SendCode", new { ReturnUrl = returnUrl, RememberMe = model.RememberMe });
case SignInStatus.Failure:
default:
ModelState.AddModelError("", "Invalid login attempt.");
return View(model);
}
}
after successfully login page redirect to home index action where i am showing user information in index view like below way but controls never come there because of Request.IsAuthenticated return false
<div class="row">
<div class="col-md-12">
@{
if (Request.IsAuthenticated)
{
var manager = new UserManager<ApplicationUser>(new UserStore<ApplicationUser>(new ApplicationDbContext()));
var currentUser = manager.FindById(User.Identity.GetUserId());
<p>@currentUser.UserName</p>
just do not understand what i am missing for which request authenticate method always returning false. please help me to fix it. thanks
tbhattacharjee
|
|
|
|
 |
In a vb.net 2010 web form application that I made some changes to, I have a question about the build (compile) options. In the application that I am working on, there are the build options of development, test, and production.
My question is determining the build options between test compile and production (release) compile.
This is due to the fact, I added a JavaScript alert message to the application when the user is entering some data incorrectly. Basically when I ran the test on my workstation using the default web server in visual studio, everything ran correctly. However when I moved the code to a test application server the web deploy did not work correctly. I found out the problem was due to the java script alert message that I commented out.
I know the problem is somehow related to not having the app not knowing where the javascript tag files were located at. All I did was add an empty line before the first line in the master page where tags are located at and the app works.
However when code is moved to production, I am concerned having the same problem on the production server.
Thus would you tell me and/or point me to references that will:
1. Show me the build options between test and production (release) mode? Also some references that will tell me how to setup the various build options?
2 Would you have any explanation of why the javascript alert message now works in test my just removing a blank line around. I tried a line where the javascript tag pointed directly to the root and not a relative position when the app was running. I then removed the line and the code is working.
|
|
|
|
 |
1. I never use the build options. I suggest leave them alone unless you need something specific.
2. I cannot see your code so no, I have no idea what the issue was other than you mention paths pointing to root so you probably do not have the same path structure on the production server.
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
 |
Hello i am a beginner of bootstrap with Asp.Net Core.
I play along with a simple sample: "Alert"
I have this (in a .cshtml file):
<bs-alert title="Test-Title">Test-Message</bs-alert>
And I have that(in a .cshtml file):
<div class="alert alert-warning alert-dismissible" role="alert">
<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>
Warning! Better check yourself, you're not looking too good.
</div>
It looks different!
When i use Visual Studio 2015 insert snippet (Bootstrap) then the things with the div button span ... are inserted.
For what are the "bs-xxx" tags? I googled an hour and did find nothing. Thanks in advance.
|
|
|
|
 |
bs-alert elements are compiled to html which is the
<div class="alert alert-warning alert-dismissible" role="alert">
<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>
Test-Message
</div>
the same as the code snippet inserted. You can run your web page using bs-alert and view page source, you will see that the bs-alert is replaced with ...
Snippets on the other hand will stay as is when you run your web page.
|
|
|
|
 |
Thanks for your answer, but something seems not to be right:
i have now the following in my .cshtml file:
<bs-alert class="alert alert-warning alert-dismissible" role="alert">
<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>
Warning! Better check yourself, you're not looking too good.
</bs-alert>
<div class="alert alert-warning alert-dismissible" role="alert">
<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>
Warning! Better check yourself, you're not looking too good.
</div>
Both look same but in the source code of ms-edge i still see the bs-alert tags!
|
|
|
|
|
 |
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" />
<asp:Label runat="server" ID="lblLoginMessage" CssClass="user_settings" />
<asp:Label runat="server" ID="lblLoginName" CssClass="user_settings" />
<asp:Label runat="server" ID="lblDatabase" CssClass="user_settings" />
</div>
<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>
</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" />
<asp:LinkButton runat="server" ID="lnkbtnClose" Text="close" />
</div>
</asp:Panel>
<asp:ContentPlaceHolder id="MPContent" runat="server" />
</div>
</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.
|
|
|
|