Debugging on MVC3 solution - asp.net-mvc-3

This is an MVC3 project, when I run the solution and investigate the process flows thru firebug, there is a list of repeative url (pls see the red box).
I am confused, what does the repetative lines mean? At first, I suspect that the same controller + action being called many times, but after debugging, seems that the controller only being called once.
Any idea?

This is a firebug thing. It most likely means you have multiple inline css stiles and it lists them so you can navigate straight to them by clicking in the menu.

Related

Form1.vb [Design] is empty

so I have this project that I use for work, and I went in to add some features.
It's basically a customized calculator.
While I was working, I clicked on my Form1.vb [Design] to look at my form. (Which is my main form)
I got a Windows Forms Designer error page. It had a problem with a particular line of code, even though the app ran and functioned correctly. I've come across this before a few times. I always clicked "Ignore and continue" and it was fine. This time my main form (Form1) was completely blank as if it was a new form. all of the code for my buttons/text boxes, etc... is still there.
is there a way to get it back? is it just hidden somewhere?
If anyone knows what's going on, I would really appreciate any help you could offer.
I attached a screenshot of my last working version of the app. Before the additions I was trying to implement.
I'm not super knowledgeable with coding, but I get by with some intermediate projects.
So I apologize if I don't know a lot of the terminology.
Thank you.

what function is being called?

i am not sure that this is the right place to ask this question, but i will anyway. i have only been working with html / javascript & jquery for about 2 months, but i have learned a little.
this is what i am trying to do. i have a free image gallery that i managed to included in a website i am trying to make. the gallery works fine, and i have set it up so that on top of each image is a button that fires a short .mp4.
it works fine, but when i click the gallery button to show the next page of pictures (about 15 per page), there are my old buttons. i think, just maybe if i could figure out what js or jq function id being called i may be able to swap in new buttons.
but i cannot understand what is happening. i looked for an onclick, but what they use is a bunch of "this" statements. i am pretty sure they are using an anchor tag to flip the page, but i can't figure out what is being called.
so i came across this site, and after about 10 attempts, finally got the thing to let me join.
i'm hoping i can post the code and maybe somebody could tell me what is happening.
i guess this wasn't much of a question, just an appeal for assistance.
Are you asking how you can debug your code? If you are using Chrome, you can use its Javascript debugger. Similarly, Firebug is a good developer plugin for Firefox.

back button function for phonegap windows phone 7

How do I get the back button from Windows phone to work with PhoneGap 1.2?
Now what the back button does is exit the app.
There is a good post I dont understand or get to work by one of the SO editors: http://www.scottlogic.co.uk/blog/colin/2011/11/handling-the-back-stack-in-windows-phone-7-phonegap-applications/
but I dont understand it and I cant get it to work. (even the sample .sln has an error for me)
My app is a very simple structure of index.html and many html does that come off that one page, so if all the back button did was goto index.html, that would probably work for me.
Is there a solution for idiots? For example - add this framework but only to specific pages. Put this code here, and that code there, and those pages dont need anything. Something like that?
I have recently published a more simple example for back-button handling in applications that contains simple HTML pages:
http://www.scottlogic.co.uk/blog/colin/2011/12/a-simple-multi-page-windows-phone-7-phonegap-example/
In essence, there is some C# code that keeps track of when the browser navigates from one page to another, handling the back-button event in an appropriate fashion. Just drop your code into the www directory and it should work fine.

Expanded/collapsed state not saved after closing file

In Visual Studio, you can expand and collapse code without using regions, for example in a code-behind page you can collapse methods, etc... And in an ASPX page you can collapse tags, tags, etc...
It's useful when you have a long page and you want to focus your development on a specific part. What's cool about it too is that you can close the file and reopen it and the state of the expanded/collapsed blocks is saved exactly as you left it.
Except in one instance. That state is not saved for tags in ASPX pages, where it would be most useful.
I know there are some good plugins out there for VS but I couldn't find one that addresses this issue.
Has anybody got a solution?
Before you mention custom controls, they are not always convenient or feasible when trying to keep a page short and I don't consider this a solution to this problem.
Looks like this issue will stay unresolved at this time.
I opened a bug report on Microsoft Connect, if this issue is important to you please vote it up!
https://connect.microsoft.com/VisualStudio/feedback/details/613221/expanded-collapsed-state-not-saved-after-closing-file

stop redirect? watch code in Visual Studio?

I am using Visual Studio to compile and run my ASP.NET website. Now, one of the pages have searchbox acting very odd, because it's redirecting to typical "FileNotFound" page which we're using to redirect when there is a typo in URL or something (and definitely not for searches).
The search is a separate .ascx control, so it's exactly the same for all pages.
So is there a way I can see what's happening behind the scenes to trigger that redirect? It is not firing the click event of the search button either, something is taking place even before the click??!
Is there a way I can watch the code run in Visual Studio without placing a breakpoint, because I do not know where to place it!
I would use Fiddler or Firebug to watch the requests and responses. That might help diagnose where the redirect is happening.

Resources