Questions tagged as 'asp.net'

2
answers

Read multiple lines of a file in parallel with C #

I have a file with almost 700mb that has numerous lines with Json inside it. I need to treat each json line-by-line and insert them into my database. The question is, I'm currently using the following code: using (StreamReader arquivo = ne...
asked by 25.02.2016 / 18:52
2
answers

C # MVC 4 - Action gives Error 404 [closed]

I'm a beginner in C # MVC 4 and I set up a website for learning purposes. On the contact page of the site there is a form that automatically sends emails. When I squeeze it locally straight from Visual Studio 2013 (IIS Express) it sends the e...
asked by 14.12.2015 / 18:25
1
answer

How to improve the security of asp.net Membership?

Can you protect that cookie that is evident when you log in to a site using asp.net membership? I know I just copy it so I can "clone" the login session and thus become very vulnerable to man in the middle attacks. The only solution is to use...
asked by 01.02.2016 / 22:01
2
answers

How to display a modal using the compoent button of C # and bootstrap?

If you use <button type="button" data-toggle="modal" data-target="#ConvenioOk">Teste </button> , modal opens. But I have to use the C # button because of the event. The button calling the modal is thus <asp:Button ID="bt...
asked by 08.12.2015 / 02:24
2
answers

DropDownList calls the page load

I have a dropdownlist that takes data from the sql server database. I load this dropdownlist into the page_load within a if(!IsPostBack){} and from what I noticed from !IsPostBack , it only goes in there if it is the first t...
asked by 22.10.2015 / 23:15
1
answer

Control with HtmlControl or HtmlGenericControl within GridView

I have an html tag inside a gridview: <asp:GridView ID="GridView1" runat="server" ...etc..etc <i class="fa fa-cloud-upload fa-lg cinza" runat="server" id="icon_Nuvem"></i> ... When the gridview is being populated I have...
asked by 06.10.2015 / 15:07
3
answers

UserControl to control Logon Schedules [closed]

How can I make a user control of Visual Studio a screen similar to this image below, in an ASCX (HTML, CSS, / em>: I tried several <div> , but I think it would be a very long process, and I think it's possible to do it wit...
asked by 20.08.2015 / 21:55
1
answer

How to apply the 3-tier concept with GridView C #?

I have a project where I present a Gridview in an ASP.NET C # Webforms project. I tried to apply the 3 layer concept in this way, but the page only reload and the grid does not appear on the page. Follow the code example below: publi...
asked by 05.08.2015 / 19:25
1
answer

Open Modal bootstrap from code-behind

I need to open a modal when the password or user is incorrect, it will stay in Else .. however, it does not open the modal protected void bntLogar_Click(object sender, EventArgs e) { Registrar criptografia = new Registrar();...
asked by 30.09.2015 / 17:43
1
answer

Problem when viewing data from a grid within the code behind

In a GridView I'm trying to get the data for a row where checkbox == true . I can get the value of the checkbox, but I can not get the other values for the line. while (i < gvwNot.Rows.Count) { GridViewRow row = gvwNot.Rows[i];...
asked by 13.07.2015 / 16:36