Questions tagged as 'webforms'

2
answers

Passing Javascript data to C #

I need to get a user's location, pass it to C #, get their street data and show it on a label. I have the following code: Labels <asp:Label ID="lblMsg" runat="server" Visible="true"></asp:Label> <asp:Label ID="lblLatitud...
asked by 26.02.2014 / 21:09
2
answers

Write form data in session

I created an access form for my administrative area, using a tutorial from Microsoft . Now I need to retrieve the login that he typed to enter and show it on an admin page, and also to make future queries to the database. How can I do thi...
asked by 04.03.2014 / 01:48
3
answers

How to use the SelectedValue value of DropDownList?

Next, I have a table "animals" with field "sex" (varchar (1)). In it I hedge M or F, for Male or Female. Use detailsView to show / edit these fields and would like to have a DropDownList in the EditTemplate with the options Male or Female and...
asked by 08.03.2014 / 20:09
1
answer

Linq groups and fetches the max id

Is there any way to optimize the code below so that you search for the forms that are at the maximum version according to IdCentroCusto ? In the code below I'm doing the grouping and getting the CM.Max(d => d.Versao) to fetch...
asked by 07.12.2015 / 18:52
2
answers

Automato for navigation in a WebForms application

Dear, it was not the first time nor last time that I needed to implement an automatic routine that accesses a Web site or system created in the WebForms platform to capture information. It has been extremely costly to make any form of automat...
asked by 04.04.2014 / 20:34
1
answer

ASP.NET WebForms, MVC or WebAPI? [closed]

First of all I would like to emphasize that my knowledge in web development is very small, so my question will be focused on what to use and not how to use, since the goal is to study first and then develop. I need to create a web application...
asked by 29.05.2017 / 14:53
1
answer

How to filter a DataView.RowFilter

I have a DataView and I'm trying to make a filter, where the 'photo' field is different from NULL I tried: dv.RowFilter = "foto <> ''"; But it did not filter. I searched here on StackOver and recommended: dv.RowFilter = "Isnull(...
asked by 07.01.2016 / 17:54
1
answer

Get the largest value inside linq select

Is there any way I can get the highest value of a select do linq field within decimal? , as per the code below? MaxValor = Math.Max(CF.Janeiro, CF.Fevereiro, CF.Marco, CF.Abril, CF.Maio, CF.Junho, CF.Julho, CF.Agosto, CF.Setembro,...
asked by 16.12.2015 / 19:49
1
answer

Friendly Url in ASP.NET Web Forms

I would like to know how to make friendly URL in C # ASP.NET. I tried to use the file: global.asax but it did not work.     
asked by 01.07.2016 / 21:08
1
answer

ASP.net how do I send text with enter

in Example.aspx.cs protected void Page_Load(object sender, EventArgs e) { teste0989.InnerText="teste123<br>teste456<br>" } in the site appears the br as text and actually wanted to enter some suggestion     
asked by 30.06.2016 / 00:41