Questions tagged as '.net'

2
answers

HTML within a StringBuilder

I have HTML where I am formatting it inside a StringBuilder , where there are "quotation marks" I am passing a slash, but it is not opening the correct HTML. public string CorpoPaginaHtml() { StringBuilder corpoemail...
asked by 21.03.2017 / 18:44
2
answers

Layers to develop web service

I'm developing using REST (with RestFull API), where I plan to use two layers in the system: BLL and DAL. BLL = > It would be the business rules layer. DAL = > It would be the layer responsible for accessing the data. It could be DAO...
asked by 02.06.2015 / 21:35
2
answers

No parameterless constructor defined for this object

I'm trying to create a parameterized constructor, as shown below: public class TestController : Controller { private readonly IAppService _servico; public DashboardController(IAppService servico) { _servico = servico;...
asked by 12.09.2018 / 15:53
2
answers

CheckBox concatenating string several times

Iwantedtoclickonthecheckboxandthenontheregister,savethealreadypredefinedvalueandservicename(description)inthedatabase.However,thedescriptionisaproblemforme,becausewhentheusermarksandunchecksthecheckboxseveraltimes,itendsupconcatenatingmorethanex...
asked by 28.02.2015 / 03:51
2
answers

Facilities for client, WCF or Web API? [closed]

I need to create a Web service to insert data on a database that needs validation to ensure data integrity. I have as a requirement, to facilitate the use of my "clients". So, should I opt for WCF (SOAP) or Web API (Rest)?     
asked by 11.06.2014 / 19:17
1
answer

Calculate percentage

Largura * Complemento = Subtotal + Porcentagem = Total subtotal.Text = (Convert.ToDouble(largura.Text) * Convert.ToDouble(complemento.Text)).ToString(); total.Text = (Convert.ToDouble(subtotal.Text) % Convert.ToDouble(PercaTextBox3.Text)).ToStri...
asked by 05.08.2018 / 18:09
1
answer

WebService publishing error [closed]

After we have completed a development for document integration in Spring ERP, we are getting an error from a COM Component. This error only happens after the publication of the Web Service (that is who is responsible for performing the integrati...
asked by 02.07.2018 / 17:04
1
answer

Saving fields with a comma

What do I need to do to save a currency value with a comma and send it to the comma. As I stated the price field in the bank: preco number(12,2), Code: class clnPrato { private string _preco; public string preco { get { return...
asked by 15.10.2016 / 21:25
1
answer

How do I display all the columns in my BD asp.net mvc

I wanted to know how to loop to print the columns of my grid with the values of the database, but it only showed 1 result even the database being huge, here is the code, thanks for the help CONTROLLER: using System.Collections.Generic; usin...
asked by 09.05.2018 / 19:03
1
answer

Get parameter by url to my controller

I need my controller to get a parameter from a URL ( localhost/Check/123456 ), where 12346 would be the parameter. I configured RouteConfig: public static void RegisterRoutes(RouteCollection routes) { routes.Ignore...
asked by 05.02.2018 / 18:36