Questions tagged as 'c#'

1
answer

Bootstrap nav-tab event run on server side c #

I'm using the following code to use tabs in my Asp.Net application, is there any way to add an event so that when I change tab I run some server-side event equal to the TabContainer event of ajaxcontroltoolkit? ( link ) I'm not using TabConta...
asked by 22.03.2016 / 21:09
1
answer

Multiple component events in only one method

I have several events of my textbox, the problem is that I have a 30 in my form. I would like to know if there is any way for me to improve my code, reduce it by creating only one method to handle all of those events. Three TextBox sample eve...
asked by 22.05.2015 / 13:18
2
answers

Center image in nav menu bar

How do I center an image in the Menu bar? When I say centralize, I mean not the image in the middle of the bar, but in whatever position it is, it has the same "measures" for the top and bottom. How do I define this in my css ? Below the c...
asked by 22.05.2015 / 21:13
1
answer

C # Image and PDF Manipulation

I wonder if there is a way to turn multiple images into a single PDF file. In my application I'm already pulling their address.     
asked by 19.05.2015 / 20:46
1
answer

ASP.NET Identity and Web API - Problem to register new user

I have a Web API project and I'm using Identity to manage user accounts, in my controller it looks like this: public async Task<IHttpActionResult> Register([FromBody]RegisterDto model) { if (!ModelState.IsValid) { return...
asked by 19.05.2015 / 22:42
3
answers

How to select User Digital Certificate in Web applications?

I'm developing an ASP.NET MVC5 project to demonstrate electronic invoices. During the process of searching for notes, manifestation or download, I access the webservice of the Internal Revenue Service and I need to send the digital certificat...
asked by 30.12.2015 / 13:57
2
answers

Order of controls cause "System.NullReferenceException"

I'm doing some initial testing with WPF and this question popped up. No error: <DockPanel Margin="5"> <TextBox x:Name="myTextBox" DockPanel.Dock="Right" Width="50" /> <Slider x:Name="mySlider" Width="300" SmallChange=...
asked by 27.02.2016 / 12:37
1
answer

Doubt with mvc list editing, using checkbox and editable field

I'm a little doubtful and I barely know where to start, so I'm going to turn to college students: I have a page with% as% (I am using asp.net-mvc ). It has a list, assuming the elements are A, B, C, D, E. The value of these elements comes fr...
asked by 29.06.2015 / 17:26
2
answers

How to organize the return of data in a ListT?

I have a wcf that returns me some information, I would like to bring them organized, how could I do this? I would like to return data like this: Atthemomentitislikethis: I'm doing this: public List<V_PRODUTOS> GetProdutos(string c...
asked by 08.06.2015 / 05:11
1
answer

How does session per request work?

There was an idea among developers to use the Session per request pattern - Session per request. Researching the subject, I found some topics in the OS that generally said that the indication was for ORM frameworks. Little practical exa...
asked by 02.02.2017 / 14:06