Questions tagged as 'c#'

2
answers

Button back on Xamarin Cross Plataform

How to make a function to when you click "Back" in Android in Xamarin , does the app return to the previous screen?     
asked by 14.10.2016 / 14:12
1
answer

make a button to terminate user session (asp)?

I'm developing a site that allows the user to log in to his account and such, but I need q after he logs that login button sum and one appears to end the session (a quit button). <nav class="acceder"> <ul> <li>...
asked by 14.10.2016 / 15:42
1
answer

When to use the constructor when using load

Good evening, how are you? I have a question, when to use the constructor and when to use the load of a form to call some method or etc. Example: public partial class Manutenção_cliente : DevExpress.XtraEditors.XtraForm { consulta_bd co...
asked by 20.07.2016 / 02:17
1
answer

Doubts about table of states and cities

Friends, good morning. I am having a question about how best to populate a combobox with state information and another one with city information. My question is, what would be the best performance question or good practice question? have a ta...
asked by 19.07.2016 / 13:32
1
answer

Error making a return in windows form c #

Someone could give me a hand, please, I'd like to know what I'm doing wrong for this giving this error when it returns. I want to show in Grid these fields: SubCategoriaId, SubCategoriaNome, CategoriaId, CategoriaNome I have a parame...
asked by 22.06.2016 / 10:42
1
answer

FileStream File Directory and Extension

How to specify the file creation directory and its extension? byte[] vetorImagem = (byte[])cmdSelect.ExecuteScalar(); string strNomeArquivo = Convert.ToString(DateTime.Now.ToFileTime()); FileStream fs = new FileStream(strNomeArquivo, FileMode....
asked by 25.06.2016 / 22:57
1
answer

AJAX request for WCF with POST

How to make an AJAX request for a WCF service using POST? I'm getting several errors with OPTIONS and POST methods that come in the same request. Here is my code: Contract [OperationContract] //[WebInvoke(Method = "GET", BodyS...
asked by 03.12.2016 / 18:55
1
answer

How to create tabs inside a window?

I need to create a program that displays the forms I'm calling from the MenuStrip, inside the main form, as if they were part of it, and you can leave more than one open. I believe that because of the image I made, it is easier to understand wha...
asked by 30.11.2016 / 19:46
1
answer

Redirection with Ajax in ASP.NET MVC

I'm using Ajax to save the form data. The problem is that after saving the data they can not redirect to the "Action Index" where customers are listed registered, since the request was made in Ajax. I thought of creating a PartialView for this a...
asked by 01.12.2016 / 14:28
1
answer

MVC - Keep PartialView loaded when ModelState is not valid

I have a simple registration screen that, when selected new record, a modal (which is a partialview in the project) is opened for the user to enter the fields for registration. The call to the view is done through Jquery: $("#btn-Incluir"...
asked by 13.07.2016 / 21:02