Web Forms :: Detecting If The TLS Variant Of Https Is Supported On Browser?
Nov 1, 2010
Due to security restrictions, we must run our web site under the TLS variant of https (SSL is disabled on the server...only TLS is enabled on the server).
The problem we have is that some customers have TLS disabled in their Internet Explorer Tools/Internet Options/Advanced settings...and they get a "page cannot be displayed" error.
I need a way to tell those users to "go enable TLS on your browser" (like display a page for this saying this).
how I can determine if (with the server having only TLS...not SSL...enabled) if the browser can support the https?
View 5 Replies
Similar Messages:
May 7, 2015
How to check in code behind if the type of device that is accessing the page is mobile?I'm using Request.Browser.IsMobileDevice, but the detection don't work to some mobile devices.
View 1 Replies
Apr 26, 2010
detecting browser media player capability
View 1 Replies
Oct 29, 2010
I want to check if a mobile browser has javascript enabled before displaying a page to the user. The code I've found from my research is:
System.Web.HttpBrowserCapabilities browser = Request.Browser;
Response.Write(browser.EcmaScriptVersion.ToString());
So to ensure that javascript is enabled on a browser, you need to check wheather the returned valued is either equal to or bigger than 1. This works on normal browsers, but when I test it on my phone the returned value is always 0.0, no matter if my javascript is enabled or disabled. Is there a way to check if javascript is enabled on a mobile browser or will the browser handle the incapability on it's own?
View 3 Replies
May 4, 2010
Has anyone had issues with streaming CSV (or TXT) content to the browser over SSL/HTTPS.
There are no issues when running my code in Firefox - i've found a bunch of issues, all seem to be solved for people using PHP.
this.Response.ClearContent();
this.Response.ClearHeaders();
this.Response.Buffer = true;
...
this.Response.AddHeader("","") // headers
this.Response.Write("TXT STRING GOES HERE");
this.Response.Flush();
this.Response.End();
I've tried all different headers to remove the no-cache, pragma ...etc.
[code]....
View 7 Replies
Dec 16, 2010
I'm using httpwebrequest but I have a problem when I execute the codes. Like this..in title english = browser not supported. how can I skip this protection
this is a facebook protection.
View 2 Replies
Jul 30, 2010
I have situation where in c# code I am adding an onclick client event handler.
It should do:
Button1.Attributes.Add("onclick", "javascript:window.open('https://"+Request.ServerVariables["HTTP_POST"]+"/reports/?type=1&id=2");
in the end the URL looks like:
https://servername/reports/?type=1&id=2
in the reports folder of my site I have a default aspx page that handles those parameters.
When I click the button with this event, a new window opens but it says there is no page at that address. When I use the link like this
https://servername/reports/default.aspx?type=1&id=2
The page opens but it's blank.
When I run this code as non secure with HTTP, everything works just like it should. The report opens.
Is there any difference using those two different URLs with default.aspx and without it, because in development it behaves the same way, but under HTTPS one page doesn't exist and another is blank?! Is HTTPS the reason for that?
View 3 Replies
Jun 25, 2010
I have a shooping cart in version 9.0.1.3
I have several products with two variants for each.
I can add any quanity to the first variant and it is calculated into the cart correctly.
When I try to add a number besides one for the second variant it will only show one of the porduct in the cart.
I can change the quanity when it is in the cart. But I need it to work correctly.
View 3 Replies
Nov 2, 2010
I've got a view that defines a form as
<% using (Html.BeginForm( "Update", "CcisCase", FormMethod.Post, new { id = "ccisEditForm" } ))
with a submit button:
In the RegisterRoutes method (in the HttpApplication-derived class in global.asax.cs), I've got:
routes.IgnoreRoute( "{resource}.axd/{*pathInfo}" );
routes.MapRoute(
"CcisCase",
"CcisCase/{action}/{cmDatabaseId}/{caseId}",
new { Controller = "CcisCase", Action = "CcisCaseEdit", caseId = "" } );
The url generated by MVC ends with "/Update" but there are no parameters. What am I doing wrong?
Bob</textarea></p>
<input type='hidden' name='ID[10]' value='89483' />
<input type='hidden' name='URL[10]' value=[URL]/>
<input type='hidden' name='CAT[10]' value='MVC' />
<input type='hidden' name='BOARD[10]' value='microsoft' />
<input type='hidden' name='P_DATE[10]' value='Dec 06, 2009 07:31 PM' />
<input type='hidden' name='RANDOM[10]' value='KmdWg23CB' />
<input type='hidden' name='REPLIES[10]' value='2' />
<input type='hidden' name='USER[10]' value='aziz' />
<p><input class=subject type='text' size='90' name='SUBJECT[10]' value='MVC :: Url.Action vs Html.ActionLink' /><select name='INDEXED[10]'><option value='1' selected>UPDATE</option><option value='2'>DELETE</option></select>Dec 06, 2009 07:31 PM - Replies: 2 CAT: MVC<a target=_blank href=[URL]>View</a></p>
<p> <textarea rows=10 cols=100 name='POST[10]' onfocus='setSelRange(this, 0, 0)'/>Is there any advantage or disadvantage in using either one over the other?</textarea></p>
<input type='hidden' name='ID[11]' value='135924' />
<input type='hidden' name='URL[11]' value=[URL]/>
<input type='hidden' name='CAT[11]' value='MVC' />
<input type='hidden' name='BOARD[11]' value='microsoft' />
<input type='hidden' name='P_DATE[11]' value='Oct 12, 2010 09:02 PM' />
<input type='hidden' name='RANDOM[11]' value='E8p84FelS' />
<input type='hidden' name='REPLIES[11]' value='4' />
<input type='hidden' name='USER[11]' value='aziz' />
<p><input class=subject type='text' size='90' name='SUBJECT[11]' value='MVC :: MVC2: Change the default generated HTML when creating a strongly typed view' /><select name='INDEXED[11]'><option value='1' selected>UPDATE</option><option value='2'>DELETE</option></select>Oct 12, 2010 09:02 PM - Replies: 4 CAT: MVC<a target=_blank href=[URL]>View</a></p>
<p> <textarea rows=10 cols=100 name='POST[11]' onfocus='setSelRange(this, 0, 0)'/>
Is there any way to change the HTML that is generated by default when you create a strongly typed view in MVC2? I currently get a structure like this:
[Code]....
I want to change it to a structure like this:
<div>
<div><%: Html.ValidationMessageFor(model => model.user_login) %></div>
<div><%: Html.LabelFor(model => model.user_login) %></div>
<div><%: Html.TextBoxFor(model => model.user_login) %></div>
<div>The username the user will use to log into the application.</div>
</div>
<div></div>
View 3 Replies
Mar 29, 2011
I would like to enquire about a seemingly basic problem that i am struggeling with. I have been trying to add information to an access database and as i am inserting this information I get the error message stating that I tried to assign the Null value to a variable that is not a Variant type. I was thinking that it could have something to do with the primary key being set to automatic number but this also does not seem the problem.
View 2 Replies
Nov 12, 2010
As per the requirement of my client I would like to create an application which detects content changes on the websites we provide. Like we will have an admin section where we add the websites we want to keep a track of. And on the other side it tell us of any new content on those websites. The websites will be kind of general news website and won't have RSS feeds. I would like to know if there is any way to do something like this. Any ideas are welcome. I would like to know just the logic how to create such a thing.
View 5 Replies
Dec 6, 2010
I have a GridView. One of its columns contains monetary amounts. Underneath the GridView, I have a SqlDataSource which calculates the sum of this column and displays it in a label which is in a DIV called totalsbox (that I have added runat="server" to).
Obviously, if the GridView is empty, I don't want this label to be visible.
In the Page_Load, I have placed the following code:
[Code]....
[Code]....
This works fine. When the Page first loads, if the GridView is empty, the entire DIV is hidden; if not, the DIV is visible and the label displays the column SUM. imagine now the GridView DOES have rows, the DIV is visible and the total is displayed properly in the DIV ("£10.00", say).
I have a RowDeleted event handler in the code behind which contains exactly the same code as I put in the Page_Load. As I delete rows, one by one, the sum is recalculated and displayed properly. But, when I delete the final row, I would expect this code to hide the DIV as the GridView is now empty.
This doesn't happen, however, the DIV remains visible and I have, in the label, something like "£ ".
Why is it that the code works in the Page_Load but not in the RowDeleted event handler?
View 6 Replies
Jan 5, 2011
I am designing a webpage with some ASP ImageButtons. They work fine with jpegs but fail with tiffs. Is there any way round this?
Also, where can I find a list of image types supported by this control? I've searched many places but failed to find anything.
View 3 Replies
Dec 27, 2010
URI formats are not supported.
string fileName ="MailFiles/MailImage/rpLoginLogo.png";
string path = System.Web.HttpContext.Current.Request.Url.AbsoluteUri.Remove(System.Web.HttpContext.Current.Request.Url.AbsoluteUri.LastIndexOf('/') + 1) + fileName;
System.Net.Mail.LinkedResource imageResourceEs = new System.Net.Mail.LinkedResource(path, "image/gif");
not error in direct path of //string path = @"D:ProjectsRPPortalBLRPPortal" + fileName;
View 1 Replies
May 7, 2015
i am uploading a asp.net website but i am facing below error.Keyword not supported: 'metadata'. screenshot is here: URL...
here is my web config file
<?xml version="1.0"?>
<!--
As an alternative to hand editing this file you can use the web admin tool to configure settings for your application. Use the Website->Asp.Net Configuration option in Visual Studio. A full list of settings and comments can be found in machine.config.comments usually located in Windows Microsoft.NetFrameworkv2.xConfig
-->
<configuration>
[code]...
View 1 Replies
Jan 24, 2011
My LogIn action originally looked like this:
return new RedirectResult(nameValueCollection["ReturnUrl"]);
But, I would like to know whether the client has JavaScript enabled before the home page loads, so I changed it to this:
return View(new LogInViewModel { ReturnUrl = nameValueCollection["ReturnUrl"] });
And send the following view instead of the instant-redirect:
@model Obr.Web.Models.LogInViewModel
@{
Layout = null;
string noJSReturnUrl = Model.ReturnUrl + (Model.ReturnUrl.Contains("?") ? "&" : "?") + "noJS=true";
}
<!doctype html>
<html>
<head>
<title>Loggin in...</title>
<meta http-equiv="REFRESH" content="1;url=@noJSReturnUrl">
<script type="text/javascript">
window.location = "@Model.ReturnUrl";
</script>
</head>
<body>
<noscript>
Loggin in...<br />
<a href="@noJSReturnUrl">Click here if you are not redirected promptly.</a>
</noscript>
</body>
</html>
The idea is that if the user does not have JavaScript enabled, they see a brief loading message, and the home page loads after a second. If JavaScript is enabled, the page reloads instantly. In the future I could even post to the server the dimensions of the viewport and such. Does this look like it would work? If the window.location command takes longer than a second to run, will it be interrupted by the meta refresh, or does it block that refresh? I am hoping the latter, so I don't need to increase the delay for those non-js people.
I figure my new way adds a little extra weight to the payload of the redirect, but it's not an extra round-trip or anything, is it? The redirect happens anyway, does it not? Update: I neglected to mention a very important point. I do not actually have control over the login screen itself, only the page it posts to. This code is part of a product that relies on an external authentication mechanism.
View 2 Replies
Sep 17, 2010
So I'd like to redirect mobile users to a different page. But instead of trying to detect any number of mobile browsers, I'd just like to see if the user is using IE, Firefox, Safari, Chrome, or Opera; all other users go to the mobile site. My biggest problem is detecting regular Safari from mobile Safari.
View 1 Replies
Dec 19, 2010
i'm programming an application where an action is done if i access with a version equal or higher than other and another action if i access with a lower version; but the problem is that the lines to indicate the versions doesn´t work. The code is the following:
[Code]....
As you can see, an action should be done if the version is the 9.0 or higher and other if it is lower, but these lines doesn't work and only works the detection of the web browsers (no the versions of them, action that doesn't works).
View 2 Replies
Feb 23, 2011
I'm developing an extra section to a web app that's written in asp.net, but in php - it's mostly done (the two parts don't really communicate with each other outside of a database - the integration is mostly just cosmetic.)
The only issue I have is detecting from the php part when the .net session has expired so that it logs the user out and redirects to the login page.
I believe the asp.net application is compiled, but either way I'm not allowed to alter it so I was thinking maybe the best thing to do would be to make a very small/simple aspx page that outputs true or false which I could call using curl from php (and passing the browser's cookies along.)
Would this even be possible? I'm not sure how session security works on asp.net eg whether one .net application can read another's session variables, but if it's anything like php then it'll be possible.
mypage.php --curl--> checksession.aspx --|
| |
<----------- true / false <---------------
So mypage issues a GET (with cookies from browser) to checksession using curl, checksession simply returns a true or false (or something like that) and mypage redirects to the site's login page if that's false.
The authentication for the php side is already sorted out and is separate to this issue.
So really, what I need to know is can I have just a simple .aspx file that does this check, and if so where would I go to to find out how to program such a simple page?
View 3 Replies
Dec 14, 2012
I used javascript code to open popup window.Popup window "Maximize" button is inÂ
disable state.But in Chrome it is in enable state.I want to make browser maximize button disable.
Below is my javascript code
function Call_PopUp(event, URL) {
window.open(URL, 'CustomPopUp', 'width=990, height=540, menubar=no,scrollbars =yes, resizable=no, top=50,left=50,toolbar=no,dialog=yes,minimizable=yes,maximizable=no');
}
View 1 Replies
Jun 7, 2010
Is there a way to detect if the user closes the browser/popup page? I am trying to implement a chat functionality by when the user closes the browser/page, I will update the flag in the database from active to not active. But I cannot seem to find a better way to handle that besides from detecting if the user closes the page.
View 13 Replies
Jul 16, 2010
I'm working on an ASP.NET web application. There's a bill page which has two links to different pdfs of the same bill. When you click on one of the links it takes you to a ViewPDF.aspx page that shows the pdf. There's also an option to view both in a split screen so that you can compare them. When you click on this link it takes you to BillSplit.aspx which has a frameset and two frames that both point to ViewPDF.aspx. This all works perfectly.
The problem is that if an error occurs while pulling up the pdf. The application has an error page that has a few links back into the application. If you use one of these you can go back into the app and continue but now inside the frame. The URL still says BillSplit.aspx but the application is completely unaware of this since frames are HTML elements not asp.net controls.
What I would like to do at this point is detect that you've returned to the application and close the frame you aren't using. Essentially I'd like to redirect you away from BillSplit.aspx and to the page you're actually requesting. I'm pretty sure this would need to be done in Javascript either on the BillSplit page or on the pages that you go to later. So I guess what I'm asking is, is there a way to ensure that the BillSplit.aspx page and it's two frames point only at ViewPDF.aspx?
View 1 Replies
Feb 15, 2010
I have some geo targeting code whcih I want to behave in a particular way if the site is being spidered by a robot e.g. google etc.
Is there any way to infer this?
View 4 Replies
Feb 24, 2011
I recently started using fusioncharts (which is a great charting tool btw) but I releaized that although it renders Right to Left languages correctly, it does not display them from Right to Left, so if I have "Sales Report" in Arabic, it will be displayed "Report Sales" in the chart.
I dont have a problem with this with static text because I can reverse it before I send it to the chart, but with dynamic text that is entered by the user it is a challenge, because the user may enter the details in English or in Arabic, or in both.
So if I can define the character code used in the sentence then my problem will be solved, and the first thing that came to my mind in order to do this is:
- Take one letter from each word in the string and compare it with the Arabic alphabet (instr function).
- If the function returns true then the letter will be arabic and therefore the whole word will be arabic, I'll store this word in a new string
- If the next word is also Arabic I'll add it to the new string else I will skip it and start a new string for the next words to come.
- After I finish searching the string I will reverse the words in the new string and replace them with their parts in the old string then send them to the chart.
View 1 Replies
Mar 11, 2011
We are looking to create a website that displays information to all new visitors to a site, i.e. welcome,The big problem is that our website is not allowed to use long-lasting cookies (i.e. over 20 minutes). Does anybody know of any way we can determine whether a user has visited the site before or not. As another restriction, we can not add anyform of registration to the system. The application is being created in ASP.Net 3.5.
View 6 Replies