Questions tagged as 'asp.net'

2
answers

I can not read the values returned from the database using OracleDataReader

I'm having trouble reading the returned values from a select , on the line where I do: OracleDataReader reader = cmd.ExecuteReader(); In read it brings me the values correctly, but on the next line where I do reader.Read()...
asked by 14.05.2015 / 18:29
1
answer

How to display an ASP HTML code in a Label sending by Code-Behind (C #) - ASP.NET

I'm having a problem, I've done several tests where I'd like to send a HTML code directly to a label from a C # method, where it would dynamically display the code on the screen. But when I send it, it does not render. public partial class...
asked by 15.05.2015 / 02:21
2
answers

What are ASP.NET variations? [duplicate]

What are the variations within ASP.NET? The main characteristics and for what type of activity are they most recommended? When searching I have come across for example with ASP.NET, ASP.NET MVC, ASP.NET Core, ASP.NET Razor. I came to...
asked by 19.04.2018 / 13:56
3
answers

Problem converting int to string

I'm trying to do a click counter in ASP.NET webforms and C #, and I need to convert the% number of clicks to a string in the label . But this does not work, the page is displayed but the number of clicks (the label ) does not appear. Code...
asked by 12.10.2015 / 22:39
2
answers

Excessive line break when creating C # .txt file?

I am trying to generate a .txt file from a code list retrieved from the database. However, when the file is generated, line breaks are excessive, as shown below:    Thecodeisasfollows,beingaforeachthattraversestheentirelistofobjectsre...
asked by 03.04.2017 / 15:53
2
answers

Put a GridView row with red color if a cell has the false value

I would like a particular row of my GridView to be red if the corresponding cell in the closed column is false. My ASP.Net looks like this: div class="GridMain"> <asp:GridView ID="gvInformationPeriod" runat=...
asked by 09.06.2014 / 16:15
1
answer

Variables in C #

Is it possible to use variable variables or something similar in C # as in PHP for example? $example = "etc.."; $var = "example"; // variáveis variáveis echo $$var; // etc... echo ${$var}; // etc... If it is not possible, why? The typing,...
asked by 03.12.2017 / 10:15
2
answers

Can not find the parameter passed to the insert command

I'm developing a web application in ASP.NET and am wanting to insert data into a table in the database, but specifying the parameter displays the following error in the line of cmd.Parameters.AddWithValue("@codigo", this._codigo); :...
asked by 18.07.2017 / 23:20
3
answers

How to use the @Html.RadioButton, how to send the select option to the controller?

I'm trying to send the selected RadioButton option to the controller, I've already tried to do it in several ways, I've researched in several places and I do not have a solution. Thank you Index @model List<SistemaMobile.Models.cli...
asked by 07.04.2015 / 20:34
1
answer

JSP for .NET developers

I am a .NET developer who needs to understand a bug that occurs in a JSP application. (I do not need to compile or fix it, just understand how it is using the database and so on.) I already have Eclipse, loaded solution, I have the fonts and...
asked by 28.07.2016 / 23:04