Most voted "webforms" questions
Web Forms is a part of the ASP.Net web application framework. It is one of the different programming templates you can use to create ASP.Net web applications. Web Forms are pages that users request through their browser and that form the user interface (UI) that give their web applications their look and feel. The other model is ASP.Net MVC. Do not confuse when using tags.
Learn more…369 questions
Sort by count of
-
2
votes1
answer531
viewsHow to save Image to a specific folder?
I have the following code: protected void btnSalvarDestaque_Click(object sender, EventArgs e) { if (fuFotos.HasFile) { string strname = fuFotos.FileName;…
-
2
votes0
answers89
viewsHow to set language according to file . resx
I am aware of the existence of this question: Internationalization using ASP.Net MVC but I’m having some questions. I have these language files (I’ll have more in the future): The system in question…
-
2
votes0
answers442
viewsNULL field in date, passing as parameter to the database
I am willing to treat a field in my program to accept data NULL if this field is not completed, it would be CliDtNasc. I did the treatment in class with the if ternary and in the class properties I…
-
2
votes1
answer41
viewsRegex in Javascript and C# for text validation
In an application Asp.Net WebForms, have a TextBox which I need to validate if it contains any excerpts where there are < followed by any character except blank space. For example: Nesse texto…
-
2
votes2
answers356
viewsASP.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 that: protected void btnEnviarQuestionario_Click(object…
-
2
votes0
answers71
viewsConfigure Route ASP.NET Webforms
Good afternoon, I have an ASP.NET application in Webforms (still) working normally, the client asked to include the date in the route of a new page, I created the route so: routes.MapPageRoute(…
-
2
votes2
answers178
viewsHow to create events in a for repeat structure?
My question is the following, I am developing a program (I am beginner) in C#. The part I wanted to improve on is the following: I’m wanting to create different events in a for structure. For…
-
2
votes1
answer454
viewsHow to Include and Reference . JS in my project?
Well here’s the thing, I have a file. JS in my project. I’m calling him at HEAD LIKE THAT: <script type ="text/javascript" src="~/JS/validacao.js"></script> within this validation.JS has…
-
2
votes0
answers314
viewsOpen PDF in a new nagevador tab
I implemented a functionality in the system to generate a PDF file using iTextSharp, but this opening in the same tab, I would like it to be opened in a new browser tab. I tried to use the…
-
2
votes1
answer158
viewsError generating production report - Reportviewer Version 11
I am working with webforms and generating a report in reportviewer locally, the report accepts parameters and has a dataset // Parametros List<ReportParameter> parametersReport = new…
-
1
votes1
answer111
viewsHow to check if one control is the son of another? "Control.Ischildof"
I have 3 panels: <asp:Panel ID="ParentPanel" runat="server"> <asp:Panel ID="AnnoyingPanel" runat="server"> <asp:Panel ID="P" runat="server"> </asp:Panel> </asp:Panel>…
-
1
votes6
answers2938
viewsI can’t get the value of an Asp:hiddenField in c#, it’s always empty
I’m having a strange problem here. I’m assigning value to a asp:hiddenField via javascript (already tested giving alert and it shows the correct value), but then when I try to get its value in C…
-
1
votes2
answers1847
viewsChange layout of a radioButtonList / checkBoxList Webforms to make it compatible with Bootstrap
As is known, the default layout format of a radiobutton or checkbox in list controls in Asp.Net Webforms is always something like <label></label><input> I wonder if there is any…
-
1
votes2
answers592
viewsClosing modalpopupextender at the button click
I am using a modalpopupextender with C# .NET. When I click on my gridview button, it calls the popup to edit the necessary information. When I click on update or cancel, nothing happens! It’s like…
-
1
votes1
answer474
viewsRegistration via facebook api
I would like to know how to set up the facebook app so that it can receive data from any user.. I tried unsuccessfully defining these 2 fields that facebook provides me: FaceBookConnect.API_Key =…
-
1
votes2
answers1148
viewsHow to change the return url when directing to the login page?
How can I change the value of ReturnUrl passed to the login page when the user is on a specific page and the session expires? For example, if the user is on the page www.meusite.com/seguranca.aspx…
-
1
votes1
answer80
viewsHow to make STS request User PIN after Logout
I’m having trouble executing a logout of the application using STS. After clicking the Logout button, I Expose all the cookies I have, until I give the signout command of Federationauthentication,…
-
1
votes2
answers957
viewsLoading a report in Web Forms
I intend to generate some reports in my application and I am using Crystal Reports. The Report itself is correct but I can’t load it on my page (.aspx). Follow the Load event code of my application:…
-
1
votes2
answers270
viewsLink to display attachment
I have a hyperlink to view my attachment. My attachment is on the server and your path is saved in the database. I’m wanting at the time that the person click on Hyerlink open a new tab and present…
-
1
votes1
answer975
viewsTaking the content of a JS variable in an Asp.net C#
I have a Function that takes the values of my inputs, and I want to take the values of the variable for my method to perform the Insert. Does anyone have any tips on how to do this? function…
-
1
votes1
answer256
viewsAbas Asp.Net MVC x Asp.Net Webforms Ajax Toolkit
Does anyone know any technique for creating and manipulating server-side tabs using the AJAX with Aps.Net MVC? I’m looking for something very similar Asp.NET Webforms Ajaxtoolkit, that can…
-
1
votes1
answer112
viewsAjaxtoolkit and Htmleditorfieldextender. Content Demo
I’m using the HtmlEditorExtender of Ajaxtoolkit and in it I enabled the option to insert an image to the body of the text. <asp:TextBox ID="txtDescricao" runat="server" TextMode="MultiLine"…
-
1
votes2
answers586
viewsDifferent databases for the same Asp.net C#
In a club management system each club has its own database. There is a class DAL where it is responsible for obtaining the web.config to string of application connection. How to ensure that at login…
-
1
votes1
answer128
viewsCreate Object Profilecommon in Asp.Net Membership
I need to create a "profile object" in Asp.net Membership (Asp.net Security Control). Man Web.config: <profile defaultProvider="AspNetSqlProfileProvider"> <providers> <clear />…
-
1
votes2
answers338
viewsASPNET Application does not send emails
I have an application that has a screen with sending emails, This application works 100% on a virtual server (MANWEB10), including sending emails. When exporting to this new server (MANWEB01) the…
-
1
votes1
answer1570
viewsHow to treat multiple Forms on the same page.aspx?
I have a.aspx page that I have several Forms. One of the Forms put runat="server" and you’re like Textbox, I was able to take the form data and insert it into the database. But I wanted to do the…
-
1
votes1
answer120
viewsAsp.Net Drop Down List
How do I pass one dropdownlist by parameter? I tried to pass, for example: public void preencheDrop(string SQL, WebControl x) { método aqui. } but I couldn’t. This method I just want to make my life…
-
1
votes1
answer781
viewsHow to fill a textbox with a Mysql LIKE?
I am trying to fill in the textbox, when the client is typing the initials of his Name, select goes to the bank and tries to get the information. However, I have no idea how to send I’ll show you my…
-
1
votes0
answers323
viewsHow to use Bundle.config in webforms
I wonder if I can and how to use the bundle.config that is used in MVC, in webforms. I learned that there is this possibility but I did not find anything on the net. So I would organize the CSS and…
-
1
votes1
answer74
viewsHow does the settimeout work('__dopostback( 'dropdownlist 1 ' ')' 0)?
i would like to know how it works because I am trying to learn, and I am with some doubts, I am beginner in this subject I am reading about javascript a few days ago. I would like to know how the…
-
1
votes1
answer96
viewsPersist data in Profilecommon
I created a website. Asp.net C# I added in my web config this way <authentication mode="Forms" > <forms loginUrl="principal.aspx" name=".ASPXFORMSAUTH" /> </authentication>…
-
1
votes1
answer233
viewsHow to login to a website through a webforms application?
I need to log in automatically to my application webforms and other application, and I would like to know how best to do this. Some options I searched for were the Httpwebrequest class, Selenium…
-
1
votes1
answer75
viewsError adding While value in List<>
I’m trying to add the value of a result of mine while, and then carry it on my GridView. But I’m having a problem adding value to mine List<>. Does not accept adding prob1.vTotal in lstTotal.…
-
1
votes1
answer116
viewsCustom Element Web Forms
How can I make a custom element in aspx that I inherit DropDownList? I wish the element would stay that way when I call it: <componente:DropPersonalizado runat="server"…
-
1
votes1
answer1395
viewsEntityframework type conversion error: Cannot convert a 'System.Collections.Generic.Hashset`1[]' object
I am getting this error while trying to record a new record of Atendimento. Cannot convert an object of type 'System.Collections.Generic.Hashset`1[Domain.Servicesinexus]' in type…
-
1
votes1
answer248
viewsDesign standard or best practices for handling virtual disk files
There are standard or best practices for dealing with upload, storage, file publishing, and access control? Environmental example: I have a system that will need to register Calls and News and in…
-
1
votes1
answer360
viewsHow do I store values as objects in Web Forms?
How can I store the values of my class? Every time I click the buttons my class seems to be instantiated again. My class: public class Partida { public string[] linha1 = new string[3]; public…
-
1
votes1
answer2096
viewsDelete a specified line from a Datatable
How can I delete a specific line from a DataTable and then reload a ViewState with the rest of the lines that stayed? I have the following case below, but am not getting deleta directly from…
-
1
votes2
answers269
viewsRegular Expression does not work correctly on webform
I have the following field and validator in ASP.NET Webform <asp:TextBox ID="txt_Senha" runat="server" CssClass="form-control" placeholder="Senha" TextMode="Password"…
-
1
votes1
answer81
viewsHow to set Title in a`img`?
Is there any way to set the title (Text) of the component img in the code behind? <tr> <td colspan="7"> <img id="ProximoMes" src="../Images/Icons/dright.gif" /> </td>…
-
1
votes1
answer143
viewsDifficulty with Repeater using Asp.net webforms
I’m having trouble dynamically rendering data into one redepeater in the Asp.net webforms. I feed the datasource from the database record, and in html, I need to include the tag </div><div…
-
1
votes1
answer258
viewsPre-select Last Record in a Dropdownlist c#
I’m assigning a list to the DataSource, and in this assignment I am concatenating the code with the company name, however, it loads the list with the first selected item. How do I have the last…
-
1
votes0
answers100
viewsUrl ( ROUTE) with NAMES and not ID
How can I dynamically change a URL in a BD search of Id’s by NAME to become a friendlier URL (SEO). My URL today: http://meusistema.com.br/Achei/26/8717/1/2/3 - being the 26=STATE,…
-
1
votes1
answer113
viewsConvert a winform to webform
I have an application in a winForms I need to turn this project into a webform for web application, I am looking to know if it is possible and there is some way to do this.
-
1
votes1
answer89
viewsFeeding codebehind list and displaying value in Asp
I am for the first time having deeper contact with an application in VB.NET. In this case, I need to feed a list that I am 'turning into an object' and later, display it on my Asp. I’m usually used…
-
1
votes1
answer526
viewsValidate textbox with date
I have a textbox field that I need to type the date, I would like to know how I can do for when the user is typing, to validate the field, and if it is not correct, inform the user. What is the best…
-
1
votes1
answer58
viewsHow can I use a Hyperlink inside a Listbox?
I want to make a HyperLink for each result that will appear within the ListBox. private void listBox_SelectionMode(object sender, EventArgs e) { LogisticaServiceContractClient Logistica = new…
-
1
votes1
answer199
viewsMake a textbox visible by selecting a radio button
With the code below I can do this procedure but I have to click the button. It seems that it needs a refresh to work <asp:RadioButton ID="RadioButton1" runat="server" GroupName="pesquisa" />…
-
1
votes0
answers56
viewsUser settings
I’m kind of a Noob in c# and would like help on an application I’m running. In this application I need user settings to stay Default, but I don’t know a way to do it. I am developing in Webforms.…
-
1
votes2
answers385
viewsHow to call a form from another project in Webforms?
I have two Webforms projects one with authentication and one without. I need to call a project form without authentication in from the project with authentication. How do I?