Questions tagged [webusercontrols]

22 questions
10
votes
3 answers

“maintainScrollPositionOnPostBack=”true“ ” does not work with google chrome

Web.config Level => pages maintainScrollPositionOnPostBack="true" /> Page Level => <%@ Page MaintainScrollPositionOnPostback="true" %> Code Level => Page.MaintainScrollPositionOnPostBack = true; Browser Level => browser id="Chrome"…
4
votes
2 answers

jQuery UI Button Radio is Hard to Select Doing Long Mouse Clicks

We are just building a page with using jQuery UI radio buttons and we realized some strange behavior while doing UI testing. Some of the users have problems activing the radio buttons through clicking. Particularly, it turns out that they tend to…
3
votes
3 answers

How to drag a UserControl into the Toolbox?

i have an ASP.net UserControl that i want to use: Following the instructions in Visual Studio: There are no usable controls in this group. Drag an item onto this text to add it to the toolbox. i try dragging the item onto that text to add it to…
Ian Boyd
  • 246,734
  • 253
  • 869
  • 1,219
2
votes
3 answers

Loading User Controls (ascx) from other User Controls

I have a UserControl (ascx) that, depending on the user's credentials, will load another UserControl (ascx). Currently the control to be loaded, contains a special navigation menu. I am using this code: UserControl jmNav = …
Mark Bogner
  • 451
  • 1
  • 5
  • 19
1
vote
2 answers

Passing Value Between Web User Controls - DifferentQuestion

I want pass values between web user controls without writing any code to the main page which user controls are put on. I do something like that but after doing that I need to click double to pass the value. The example of what I've done : Department…
Tarik
  • 79,711
  • 83
  • 236
  • 349
1
vote
0 answers

Call C#(codebehind) with Ajax in AX 2012 Enterprise portal

It seems like the only possible way to call a method in codebehind is with Ajax. Ajax calling WebMethods or ajax calling an asp webservice (asmx). The problem is that I'm working with Microsoft Dynamics AX 2012 Enterprise Portal and creating…
1
vote
1 answer

How can resolve Error: "Could not load type 'Microsoft.SharePoint.WebControls.SPGridView" SharePoint 2010?

Following error comes when creating a WebPart In sharePoint 2010 Server. Web Part Error: Unhandled exception was thrown by the user code wrapper's Execute method in the partial trust app domain: System.Web.HttpUnhandledException: Exception of type…
1
vote
1 answer

Finding and accessing elements of a WebUserControl

I am creating a WebUserControl in ASP.net and want to be able to access elements of that control later. When I access them though I am trying to access them together. For example, adding a CheckBox and a table to a control and then finding the…
mwright
  • 4,099
  • 7
  • 30
  • 40
1
vote
1 answer

How to have an asp.net ajax control automatically reference css files

I was wondering if its possible to have an ASP.NET AJAX custom usercontrol 'register' its use of CSS files like it does with JS files. ? Eg: Implementing the IScriptControl interface allows for the GetScriptReferences() to be called by the Script…
mrwayne
  • 627
  • 6
  • 15
1
vote
1 answer

No IntelliSense for Web User Controls (ascx)

We recently migrated our ASP.NET web application from .NET 3.5 to 4.0. After migration there is no intellisense for our web user controls and therefore we can not add event handlers in the page using the user control. The same with newly created…
1
vote
1 answer

Is there a way to have a user control ensure its page has a certain css file?

(Please note that I'm not talking about this: How to make user controls know about css classes in ASP.NET ) I have some user controls which css styles comes from a small .css file. I would like to know if there is a way for the user control to tell…
Tory
  • 520
  • 3
  • 13
0
votes
1 answer

create dynamically web user control from a simple cs file (not aspx.cs ) in asp.net

I am writing an web app in asp.net using .net 3.5 and vs 2010; I creatd a web user control (.ascx), and i want to insert it to a panel taht i created in a simple cs class (not a aspx.cs), my class is in App_Code, the problem is that the class dous…
user723686
  • 265
  • 1
  • 15
  • 21
0
votes
0 answers

ASP.Net UserControls not firings Any AutoPost Back or Click Events

I have ASP.Net Project which developed in VS 2017 Enterprise Edition. What happened I upgraded the SQL Server Data Tools and VS Updates. After that my ObjectDataSource DataAdapter Wizard for my StoredProcedures start giving an error with SQL. (it…
0
votes
1 answer

Create directory of custom webusercontrols

I am very exited to find out how to do this. I have created 10 custom webusercontrols which is meant to be used on several custom sites on my website etc. and I want to find out how I can make a directory which will work the same as the asp.net. At…
user557419
0
votes
2 answers

Text box Control not getting initialized inside UserControl(.ascx page)

I have textbox inside a user control(ascx page) like this : Now when I try to access this textbox from code behind, it is not getting initialized and shows as…
V. Israni
  • 13
  • 6
1
2