Skip to main content

All Questions

Tagged with
0 votes
1 answer
37 views

Having Issue with AjaxCalendarExtenderControl.Add in ASP.NET

Having Issue with AjaxCalendarExtenderControl.Add in ASP.NET The following code: Private Sub AddCalendarExtender() AddControlToCollection(AjaxCalendarExtenderControl.Add("Calendar" & ...
dibello.4's user avatar
0 votes
2 answers
70 views

VB.NET Button Method not setting Visibility to True

In VB.NET Button click event I am unable to set Visible = true. In all examples in the code below the Control visible property is set to False although the code is setting it to True? Does anyone ...
dibello.4's user avatar
0 votes
0 answers
29 views

ASP.Net (not Core) Button Controls to stop postback

Unfortunately I have searched everywhere and no solutions have worked thus far. The company I work for still uses the old ASP.Net and wont pay to upgrade all our code to ASP.Net Core. The version of ...
Scott 's user avatar
  • 11
0 votes
0 answers
45 views

Dynamic button is not calling the assigned function in VB.Net

I have created an e-comers website but on the view cart page i have dynamicly created delete buttonss but these buttons do not call the DeleteButton_Click function Imports System.Data.SqlClient ...
Abdullah Alamgir's user avatar
1 vote
1 answer
106 views

How to get correct <button> id's on postbacks?

I'm generating some dynamic html based on database content, and inserting it as a LiteralControl in one of my webforms pages. it all looks fine, and works, with the exception of a couple of buttons ...
Jim's user avatar
  • 33
0 votes
1 answer
433 views

Creating Webform IDs dynamically within loop

New to asp.net web forms and I'm having a problem figuring out how to control variables within the loops in my HTML. For Example <%for (int j = 0; j < Model.Route.Length; j++) { %> <...
Wumbo's user avatar
  • 90
0 votes
0 answers
141 views

How to fix: cs1061 error dealing with Control and Dataitem

This is my code line: <asp:TextBox Text='<%#DataBinder.Eval(Container.DataItem,"Date", "{0:MM/dd/yyyy}")%>' ID="txtDate" runat="server" placeholder=&...
Sgg's user avatar
  • 3
0 votes
2 answers
252 views

Is it possible to add a control dynamically inline with innerhtml?

Does anyone know how I can add a control dynamically inline with innerhtml from code behind then capture the value when a button is clicked? Not sure how to explain this so I created example code. ....
Sam's user avatar
  • 1
1 vote
1 answer
1k views

Set dynamic value for property of ASP.Net Control

I'm trying to pass a dynamic variable into a control: <% foreach(var product in CartModel.Products) { %> <kc:Warning runat="server" id="Warning" ProductId="<%= ...
Erica Stockwell-Alpert's user avatar
0 votes
1 answer
500 views

How to add new line items in a APS.net webform and submit to database

Please note: I do not necessarily need working code. I just don't know how to word what I am looking for to even find an answer on the web. I guess i'm just asking for a little guidance on what kind ...
Chris F's user avatar
  • 15
0 votes
2 answers
679 views

Dynamically created Labels and TextBoxes are unable to be positioned

I am building a dynamically created popup window that contains a dynamically created grid and controls (Labels and TextBoxes). The grid part is working correctly, and not an issue. However, the ...
Patrick Davis's user avatar
0 votes
1 answer
245 views

A better ReportViewer control?

We've been struggling with the Microsoft ASP.NET WebForms ReportViewer control for years now and are about to give up. We could just direct our users to the native SSRS site/page for each report but ...
jross's user avatar
  • 59
0 votes
0 answers
55 views

ASP.Net Cast Control to TextBox and fire event

in the main page i call this class to change the visibility of the control Web_Helper.ChangeStateControl(DESCRIZIONETextbox, false); in WebHelper after i changed the visibility i need to fire the ...
Marco Santini's user avatar
0 votes
1 answer
345 views

Can not access text of dynamically created textbox after button click

I have a problem. I have an aspx page with one ContentPlaceHolder. In that ContentPlaceHolder i have one div and one button, like following: <asp:Content ID="Content2" ...
Brewsli's user avatar
  • 127
0 votes
1 answer
212 views

Creating Dynamic button C#

i'm working in ASP.NET in visual studio. I tried to dynamicly create a list of buttons in C# and make its appears on an update panel, and it worked. My problem is the following : i've created this ...
Ken's user avatar
  • 1

15 30 50 per page
1
2 3 4 5
82