Questions tagged [aspx-user-control]

94 questions
1
vote
2 answers

ASPX repeater Inconsistent/Unexplained behavior

I get inconsistent behavior when using repeater. I have a repeater with textboxes inside populated from a DataTable. Everything works perfectly for a while then the following error starts to popup. Multiple controls with the same ID 'txt' were…
Ross
  • 63
  • 1
  • 1
  • 8
1
vote
1 answer

How can I create a user control having it's own css and javascript

I'm implementing something like suggested on this question, having a dynamically generated user control nested in another one. The issue I'm facing is that some controls have some javascript functions or css classes that are not being loaded. For…
Diego Rafael Souza
  • 5,241
  • 3
  • 23
  • 62
1
vote
1 answer

Custom AJAX User Control JavaScript Constructor "element" undefined

I am trying to create a custom AJAX user control that also has a client-side object. I followed the instructions in this link: https://msdn.microsoft.com/en-us/library/bb398906.aspx, but I keep running into issue. In my constructor, "element" is…
1
vote
0 answers

How to use Crystal Report viewer in ASP.net MVC without using .aspx?

my Question is how to use Crystal Report Viewer in ASP MVC without using ASPX Control. currently i'm using crystal report viewer with using ASPx but Report design and formatting is not alignment properly but when i export to PDF or other Format is…
Saqib Somal
  • 11
  • 1
  • 4
1
vote
0 answers

Tags in aspx file is not highlighted

I'm using VS2015. Whenever I create a webform, the tags in .aspx file doesn't highlight in general. SCREENSHOT. But, whenever I add a new line after the control's name, the tags get highlighted as show in the screenshot. What is the solution of…
Parvez M Robin
  • 154
  • 1
  • 3
  • 16
1
vote
1 answer

Sys.Application.add_init error in dynamic code

I am at a loss, and somewhat out of my depth. There is an older application that I have inherited, and my attempts to get it up and running have met with partial success. The extremely odd behavior I am seeing seems to be related to Internet…
BrianW
  • 37
  • 7
1
vote
2 answers

How to use jQuery to cause ASPxButton to click?

I have an ASPxButton: I have use jQuery to cause a click on the…
Trind 07
  • 839
  • 1
  • 9
  • 20
1
vote
1 answer

Unable to upload excel file records to SQL database using aspx

I have an Aspx code to upload excel file records to SQL database. I am getting an error as System.NullReferenceException: Object reference not set to an instance of an object using System; using System.Collections.Generic; using System.Linq; using…
0
votes
1 answer

How to set data table two data column as datasource in asp.net dropdown

I have a DataTable called cachedData. It values like this | COL1 | COL2 | | -------- | -------------- | | 12 |- | | -| 59| | 32 |- | | -| 63| I want to set these values to a dropdown without considering these as two columns. Ex : dropdown…
hotflix
  • 41
  • 4
0
votes
1 answer

Accessing FormData from ajax to aspx.cs code

on adding debugger in console I am geting that file is uploaded successfully but debugger is not coming to codebehind or we can say that code behind is not accessable this is my js file function uploadFile() { debugger var…
0
votes
0 answers

After making some changes to my .aspx.cs file of my project hosted at smarterasp.net, I can't see the changes in live

I am new to C# and ASP.NET and I need help. After making changes to my .aspx.cs file, I am unable to see the changes. Do I need to rebuild or delete cache? If yes, how can I do this when the project is live? I modified a .aspx.cs file and deployed…
0
votes
1 answer

how to call OnTextChanged in asp:TextBox when press any key

I used an asp:Textbox as a search box on the ascx page. Now it works when I press enter after inputting my text. I want to change it to smart search. (when I press a key, the OnTextChanged should call to code behind the function without clicking…
hotflix
  • 41
  • 4
0
votes
1 answer

How to Close a Panel control on a Page from a Control in a UserControl on that Page

I'm trying to close a Panel control in an ASP.NET web page by clicking a LinkButton that is in a User Control that is on that same page. I've tried the solutions found on this site and others and cannot get any to work. Any ideas? Code example…
ptownbro
  • 1,240
  • 3
  • 26
  • 44
0
votes
1 answer

Webforms: Prevent auto generation of property on user control when Generating Local Resources

I have an old project that needs localizing and which has custom user control and custom properties on the control. When I generate the local resource file for a page it adds in all the properties with a default value and I am having to go in and…
Barnsley
  • 117
  • 2
  • 17
0
votes
0 answers

C# ASPX: Cannot read properties of undefined (reading 'keydown')

I am not that familiar with ASPX. Once I save a form on my page, application keeps working as expected, except that I receive this exception in console. Exception I am not able to find the source of the problem or any place where this exception may…
PAJA 12
  • 1
  • 2