Questions tagged as 'c#'

2
answers

Json Method - Return

I am developing a return of zip codes through the Post API, the part that is in the controller is working, but I do not know if the return is correct, nor how to use it in the view. If anyone can give me a Light I'm grateful. Controller:...
asked by 18.11.2016 / 03:21
3
answers

How do I hide URL IDs?

17/11/2016 I have an application that is building the following URL www.mysite.com/controller/action/id However, I need the ID not to be displayed in the URL, but to leave it alive in back-end , because it is a requests s...
asked by 17.11.2016 / 17:54
1
answer

How to change repeater line color at run time

How do I change the line color of Repeater running? Repeater lines are loaded through what comes from the database. Example: If there are 3 lines, when displaying on repeater, the first line is one color, the second line is another, an...
asked by 16.11.2016 / 13:24
2
answers

How to include new right icon in a Xamarin Forms activity

Is it possible to include a new icon in a activity but on the right, without changing the existing one? I need to include the user's photo on the right. (Red place in the image) Image:     
asked by 02.12.2016 / 20:00
1
answer

Confirmation of registration data E-mail Password

I would like to know the best way to validate E-mail and password, to verify that the user has correctly entered the information. Ex:    Enter your email:       Confirm your email:       Enter your password:       Confirm your password:...
asked by 10.11.2016 / 20:16
1
answer

Problem to insert into the database - SQL

Follow the code: Update command works: int noOfRowUpdated = ctx.Database.ExecuteSqlCommand("Update Mapa set Geo = geography::Point(47.65100, -122.34900, 4326) where Id= 1"); What does not work is insert command: int noOfRowInserted = c...
asked by 07.01.2017 / 04:55
1
answer

What is the difference between the 2 select?

Follow the code: Example: using (var ctx = new dbEntities()) { var resultado = ctx.Table.SqlQuery("Select * from Table WHERE id = 0 ").ToList<Table>(); } Another example: privat...
asked by 07.01.2017 / 18:58
1
answer

Update problem with 1 field - EF

Follow the code: using (var db = new Entities()) { var t = new MinhaTabela { MeuCampo= 10 }; db.Entry(t).State = EntityState.Modified; db.SaveChanges(); } Table definition: CREATE TABLE [dbo].[MinhaTabela] (...
asked by 08.01.2017 / 03:48
2
answers

SQL Injection or Script injection - MVC-5 - Is it a concern?

I am developing an application in MVC-5 and I have read several articles on SQL Injection. I would like to know if I have to take any security measures or modify my selects, or if the MVC-5 already has a shield against this situation. Thro...
asked by 05.01.2017 / 22:18
1
answer

Pass value of equal properties, different classes

I need the following I do not know if it has how to do, So the question, I have two classes and in these two classes I have exactly the same properties, public class Cliente { public int ID { get; set; } public string FisicaJuridica {...
asked by 10.02.2017 / 05:23