Issue aspx bootstrap - c#

I have a little problem with my project. I'm working with aspx dot net and bootstrap to make it beauty, buuuuuut out of nowhere my page started to show only a white page. The curious thing is that I can interact with the objects in the page, like some textboxes and buttons, but still nothing appears on the screen.
I try making a new project and creating a new simple page (using bootstrap too) but the same thing happened.
I have another site, and run perfectly without bootstrap.
I've already downloaded it again and making a new reference...
The IIS process didn't show anything about this...
Do you know what can I do about this...?
Thank you for your help!

Related

C# windows form browser control .DocumentCompleted event on .aspx pages

Before I go down the rabbit hole which is over my head and I would like to avoid for now… Is there a simple way to see if an online .aspx webpage loaded in the web browser control? .html pages work fine using .DocumentCompleted for me but .aspx visually loads fine but never triggers the DocumentCompleted event. I saw some good articles that mention the need of creating separate 3 threads and etc… unlike in those articles I am not interacting with the web application (the user is) I just want to hide a few irrelevant DIV elements on the side off the page.
user9938 Thank you! Unfortunately, I cannot mark your comment as an answer so I will post it for others here.
webview2 worked amazingly. On aspx pages NavigationCompleted still did not work however I was able to achieve this with CoreWebView2_DOMContentLoaded

Asp.net works on mobile device

I asked to get clarify, I have an asp.net site it works great.
Site Contains many pages ,what I aim to do, is to make this page works on mobile device.
The Real problem it, my page contains many and many controls, So there is messy in the page .
First I want to know, how can I make page on asp.net works on mobile device?
Second ,Is it should to create a new one to get few of controls of the main page , because on the mobile page I need only few of the original .
Update:-
my site is responsive
But I have a specific page which have a lot of controls and it looks messy in appearing on mobile , So I need to create a new page similar to this page with fewer controls appears only when user use mobile not web browser.
Sorry for bad English, or being not organized.
Browser sniffing is not reliable. You should look to redesigning your site as RWD (Responsive Web Design). Use Nuget to bring in Twitter Bootstrap and start from there.
Here's an example using Web Forms (MVC would be similar):
http://www.mytecbits.com/microsoft/dot-net/bootstrap-3-0-0-with-asp-net-web-forms

After building and running asp.net website my page get refreshed automatically one time

I am new to asp.net
I have created a small web site in visual studio 2010 using asp.net and C#.
whenever i run the website it get refreshed one time automatically.
I have not used any meta tag refresh attribute.
why this happening, Please help.....
Sounds like a browser issue rather than a code one. Try checking your browser extensions and settings, something may be conflicting with the default.aspx page. Try pressing F12 as well and check the console. It will tell you if something is going wrong.

Webbrowser and IE acts differently?

I'm in a trouble trying to fix some problem.. I have a program with Webbrowser control inside it.
It automates crawling process from some website. The problem is that I cannot fix webbrowser after recent website changes.
They have changed page navigation on website. And when I do actions MANUALLY in webbrowser (in my app) it doesn't go to the next/previous page on website. It does nothing... Whereas it works properly in IE 7/8/9 (only scripting errors thrown this time).
So does it mean that Webbrowser is not fully similar to IE??
I'm sorry for not showing source codes here, I think it wouldn't help here. Which way should I go to troubleshoot it? Why page navigation is not working in Webbrowser control?
I tried to simply put Webbrowser on a Window Form in new project and tried to navigate page 2/3/../10 in the website catalog, but it simply changes page number and doesn't navigate to it...
EDIT: Website doesn't work propely even if I do actions manually in webbrowser using mouse clicks.. but works in IE.
EDIT2: I might be not clear in my question. The problem is that I cannot use website even Manually with mouseclicks via my Webbrowser control in app. It changes page number after I click on it, but it doesn't navigate to that page. It stays silent. I'm sure that AllowNavigation property is true. It worked just yesterday and stopped after website changes today... Please tell me which way should I go to troubleshoot it.. I thought that Webbrowser control acts the same way as Internet Explorer.. Any help from you highly appreciated! Thanks
EDIT3: Strange thing... i just loaded Extended Webbrowser and navigated to that website. Page navigation panel doesn't work there also.. Is it a bug on their side or some type of guard from crawlers? What do you think?
(http://www.codeproject.com/KB/cpp/ExtendedWebBrowser.aspx)
I'm sure this isn't the answer your want but using the webbrowser control to scrape websites is very painful to maintain.
Instead use the HttpWebRequest and HttpWebRepsonse objects to recreate the calls to the webserver.
You can use Fiddler (http://www.fiddler2.com/fiddler2) and your browser to record your web sessions and recreate them in code.
You can setup your webbrowser control to disable a number of features including navigation.
I.e. to disable nav in the C# WebBrowser control:
webBrowser1.AllowNavigation = false;
I'd double check that you're not doing anything like this.
I had the same issue with a certain web site that recently changed its format. It has to do with the version of IE used by the control.
Simply force the IE version used to the latest (in my case 9). Setting the appropriate registry item to 9999 for my application worked; see: Webbrowser control behaving different than IE

How to complete some task on click of a button and then navigate to a different page?

I am developing a winform app which is controlling a website. On click of a button in winform app i want to fill a form, click the submit button on the web page upon which a new page will open , on that page i have to click on a link.
How to achieve this. i have tried many things but did not got any proper solution
If you're looking for a web automation tool, use Watin. It allows you to automate via code the opening of a browser, the clicking of buttons, and the fillout of form fields. However, that is more of a testing library.
Honestly though, your choice of solution sounds odd. You're trying to get a client application to make requests through a web page, instead of directly requesting whatever resource yourself from the client application. It's hard to give you a direct solution without a good understanding of the problem space.

Categories