Skip to main content

All Questions

Tagged with
1 vote
2 answers
67 views

InvalidOperationException: The view 'AddValue' was not found. Partial View not found when submitting form data

I'm trying to insert data into two table from a single View Page. I've used two different view model to do that. So I have to make a partial view for inserting data in second table. Now full page is ...
Abdullah Al Mahmud Khan's user avatar
0 votes
1 answer
29 views

Binding Model data to form in ASP.NET MVC

How do I pre-populate data of a model to form I am getting data in model, I can see in quickwatch, but it's not populating in form. This is my model and view. I am also sending data from this model it'...
rohit's user avatar
  • 3
0 votes
1 answer
63 views

Passing model data to partial view

When I create a partial view, and i want to get some model data, i get this error: the partial view file is in Pages/Shared folder the error says that the name Model does not exist in the current ...
Badjem79's user avatar
  • 151
0 votes
1 answer
180 views

How to update value at model from select list on partial

IndexModel is my home page and I get some data from _statusService that I render at the partial _MyPartial The problem that I have, is that in that partial I have a select list and I want to get ...
Sachihiro's user avatar
  • 1,725
1 vote
1 answer
140 views

is it posible to use partialview with modal inside of another partialview and display the modal on the main page?

I am using a Partialview for displaying a table with data inside a normal razor page. I want to edit and first off all display a specific row of data with another partial view (Modal) When i am ...
flomue99's user avatar
0 votes
1 answer
36 views

Partial Razor View not allowing to pass paramaters

I am currently trying to made a dynamic button row, featuring the ability to declare in a view which buttons you want rendering and then calling a partial razor view to render the content dynamically ...
Dread Dev's user avatar
0 votes
0 answers
36 views

Why is my cshtml being broken by partial tags within an if statement block?

Probably quite simple, but I'm new to C# and Razor, and I'm having trouble finding an answer. I have multiple links across my project that I want to display through partials. 95% of them are ...
James's user avatar
  • 1
0 votes
2 answers
1k views

Is there a way to reload a single Partialview without loading the whole site? in asp.net Razorpages

Hello guys i wanted to ask if there is a way to reload a single partial after a is clicked instead of loading the whole site new. My site looks like this. My code This is how i load my partialview ...
flomue99's user avatar
2 votes
1 answer
608 views

Why can't an interface in a tuple be used as the model in an ASP.NET Razor partial view?

I have an ASP.NET Razor Pages project with a partial view that uses a tuple type for its model. One of the tuple elements uses an interface as its type. When the partial view is called using an object ...
Doug's user avatar
  • 2,590
1 vote
1 answer
33 views

How can i have different concepts with razor pages?

My website has two concepts. One for electronics store and one for books store. The user can select the concept upon registering at my razor pages web application. The selection is stored as an enum ...
DisplayName's user avatar
2 votes
2 answers
2k views

Why can't I use partial view in a razor (blazor) component?

I have an existing ASP.NET MVC app with a lot of partial views and view components. It took me a while to realize you can't use @Html and @Component helpers inside a Razor (blazor) component, and ...
hk1980's user avatar
  • 115
0 votes
0 answers
25 views

Passing data to a PartialView from Ajax post call

I have the main view with model that gets loaded. User can click a button, which is an AJAX call it does some processing, returns PartialView like so: //values = Dictionary<string,DataTable>(); ...
user avatar
1 vote
0 answers
54 views

Html Helpers in Razor partial view for collections

I have - again - a case where I need to put a lot of fields in a partial view in order to be able to add dynamically this partial view in a form. Up to now, I always made my html markup by hand, so ...
peljoe's user avatar
  • 121
2 votes
1 answer
2k views

Multiple Vue apps, multiple entry files, same Vuex/Vue3CompostitionApi store [lost reactivity]

I am trying to iteratively replace .cshtml razor views with what I wanted to call Vue "mini-apps". Which should be somewhere in between a micro-frontend and a classic SPA. The aim is to ...
FeelaV's user avatar
  • 102
0 votes
1 answer
484 views

Post dynamic form data from partial view in ASP.NET MVC

I am trying to add new functionality to an old ASP.NET MVC project. I want to add new address form every time I click a button, furthermore customer's address is list and it will be added dynamically, ...
lekiniu's user avatar
  • 71

15 30 50 per page
1
2 3 4 5
24