Questions tagged as 'asp.net'

1
answer

New Line StringBuilder message Box C #

I would like to show in a messagebox the records with line break. but the result is this: I'dlikeyoutostaylinebyline;Myimplementationlookslikethis: When I'm debugging, in builder.append I realize that the line break is not i...
asked by 05.05.2017 / 20:17
3
answers

How to open a link in a new aspx tab

I'm trying to open a new page on a different tab, through aspx, I got a code on the internet that does this, however, it only works with clicks. follow the code LinkButton1.Attributes.Add("onclick", "window.open('../conheca-os-alimentos-apr...
asked by 17.07.2015 / 17:44
1
answer

How to validate the value selected in the dropdownlist

I'm using CompareValidator to check if the value selected in the dropdownlist is "Select", but not working, follow the code. <asp:DropDownList ID="ddlIdPisSt" runat="server" DataSourceID="sdsIdPisSt" DataTextField="Descricao" DataValu...
asked by 30.11.2015 / 16:55
2
answers

button event with asp.net

I create a button in asp.net, put onclick "testBotao", and press f7, but it does not load the event, just the pageLoader. How do I capture the event?     
asked by 03.02.2015 / 11:34
1
answer

How do I display all the columns in my BD asp.net mvc

I wanted to know how to loop to print the columns of my grid with the values of the database, but it only showed 1 result even the database being huge, here is the code, thanks for the help CONTROLLER: using System.Collections.Generic; usin...
asked by 09.05.2018 / 19:03
1
answer

For with DateTime in Razor giving out of memory exception

I'm having the error out of memory, being caused by this Razor code in my cshtml file, and I can not identify where the problem is. @for(DateTime data = DateTime.Today.Date; data <= DateTime.Today.AddDays(7).Date; data.AddDays(1)) { @da...
asked by 25.01.2018 / 23:41
1
answer

Call action Get that returns a view by jquery ASP.NET MVC [closed]

I need to open the view create when I click on a button, how to do this for Jquery?    Button <div class="col-md-3"> <button id="btnNovo" class="btn btn-info form-control" style="width: 200px"> Novo </button>...
asked by 24.10.2017 / 16:59
2
answers

How to Increase webform timeout time

How to increase the timeOut time, my session is falling around 5 min, it is not in the connection string. Asp.Net AspNet Identity Authentication <sessionState mode="InProc" timeout="20"/> <customErrors mode="Off"/> <a...
asked by 22.11.2017 / 11:11
1
answer

Login on index screen

Talk, people, beauty? So I'm developing an ASP.NET MVC application and I have a login screen, however I include in the navbar login, where from the index the user could enter their email and password and click the enter button without having to...
asked by 07.10.2016 / 20:41
1
answer

aps.net C # Rename an image

I have an image in a folder and I wanted to change the name to only the Can someone help me? Thank you example: nomeoriginal.jpg was to:     
asked by 07.07.2016 / 17:39