Questions tagged as 'c#'

1
answer

Unable to read beyond the end of the stream

I was trying to create a sockets connection between Java and C #, Java being the client and C # the server. But when I use BinaryReader to read the data, it returns an error:    Unable to read beyond the end of the stream. Excerpt from...
asked by 11.05.2014 / 16:28
1
answer

Map one model Id in another without a DropDownList

I had a problem making relationships in my application. My project is from a school, and in it I have to have the occurrences. But at the time of relating the Student to the Occurrence it happened to me that, in the view create of the occurrence...
asked by 14.05.2014 / 03:15
1
answer

How to render Action accessing controller in this case?

I'm using a ready template and I'm using the bootstrap, but the menu transaction is done through javascript animations and using the <Section> html tag, as follows: <section class="section" id="registerProfessionalUser">...
asked by 09.05.2014 / 19:03
1
answer

Turn labels from a CheckBoxList into strings

I have checkboxlist with some items and their names are the directories so I can save the file. I would like to know how I get the name of each label selected from checkboxlist and turn it into a string . I would like to kn...
asked by 23.04.2014 / 08:55
1
answer

Does the 'WebBrowser' use a native windows browser as the basis?

I'm seeing that you can use a WebBrowser in the C # Form but wanted to know if it is like iFrame that uses the browser itself to create this navigation window. My question is whether he uses Edge or something like that to create...
asked by 14.11.2018 / 16:32
1
answer

xml being generated with encoding="utf-16"

I'm having trouble serializing an xml, it's being generated with encoding="utf-16" . But xsd is with encoding="utf-8" , how do I get it to be generated with utf-8 ? var xml = string.Empty; var serialize = new XmlSer...
asked by 28.09.2018 / 16:10
1
answer

Save as txt c #

I created a method that saves a txt in the user's temp folder, but would like the user to choose where to save it on the machine (save as). How could you do this? Here is my code below: protected void btn_txt_Click(object sender, EventArgs...
asked by 05.12.2018 / 17:37
1
answer

Can not rename to null token Parameter name: token

Follow the extension: public static void Rename(this JToken token, string newName) { if (token == null) throw new ArgumentNullException("token", "Cannot rename a null token"); JProperty property; i...
asked by 06.12.2018 / 21:17
1
answer

I click the button and it does not add the div - C # Asp.Net

I click the button and it does not add me to the div, but sends it to the database, can anyone help me? C # protected void img_btn_enviar_nome_Click(object sender, EventArgs e) { UtilizadoresBot msg_nome = new Utilizad...
asked by 15.10.2018 / 00:37
1
answer

Error: The system can not find the specified file [C #]

   Win32Exception (0x80004005):               The system can not find the file specified in System.Diagnostics.Process.StartWithCreateProcess (ProcessStartInfo startInfo) When trying to run a newly published program I came across this error,...
asked by 15.10.2018 / 16:24