|
sub domain is possible when two application running in two different pc of different web site hosting company?
tbhattacharjee
|
|
|
|
|
Have a look at following links, see if they help you:
http://stackoverflow.com/questions/4333380/how-to-create-subdomain-in-iis6
|
|
|
|
|
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.
|
|
|
|
|
Try
MIME type, ".mp4 video/mpeg"
|
|
|
|
|
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>
<p>@currentUser.BirthDate</p>
}
else
{
<p>not authenticated</p>
}
}
</div>
</div>
just do not understand what i am missing for which request authenticate method always returning false. please help me to fix it. thanks
tbhattacharjee
|
|
|
|
|
I too have the same issue, can anyone provide more details on this issue?
Thanks,
Ramkumar K
|
|
|
|
|
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" />
<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)
|
|
|
|