Questions tagged as 'webforms'

1
answer

Extract the value of an Item from a DropDownList that is filled with a sql server C # query and aspx

I have a DropDownList called Sale that I fill in as follows: DataRow fila = dtr.Rows[0]; OdbcCommand cmd = new OdbcCommand("SELECT A.CardCode, A.CardName, B.SlpName FROM OCRD A INNER JOIN OSLP B ON A.SlpCode = B.SlpCode WHERE B.SlpCode ='"...
asked by 29.06.2018 / 19:28
3
answers

Textbox and button

I can not find the error. I have a Textbox : <asp:TextBox ID="un_textbox" runat="server"></asp:TextBox> then a button: <asp:Button ID="Button1" runat="server" Text="Pulsa" OnClientClick="return com...
asked by 26.07.2017 / 17:39
2
answers

How to display data in a DropDownList?

I'm with a project that consists in creating a content manager for an information portal, so far I made the insert to add new articles to the information forums, now I continue with the part of the queries to be able to perform the update an...
asked by 04.01.2019 / 15:50
1
answer

Detect input of a form when the button is clicked

Guys, how are you? I have a doubt, I have to validate a field type text of a form, the issue is that I generate a form for each row of a table that I bring by jsp. so: <tbody> <c:forEach items...
asked by 14.11.2018 / 18:11
1
answer

Problems to activate Allow Unsafe. I can not run unsafe

I'm making a website published in hostlocal in C # and VisualStudio 2015. I need to set the AllowUnsafeBlocks option, for a class that uses pointers, but I can not. I'm sure it's silly, but I do not see it and I'm going crazy. When I open the...
asked by 02.11.2018 / 23:25
1
answer

As a hidden textbox when pressing a radio button?

Hi, I want to hide the textbox when I select the radio button called administrative. And when you select a driver, show the textboxs ..     
asked by 06.11.2018 / 16:50
1
answer

upload a flat file (excel) and using asp.net c # a web form load it and save the data in SQL

I would like to know how I could upload a flat file (excel) and using asp.net c # a web form to load it and save the data in sql, here I upload the file, I keep it in a local folder and now what I need is to save the content of the excel file in...
asked by 03.09.2018 / 18:54
1
answer

How to get the id of a row in GridView using a LinkButton?

How to get the id of a row when activating the LinkButton event ?, what I want to achieve is a delete query for sql server and get something like this; protected void GridView_RowDeleting(object sender, GridViewDeleteEventArgs e) { int us...
asked by 19.10.2018 / 03:08
1
answer

Alternative to the File Upload control of asp.net [closed]

I'm looking for an alternative to the File Upload control. I'm working on Vb.Net, asp.net, and webforms, in visual studio 2013. The control of asp.net has a single visual form, it does not allow drag and drop, and neither preview. Do you know an...
asked by 06.03.2018 / 23:56
1
answer

upload file to server and save path in BD with .NET

I have a web form within which one of its fields the function is to upload a file to the server (I already have a folder where the files are stored) and the path to save it in a BD. How can I do so that with just the button to send the form you...
asked by 22.11.2017 / 03:50