Posts by Andre Calil • 470 points
8 posts
-
2
votes3
answers3702
viewsA: How to get the dynamically created Textbox value?
As @Miguelangelo commented, the catch is on page life cycle. Dynamic controls should be recreated in the Page_Init so that they exist before of the loading of viewstate. This means that, somehow,…
-
5
votes5
answers708
viewsA: At what point in a project should the platform be chosen?
I’m going to ask your permission not to answer the question exactly. I think it’s easier to think about characteristics that influence the choice of platform: Deploy: how the software will be…
-
4
votes3
answers6710
viewsA: Checkboxlist on ASP.NET MVC
The @Matheusbessa response works for a checkbox. For a list, you need to use the mapping structure for an array. See what changes: The view: @using (Html.BeginForm("Index", "Home")) { <input…
-
7
votes2
answers362
viewsA: Error using File.Delete method within Controller
It seems to me conflict of namespace. You could test with: System.IO.File.Delete(nomeArquivo)
-
1
votes1
answer624
viewsA: Session in a database
It depends on what your application needs. The question "which alternative is recommended" is very categorical, so I won’t answer it directly. I’ll tell you a little bit about each model and you…
-
3
votes2
answers2408
viewsA: How to render two typed Views on an Index()?
Luiz, I think that you don’t want the RenderView, but rather the RenderAction. I’ll assume that in my answer, if I’m wrong tell me, okay? The RenderView will only try to bring the code from that…
-
0
votes3
answers968
viewsA: How to run Url.Content via Client?
Tiago, you already have some good solutions there. I will add an alternative that is how I work. It is usually useful to store your site’s root address in some variable. I inject this into HTML,…
-
8
votes7
answers20675
viewsA: What are lambda Expressions? And what’s the point of using them?
William, this is a good question and it would require a very long answer. It was trying to be brief, and for that was to leave out a lot, all right? What are lambda Expressions? They are, by…