Questions tagged as 'c#'

1
answer

Text Break in Report Reporting (RDLC)

I have a report that has the structure below: And, almost, everything works correctly. However, when the response text of a question is too large (it has no character limit) the entire (report) line is moved to another page rather than br...
asked by 13.01.2015 / 17:49
1
answer

Guidance Control

I set the orientation of a page in my app as a landscape, but it was static. If the user flips the 180º screen it continues as a landscape but remains head . How do I turn the screen into landscape when the device is rotated and follow the us...
asked by 10.07.2014 / 03:43
1
answer

Error in query linq

I'm trying to query the table below from my database. Thisqueryisperformedusingthemethodbelow:public void compraAcoes(float cepf, string codigo, int quantidade) { string cd = codigo; try { float cpf; BuscaNet bus...
asked by 01.06.2014 / 22:02
1
answer

How to list related data

In my project I have two tables: Student and Occurrences. And they are related so that a student can have multiple occurrences. My need is: In the student Details view (Details.cshtml), I need to show all occurrences related to the student. That...
asked by 30.05.2014 / 21:07
2
answers

Error trying to connect to the database

I'm studying about C # and Asp.net and "trying" to draft a registration, change, and deletion project, following some videos I found on the net. The problem is when I connect the database created previously the application does not find it and t...
asked by 05.05.2014 / 14:36
1
answer

MvcCheckBoxList, RadioButtons, and Text Inputs

I'm having a project where I'm using MvcCheckBoxList. My question is this: Would you like to put a mvccheckboxlist together with radio buttons and inputs? For I am in a project in a school that I have to record some occurrences and I need th...
asked by 09.05.2014 / 00:10
2
answers

Calling action with AJAX, but does not return alert for view

In textbox Ticket , in event onChange() I call AJAX below: $('#Ticket').on('change', function () { var tkt = this.value; $.ajax({ url: '@Url.Action("VerificaTicket", "Oc")', data: { 'tkt': tkt }...
asked by 03.03.2014 / 17:55
1
answer

What is most advisable? Do you query through a list or directly in the database?

I have to perform a query where I need to do 4 INNER JOIN and still use WHERE in several fields. What is most advisable? Conduct the query in this way? using (DbContexto db = new DbContexto()) { var query = (from t1 i...
asked by 19.11.2014 / 17:51
1
answer

Read a JSON from a URL

I need to read a JSON file, which is generated by PHP , through json_encode ; I have no idea how to do this, do you have any examples? Note: It's in Windows Phone 8 C #! The response the url gives is as follows:...
asked by 23.04.2014 / 22:06
3
answers

How to display "from" within DateTimePicker

No DateTimePicker I can display anything using d for day, MM or MMMM for month and yy or yyyy for year. However, I would like to simply display in the customformat property: April 15th. Howe...
asked by 15.04.2014 / 21:36