Avoid asp.net application run in particular browsers [closed] - c#

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about programming within the scope defined in the help center.
Closed 8 years ago.
Improve this question
I have a scenario I need to avoid my ASP.Net web application should not run in Firefox. If any one tries to open my application it will redirect to Chrome or Internet Explorer. I don't know how achieve this
situation.
Is it possible to handle this using JQuery or JavaScript ?

Simple answer: No
Longer answer...
Your question is fundamentally flawed - you simply cannot make a browser on a computer open a different browser on the same computer.
If you could to that, it would be a massive security flaw... and that is why you can't.
Although I don't like saying it - you could write an OCX (active X control) that would probably allow you to do it... but that would only work in Internet Explorer - and would require the user to install it.
But as you want to move from FireFox, this obviously doesn't answer your question.

No. It is not possible. You can't force a browser to open another application on the client machine (beside some browser plugins, like Adobe PDF).
Think what would happen if I could open your bank's application though javascript.

Everything is possible in technical sense. But if you try to do this way you may invite unnecessary issues from other browsers and loose focus on main objective.

Related

My computer lost power while working on a project, how can I recover my data? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 7 years ago.
Improve this question
I was working on a c# project on my computer when I accidentally removed the power cord.
When I started my computer back up I tried to load my project, but I got a error:
There is no editor available for 'c\user\documents\visualstudio 2013\projects\project_name\from1.cs
make sure the application for the file type(.cs) is installed
On the same project I have different forms and those still work, only from1 is not working. The data set only contains 0's.
What can I do to fix this?
Either something got corrupted in your Visual Studio installation, or (more likely) the file you were working on before your computer was shut down (which I assume was from1.cs).
Are you able to open from1.cs and from1.Designer.cs in something like Notepad? You may want to look for NULL terminators in your file as suggested by this answer on this (possibly duplicate) question.
If that doesn't work, either try copying the existing code from from1.cs and from1.Designer.cs into new files in your project, or repairing/reinstalling Visual Studio. Just make sure to make a backup of your project first, just in case! ;)

C# application in a web browser? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
Say I coded some application in C# using visual studio. Is there anyway I can take this application and embed it into a website so folks can use it from a website in the same way I would use it from my desktop?
If you coded a console application - no.
If you coded a winforms application - no.
If you coded a WPF application - yes
Two options:
Migrate it to silver light and it will only work on browsers which can install the silver light plug in. keep in mind that silver light is being disbanded by Microsoft, so it is not considered a recommended practice anymore even by MS. also consider that not everyone would agree to install silver light plugin for their browser.
You can also migrate your WPF to become a browser application - but this will require the client machine to have .Net installed on it - so this is like a replacement solution to what once was achieved by ActiveX technology.
Main difference between those two options is that the 1st one is cross-platform/cross-browser solution and the 2nd one is not.. however this might change in the future as .net is becoming available to Linux too..
If you coded ASP.Net - it is already designed for developing web applications.
I'm not sure what exactly you are trying to achieve but I think the WPF/Browser APP is what you looking for, you can read more about it in How to: Create a New WPF Browser Application Project
Edit:
I thought I'd mention if you have a Console or Winform app that people wish to use remotely (ie via a web browser) don't forget they can use Remote Desktop to access the application. Many large enterprises do this using Citrix. Often this is more practical when the cost of rewriting legacy applications is not feasible.

NON UI Headless browser for .net [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
I'm developing a web crawler in .Net C# that works like this.
Step1 Visits main page of the site (let's call this page Main.aspx)
Step2 Use httpwebrequest to get the form page (Let's call this page Form.aspx)
Step3 Post the form to another page and get the results. (Let's call this page Results.aspx)
It's pretty straight forward in terms of web crawling.
The current problem is, I can't access Form.aspx page if I dont set a bunch of cookies before. All of these cookies are javascript generated by Main.aspx.
Whenever i try to directly get the Form.aspx page, i get redirected to the Main page. The code that generates the cookies have more than 20kb and its aboslutelly messy and insane, also it uses a lot of "document." references which would block a simple attempt to use JINT or Javascript.net
So after a lot of research i found out that a headless browser would be what I'm looking for, tried a lot of them, but it seems a lot of complication. I already have a class library project with all my web crawlers in there, i just wanted another dll to make it work. Any suggestions?
I'm trying to be as clear as possible, if you have any doubt, please post on comments before giving negative votes...
Use a .NET binding for PhantomJS, which is a headless webkit browser. You might consider going to a full-blown automation framework like Selenium, which is made for testing.
What you are asking for in not simple, though. You are asking for a lot of abstractions so that you can keep the amount of simplicity in your app that you have now.
If you didn't mind a "head-ful" browser, you could also use the Windows Forms "WebBrowser" control or remote control Internet Explorer through COM.

How to Force a binary Application to use SOCKS Proxy from C# Tool? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I'm currently thinking about developing a sockscap-like tool with some cool new features and a nice WPF gui.
For those who don't remember:
SocksCap was a tool that allowed you use any application with the use of a SOCKS4/5 Proxy... So e.g. you could play games with another IP without using VNC and alike.
However I'm not much of a network guy, so I'd love some input on how to "socksify / proxify" from an external application within a windows environment. As this is supposed to be a project, not a "quick and dirty" thing I'm only into "clean and generic" approaches instead of "modify HOSTS entry" or "plugin for each application"...
So how would someone with knowledge about networking programming start his research about redirecting (routing?) an applications traffic via a proxy?
Thanks for any help :-)
Google always helps.
Under windows there is something similar to socksify:
FreeCap -- is a program for transparency redirect connections from programs through SOCKS server. In fact that some programs hasn't native SOCKS support (for example Internet Explorer), In this case FreeCap will be helpful, transparently redirect all connections requests through SOCKS server.
The internal implementation of this seems hijacked the socket call of the client applications.

Which browser performs better with Asp.Net development Server [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 4 years ago.
Improve this question
It is about the efficiency, which chrome being light weight, fine for general web browsing.
I am thinking to use it as default browser when working on Web Applications. There are some limitation though which I know like, Could not use chrome when worked over an Rss Feed generator module, as chrome was not supporting the generated output.
Which browser will make it a good combination with VS 2008, C#, Asp.Net dev Server for developing Asp.Net Web Applications.
(Not concerned about the User Interface, Layouts, presentation CSS or same. It is about checking business logic implementation or serve rside testing, when we check behaviour not presentation. It is when we have to kick debugger into action every other minute to see how application / module / class / statement, whatever is behaving like, but not how application looks )
Firefox + Firebug is truly a deadly combo.
As for the performance problems with ASP development server, try the following:
go to about:config (write it into the address bar)
change the value of the network.dns.disableIPv6 property to true
A web developer with only one browser is like a cook with only one knife. You could always try everything you do as a web application on many different browsers. Some things may not work or may not look like you expect.
I like to use Firefox and Firebug when debugging client-side javascript issues, and I sometimes use Firefox to ensure the app works in that browser too (we require FireFox and IE support) so on one level you will need multiple browsers to validate the web site works in all of them to reach a wider audience.
I like to use IE so I can use the in-built debugging capabilities (inside VS), which you don't get with the other browsers. I like to use Firefox for the client-side JS errors that I may encounter.
I've had issues with Firefox and the visual studio dev server.
It works fine, but it's slow for no apparent reason.
When I'm more concerned with server-side debugging, I tend to use IE simply because it loads the pages faster.
Once you're working on client-side testing/debugging though, you should definitely be working with a variety of browsers. I start with Firefox just because I love the Firebug addon more than I probably should!

Categories