Posts by Willian Ledier • 121 points
7 posts
-
2
votes1
answer65
viewsA: Enable an input field according to an Enum
Make a change to your dropdownListFor: Added "@id = 'name_meu_dropDownList'" <div class="panel panel-default"> <div class="panel-body"> <div class="form-group">…
asp.net-mvcanswered Willian Ledier 121 -
2
votes1
answer951
viewsA: Gif to load while website loads!
HTML <img id="loading" src="../../Content/progress.gif" alt="Updating ..." style="display: none;" /> Jquery <script type="text/javascript"> $(document).ready(function() {…
-
1
votes2
answers415
viewsA: Read an internet page in a variable in VB
Catch the Json In the json variable you will have the json object obtained from the URL. Dim json As String = New…
vb.netanswered Willian Ledier 121 -
2
votes2
answers553
viewsA: Fill Dropdownlistfor dynamically with Jquery?
Model public class CascadingDropDownSampleModel { public IDictionary<string, string> Makes { get; set; } } Controller public class CascadingDropDownSampleController : Controller { #region…
-
1
votes1
answer89
viewsA: Loss of Collection from a View Model to the Controller
Summary Add the fields in the list view, I added as hidden (Hiddenfor) @for (int i = 0; i < Model.Dependentes.Count; i++) { @Html.HiddenFor(model => Model.Dependentes[i].Nome)…
-
1
votes4
answers179
viewsA: Create method that avoids code repetition in ASP.NET with SQL
How good programming practices would be more interesting you create a system in three layers. Where each layer fulfills your responsibility. Presentation layer HTML and business layer calls in…
-
0
votes4
answers179
viewsA: Create method that avoids code repetition in ASP.NET with SQL
The ideal would be to use Configurationmanager, that is to store the connection string on the web.config of your website: Place the connection string in your Webconfig: <connectionStrings>…