Questions tagged as 'c#'

3
answers

How to identify if user is typing number or characters?

I have a textbox: <TextBox GotFocus="buscador_GotFocus" Tap="buscador_Tap" KeyUp="buscador_KeyUp" TextChanged="buscador_TextChanged" Name="buscador" Grid.Row="0" DataContext="Teste"/> In it the user will be able to type any type of ch...
asked by 15.11.2015 / 18:34
2
answers

Best way to bind objects from 1 to N - asp.net MVC

I'd like to know how to best give the Binding of data in object FuncaoGrupo of my Controller . Each item in the Funcoes list will generate 4 Checkbox in the View. I have the following class: public class GrupoDeUsuari...
asked by 17.11.2015 / 02:39
1
answer

Data Source - Best way to organize methods / classes relevant to the entire table?

In my company we work with models based on the standard "Active Record", that is, the methods of the model are always referring to the operations of a single record of the database, for example: Class User { int id; string Name; p...
asked by 23.07.2015 / 17:23
1
answer

Path points in xaml

I am creating an application that will cause an agent to walk through an area with several obstacles as shown in the figure. TheagentwillwalkfrompointStopointG,passingonlythroughtheverticesofthepolygons.HowcanIgettheverticesofthepolygonsinXA...
asked by 25.07.2015 / 20:30
1
answer

How to put a page to print inside the application code?

I need to put a print page inside my code, ie I will not print an existing document, nor the application screen, I want to mount the code with the elements I want. I have an array and I just want to add text that is in it to my document. I...
asked by 08.10.2015 / 21:14
1
answer

I have the reference, but when I rotate the CLR says that the reference is missing

I have this include in my project: System.Web.MVC.Ajax . However when I run the application I get a runtime error, in the file web.config . If I comment on the error line in web.config , the error appears on the bottom line,...
asked by 13.10.2015 / 14:49
2
answers

Read document array of bytes word in browser

I have a routine of upload and download on a site that is running. However, I can not make it look like word files, directly in the browser, I want to view it as a pdf. What I'm doing is saving the document to disk and sending the...
asked by 13.10.2015 / 18:09
1
answer

How to configure ReSharper to NOT add 'summary' comments

When using the ReSharper (StyleCop) 'Remove Unused Directives in File' or 'Remove Redundant Code in File' function to exclude some library from my project, ReSharper removes it, but adds comments throughout the project : // // </copyri...
asked by 22.10.2015 / 19:24
1
answer

ProgressBar and BackgroundWorker in C #

I'm creating an application with Firebird 2.5 in which I need it to read a .sql file with instructions to populate the database if these processes have not yet been done, because it is a bit long and because I do not know I want to...
asked by 14.01.2016 / 21:45
2
answers

Capture Machine ID with C #

Good morning, I have several computers with the same IP output, how can I get any information that leads me to know which computer came a request? I use C # Asp .Net MVC     
asked by 30.09.2015 / 15:59