Questions tagged as 'asp.net'

1
answer

Optimize if sequence

I have the following structure and would like to optimize the if code, there are already several equal parts. Then I made a foreach. But the ExpandoObject type variable, I do not know how to handle it generically to get the value of the function...
asked by 05.04.2018 / 19:19
1
answer

Can I edit customize the Identity AspNetUsers table?

I have a project that has a USUARIOS table. And now we are migrating to AspNet.Identity which already has a table but called AspNetUser and with its own fields. And my USUARIOS table has relationships with People and...
asked by 14.11.2017 / 12:12
1
answer

Call functions from a controller in the ASP.NET MVC5 _Layout.cshtml view

I have a menu being loaded into an Action from a controller. I already configured the view of this action in _ViewStart to be the default of my project. But this view is not pulling any information from the comtroller. I have already tried by Vi...
asked by 20.10.2017 / 18:32
1
answer

How to put links from social networks to share the link of the page of a post?

I have a question. I do not understand much about ASP.Net, but a friend of mine asked for help to implement social networking buttons on his TCC site. His CBT is a news portal like any other. He would like to put on each post page something l...
asked by 21.09.2017 / 17:32
1
answer

How to join two tables using auxiliary table and LINQ

I have the People and Representatives tables, where in my application the person may or may not have representative (s). public class Conta { int PessoaID; string Nome; String Documento; } public class Representante { int Rep...
asked by 05.10.2017 / 20:16
1
answer

C # - Use form data in IF

I'm trying to retrieve data from the form and need to use it in an IF. protected void btnSubmit_Click(object sender, EventArgs e) { try { if (txtLocalizacao.Text != "") { conn.Open(); SqlCommand...
asked by 30.06.2017 / 21:19
1
answer

RegEx in JavaScript and C # for text validation

In a Asp.Net WebForms plication application, I have a TextBox that I need to validate if it contains any excerpt where < is followed by any character except whitespace. For example: Nesse texto pode existir < com esp...
asked by 25.05.2017 / 21:47
2
answers

ASP.Net - Browse RadioButtonList?

I have several RadioButtonList in a form, in the event of submitting the form I want to go through them and get the selected value. I tried this: protected void btnEnviarQuestionario_Click(object sender, EventArgs e) {...
asked by 01.09.2017 / 14:00
1
answer

DataBindTable Incompatible with SqlDataReader does not implement IEnumerable

___ erkimt ___ DataBindTable Incompatible with SqlDataReader does not implement IEnumerable ______ qstntxt ___ I have a problem displaying the data in a column that is in the
asked by 12.04.2017 / 12:08
1
answer

Open ASP.NET project that is coming from another machine

I have a project that was created on a machine and I have to maintain it. I copied the project to my current machine and when I try to open the solution / project I get the following message from Visual Studio:    link : error: Error open...
asked by 14.06.2017 / 18:04