Questions tagged [viewusercontrol]

21 questions
0
votes
5 answers

How to add logic to a User View Control in MVC 3?

User View Control doesn't have a code-behind. So, where/how should I make the events of elements? I want to understand a logic of a control in MVC...
BrunoLM
  • 97,872
  • 84
  • 296
  • 452
0
votes
2 answers

WPF UserControl fill mainwindow

I am having trouble getting my UserControl to properly fill/resize with the parent window. I'm writing a WPF application using MVVM. I've searched for other answers, and I haven't been able to figure this out. MainWindow.xaml
0
votes
1 answer

Can you use MVC 2 Strongly Typed Helpers in Partial View?

I'm trying to use the new strongly typed helpers. I've inherited the Model in my Control: Inherits="System.Web.Mvc.ViewUserControl" but intellisense isn't exposing the model and the page isn't happy with it if I force the code in. If I do it in a…
0
votes
1 answer

MVC code in User Control giving error:

I am trying to show products fetched from database by creating a user control ProductBox and inside it setting the parameters to be shown from the Model. But the following block of code shows the unhandled exception : strUrl doesn't exist in the…
0
votes
1 answer

When I click to open a ViewPage or a ViewUserControl Visual Studio 2008 hangs for me

When I double click on a ViewPage or a ViewUserControl in Visual Studio 2008 the whole application hangs for me, I have no idea why... The only error log I can find in the Event Log is this: .NET Runtime version 2.0.50727.3053 - Fatal Execution…
Fredrik
  • 2,016
  • 3
  • 15
  • 26
-1
votes
1 answer

Can't declare a Strongly typed MVC3 View user control

I want tried creating a strongly-type view user control in MVC3 by following this thread. Using a value type in strongly typed MVC view user control so that I could make it reusable however, whenever I try to modify the existing view user control…
evablack
  • 117
  • 1
  • 2
  • 9
1
2