Questions tagged as 'c#'

1
answer

Problem changing color of the backgronud of expressions in a richTextBox

I made a code to change the backColor of all richTextBox expressions that begin with an @. It's all okay, though, there is an error that I can not solve. If the first thing I write is @expressao and then I delete everything, when I start to wr...
asked by 30.01.2018 / 17:36
0
answers

return / pdf download from backend to ajax

I am converting an html to pdf, I was able to generate in the backend the pdf with submit, but with ajax I can not download the pdf .. How can I handle in ajax to download? Code: [HttpPost] [ValidateInput(false)] public ActionResult...
asked by 06.02.2018 / 16:53
1
answer

WebService REST with authentication [ID, CPF, User, Password]

Hello, I have been searching the web for some time but I can not find clear answers. I want to implement a webservice rest, with tokens and etc for security, and the webservice consists of just GET for queries with our SQL Server, but I'm hav...
asked by 27.01.2018 / 15:22
0
answers

Logic tables for a workshop

Ee pessal, I'm developing a project at practice level even without end client, just to improve my knowledge in ASP.NET using MVC. Well, this project would be for a workshop, I created 4 tables CLIENT, REPAIR, FISH AND OFFICIAL. Basically show a...
asked by 25.01.2018 / 19:18
0
answers

Unhandled Exception: System.TypeInitializationException

MySqlConnection sqlconn; string connsqlstring = "server=localhost;user id=sql10217362;persistsecurityinfo=True;database=sql10217362 --debug"; sqlconn = new MySqlConnection(connsqlstring); sqlconn.Open();...
asked by 25.01.2018 / 16:44
1
answer

Pulling a return from a JS function to C #

In the user registration process I want to validate your CPF by JavaScript and return whether it is valid in beckend. And so make a if with this result to insert it in the database or not. if (ValidaCpf(txtCpf.Text) == False){ //ret...
asked by 25.01.2018 / 17:11
1
answer

wanted to make a server transfer to the master page

I'm trying to make a server transfer to my master page but it's giving this error: No HTTP processor found for request type 'POST' Description: Unhandled exception while executing the current Web request. See the stack trace for more informat...
asked by 25.01.2018 / 16:02
0
answers

Get current webView url in xamarin

You can get the current url of a WebView. I need it to be monitoring from minute to minute which url the user is. I have not found a solution, is this possible?     
asked by 25.01.2018 / 16:23
1
answer

What does the "$" symbol mean before a string?

Viewing a code here in SOpt, I noticed the use of the "$" symbol and I was not sure how to use it. What is the "$" symbol before a string ? What is it for? Why use it? Example using static System.Console; public class Program {...
asked by 07.10.2015 / 14:35
1
answer

Problems when serializing object to XML

After serializing an object to XML, some properties disappear. These objects were automatically generated with add references services and do not have the [System.Xml.Serialization.XmlIgnoreAttribute ()] but are not appearing in XML after the...
asked by 25.01.2018 / 14:00