I've two User Control, in both control I've in ascx some Javascript that call some code method.
The controls are practically identical but for the first (UploadPhotoHTML5.ascx) I've some errors like 'variable' is not declared, for the second (UploadPhotoSWF.ascx.vb) the Javascript code don't alert me with anyu errors.
(UploadPhotoHTML5.ascx with errors highlighted)

(UploadPhotoSWF.ascx.vb without errors)

Full code is browsable here: https://github.com/Scippy/Property-Agent/tree/DNN9-Update/Controls
I've tried to clean obj directory and rebuild but nothing.
I'm not sure what's causing this...any ideas to fix it?
'variable' is not declared error for ascx web control
180 Views Asked by scippy At
1
There are 1 best solutions below
Related Questions in ASP.NET
- Implementing Azure AD B2C Authentication in .NET 8 Blazor Project (RenderMode: InteractiveAuto)
- Azure Application Insights Not Displaying Custom Logs for Azure Functions with .NET 8
- IIS Rewrite Module exclude bots but allow GoogleBot
- Angular 16 sending null values to API
- I am the domain admin, newbie, how do I connect youtube.com on my domain?
- Dropdown list showing SQLServer2005SQLBrowserUser$DONSERVER instead of Active Directory group name in ASP.NET MVC C#
- ASP.NET Identity, Losing Ability to Login until Application Pool Recycles
- How to unprotect ASP.NET FormAuthentication cookie
- How does it work using ASP.NET FormAuthentication
- What is the purpose of a completely standalone 'this'?
- Is there a way to read .csproj PropertyGroup variable in c#
- MSBuild trying to copy different dll with similar name into project sporadically
- Minimizing IdentityServer4 Round Trips in Microservice Architecture with Ocelot
- Azure AD guest account in web app authentication user claims data
- Receiving 400 bad request on post when customer auth handler is used
Related Questions in VISUAL-STUDIO
- The current .NET SDK does not support targeting .NET Core 6.0. Brand new WPF Project VS Community 2022 17.9.5
- Dotnet Run is not working but the application is running in Visual Studio
- Is there a way to support Tailwind @apply in Visual Studio?
- How can I eliminate compile warnings using ZLib in Visual Studio
- C++(or Visual Studio) saving the file will not preserve the original file contents
- VS Community 2022 cannot install dotnet-ef when i try to publish
- Visual Studio 2022 convert spaces to tabs on checkout and back to spaces on checkin
- What should I do if Visual Studio has a restriction on creating files with a long name or a long path to these files?
- Command line error D8036 - not allowed with multiple source files with node-gyp and VS2022
- Migrate Old VS 2015 .suo file to the New VS 2022 DocumentLayout.json
- How to make one executable visual studio, that users can run?
- Use tabs instead of spaces in .csproj file in Visual Studio 2022
- Unity - scrollview/dragging breaks after specific scene inactivity
- How to make Visual Studio 2022 project launch Windows Terminal instead of PowerShell?
- Why is 'EDITBIN /STACK:2097152 w3wp.exe' cmd is giving me an LNK1342 error?
Related Questions in WEBFORMS
- how do I change a URL with form to include additional selection
- How to unprotect ASP.NET FormAuthentication cookie
- How to add default text in output to filled fields in Contact Form 7
- How does it work using ASP.NET FormAuthentication
- asp JQuery Setting Runtime Variables - undefined
- vb.net shared variable make problem one member can see other member information
- Getting certificate exception in asp.net webforms while sending email by using sendgrid
- Debugging Issues in ASP.NET 4.7.2 Web Forms Deployment on IIS Server After Code Modification
- Global or accesing global variable datetime string dynamically in web form application using Visual Studio 2022
- Web Forms aspx - PostAsync Web API
- How to execute client-side code after ajax FileUpload event on ASP.NET?
- Find Asp.net Web Forms control in script in Js (JavaScript) file
- How to call a method directly that resides in another .aspx.cs or .ascx.cs page within an ASP.NET Web Forms project?
- Exception System.Web.HttpCompileException (0x80004005) error CS0234: The type or namespace name 'Services' does not exist in the namespace 'Cnbp.Cbk'
- Getting parse error in aspx page while trying to load dynamic name to asp:panel ID section
Related Questions in WEB-CONTROLS
- Is there anyway to replace a Web Control with an HTML template string?
- Motion Eye wont Toggle Motion Detection through Web Control
- Even If I wrote all the code, After checking the checkboxes nothing is being added to the listbbox
- VBA excel 64 - webbrowser control crashes when open a pdf
- asp.net controls that may appear outside of form tag with runat="server"
- Is there an Event that is triggered when all page controls are loaded and databound?
- how do i add a style to a single items border in a datalist in asp.net from code behind? (i want a single border color to be different)
- Remove all inline scripts from ASP.NET project
- How to dynamically set width of Checkbox list bounded to a data source in a table?
- How to do Layout with Microsoft FAST controls
- Can i use PasswordRecovery Control ASP.NET (Membership) Without Wizard structure? Without SuccessTemplate and Question Template?
- asp.net code behind accessing button using button value
- Display HTML from Literal Control
- Media player for linux (ideally for ARM architecture) with web based frontend that plays the media on the server rather than on the client
- Extending DropDownList in ASP.NET Webform
Related Questions in ASCX
- Exception System.Web.HttpCompileException (0x80004005) error CS0234: The type or namespace name 'Services' does not exist in the namespace 'Cnbp.Cbk'
- I update a row in a repeater it will update correctly. when I refresh the page the previously updated row is populate again
- ASCX User control not showing up
- How to reach the grid component of inner pages ascx files from outer aspx file
- FileUpload HasFile is false after the CustomValidator and even with the PostBackTrigger
- how to call OnTextChanged in asp:TextBox when press any key
- JS onSave event is not working in Microsoft Edge. what are the alternatives for it?
- ascx User controls form is is not editable for some input data, so need to hide instructions if so
- ASP - how do I handle when a particular child ASCX is reloaded while visible?
- Cannot successfully add a Button to an ascx User Control
- Navigate to the page on asp website where code is instantiated
- In ASP.net, is there a way to give a value to a validator in your .ascx file from the related .ascx.cs file?
- Creating multiple tables dynamically on ascx page asp.net
- How to call button click function in ascx
- When I type in Chinese got error as "Multibyte character not supported"
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
It'is Visual Studio Issue, the same project opened with Visual Studio 2019 work perfectly, on the Visual Studio 2017 the issue is still there!