Questions tagged as 'view'

1
answer

function to return the binary value of an image

I created the following function to return the binary value of an image. However, when you run the query you are displaying the following message: CREATE FUNCTION [dbo].[fn_image](@DSCAMINHO VARCHAR(4000), @DSARQUIVO VARCHAR(4000)) RETUR...
asked by 13.07.2016 / 13:32
0
answers

Bootstrap with navbar aligned cell phone

I have the following code defining a navbar with the bootstrap: <nav class="navbar navbar-default"> <div class="container"> <div class="col-xs-1 hidden-xs"> <div class="navbar-header"> <a href="#" class="pul...
asked by 16.06.2016 / 18:10
1
answer

How to add a view dynamically to android as registered in mysql

I would like to know how to add a view (RelativeLayout) dynamically in my xml, as records are being found in my BD Mysql ... (My connection is made via the Volley lib)     
asked by 12.07.2016 / 02:23
0
answers

Cake PHP - Form in view index.ctp

I have views: index.ctp , add.ctp , edit.ctp . Generated via modified Bake and everything, now what I need is that in the index view, when I click ADD NEW or EDIT, instead of going to the respective view, only displaying...
asked by 02.07.2015 / 11:22
3
answers

Return in a view-specific div

I have a view where the contact form is at the bottom of the page, with validation via DataAnnotations. When I click the send button, the controller checks the ModelState, if it is not valid, it returns to the view with the validation messages....
asked by 02.06.2015 / 08:51
1
answer

How do I return to the View the items checked by the CheckBox?

I'm developing an ASP.NET MVC project. In my registration form, I have a checkbox where I select the items that I would like to add in the DB. My edit form, I have to get these items checked and show in the view: all the items that are in the gr...
asked by 13.02.2015 / 13:25
2
answers

How to receive information in a View?

I programmed my controller as follows: [HttpPost] public ActionResult Login(string pUsuario, string pSenha) { usuario oUsuario = modelOff.usuarios.Where(p => p.usuario1 == pUsuario && p.senha == pSenha).SingleOrDefault();...
asked by 28.07.2017 / 16:55
2
answers

Indexing views in MySQL

I have a view in my MySQL database, I would like to know if it is possible to index the fields that are contained in it, since I have a group by in it that is consuming a lot, and an index would solve this problem or at least help....
asked by 12.07.2016 / 15:49
2
answers

Rendering css when transforming view into string

I'm using the method: protected string RenderPartialViewToString(string viewName, object model) { if (string.IsNullOrEmpty(viewName)) viewName = ControllerContext.RouteData.GetRequiredString("action");...
asked by 09.07.2018 / 15:06
1
answer

PHP MVC - How to execute Model methods?

Good afternoon! How do I execute a method of the Model class, in specific a method of insertion to the DB, in case I need to send the data of the Form. This is the form in View (sector.php): <form method="POST" enctype="multipart/form...
asked by 27.07.2018 / 21:01