Questions tagged as 'c#'

1
answer

Pass parameters to the method by URL

How do I capture parameters requested by the URL in a webservice ? For example: I have the following webservice: http://localhost/teste/WebService1.asmx/Produto How do I pass the parameters of the Produto method? To make the...
asked by 26.10.2015 / 02:18
1
answer

How to do a postback (refresh) in MVC

I am new to MVC and am accustomed to web forms and the events of the controls that cause the postback and refresh the page. I need to make this update on the MVC page after a javascript is triggered. In the code below I was able to call th...
asked by 30.10.2015 / 18:35
1
answer

Exception in Split () [closed]

I have an indexing of terms in my system, which word is being used among users' messages, so I created a Termos class and made a loop to generate a new object for each word, I will know in which Flow (User's Page) and Information (Flow Me...
asked by 04.01.2016 / 13:44
1
answer

Value and ID in the DropDown Cascade

Reference that can help you understand the code. DropDown Waterfall This part here I pass the values that will be added in the second DropDown var classesList = this.GetClasses(Convert.ToInt32(CanalMassivo)); var classesData = clas...
asked by 30.11.2015 / 12:24
1
answer

"button" with invisible content [closed]

Is there a way to set a content for a button in WPF, but that it is invisible to the user?     
asked by 14.10.2015 / 18:42
1
answer

How to erase information in DB using DataGridView?

Can anyone tell me what command I should put to delete the database using the selected cell information? I put it like this: SQLcmd.CommandText = ("DELETE FROM usuario WHERE nome = '" & DataGridView3.IsCurrentCellInEditMode & "' ")...
asked by 06.12.2015 / 19:41
1
answer

Using variables from other forms (C #)

I'm learning programming with C #, using visual studio 2013. In this program I have 2 windows. In the first window I have a text box and a button that writes the text to a string and opens the second window. In the second window I only have one...
asked by 06.10.2015 / 12:36
2
answers

I can not update a reference

I have an MVC project. In the solution are hung some auxiliary projects. Well, what happens that I added some references and when I starto the project gives me error saying that one project has a more updated reference than the other. However, I...
asked by 09.10.2015 / 16:11
1
answer

Format mask for TimeStamp attribute

I need to display the value of the TIMEOUT attribute only HH: mm (hour and minutes). By including the masks below an error occurs: The input string was not in an incorrect format. I've tried both ways: @dia.HORAINICIO.ToString(@"hh:mm...
asked by 02.11.2015 / 15:19
1
answer

IsolatedStorageSetting on Windows Forms?

I'm used to using for Windows Phone, like this: using System.IO.IsolatedStorage; public void putString(string key, string variable) { IsolatedStorageSettings iso = IsolatedStorageSettings.ApplicationSettings; if (iso.Contains(key)) //A...
asked by 19.09.2015 / 21:32