webcontrols

Filetering data with WebControls and EF 4

Hi, I am trying to filter some data for a GridView Controls using a DropDownList Control. I am using EntityDataSource from EF 4 to query the Conceptual Model. I am not able to visualize in GridView my data when selecting the DropDownList (Where Entity SQL), nothing happen in the page and only the DropDownList show /( the GridView(. I d...

Web Controls - Validation

Hi, I am using ASP.NET 4. I would like check the length for a string inserted in a TextBox. Ex: Input Name no more than 255 characters. My questions: Which Web Controls for Validation I can use in ASP.NET? Web Controls for Validation validate both Client side and server side? I mean without Java script enabled the Control is able to ...

ASP.NET web controls - how to make evaluation or trial version?

I had to develop some custom ASP.NET web controls because I couldn't find ones already available for purchase with the functionality required. I was surprised I couldn't find what I needed and I'm thinking the web controls I developed may be useful to others. So I'm thinking maybe I can sell my newly developed web controls and make a bu...

How to set visible false for all webcontrols in a page

Hi, I am using asp.net 4. I need set up for all Panels WebControl for a page their visibility to false like uxTypesDisplayer.Visible = false; I need to setup visibility for all this panel without mention the single ID for every single panel. Do you know guys how to do it? Thanks ...

GridView UPDATE data

Hi, I am trying to manage ROLES in ASP.NET using ROLES MEMBERSHIP PROVIDER. I designed a GridView to manage EDIT for ROLES. I am not able to update the data when inserted in a TextBox. Belove the code for the event. Could you tell me what I am doing wrong, or maybe send me some good tutorials specifically for MEMBERSHIP? Thanks prote...

How to set custom property of webcontrol be translateable?

Hi all, I have webcontrol which has custom property. The property is set as attribute directly in aspx page. I use VS.addin "Resource Refactoring Tool" to generate resource files from aspx pages. Working well so far.The thing is it does not pick my custom attributes into translation. So I am asking, is there any specific attribute t...

Rich Image Field rendered as HTML in publishing page - SharePoint

Hello All, I have used SharePoint's Rich Image Field in my page layout. When I traverse into edit mode of the publishing page and add an image in the image field, the image is rendered fine. But, once I 'Check In' my page using the publishing console and publish the page, the html markup of the image is rendered. How could this be reso...

Webresource.axd doesn't load on my asp.net application running on my web farm

I'm working on an ASP.net web application. I'm getting errors on some of my pages where I get runtime JavaScript errors. I've narrowed the problem down to a single ASP Menu control on the master page. I created a blank page with just the ASP Menu control. The ASP Menu control is bound to Web.sitemap. The page intermittently gives ru...

Sharing value from child to parent control.

I am relatively new to this, but here is my problem. In asp.net, I have a parent and a child control. Within the child control I have a dropdown list. Based on dropdown list's selected value I would like to toggle Visibility of Panel in parent control. For instance if I select Show in child control dropdown list, I need to pass true to ...

using PropertyDescriptorCollection works in Winforms but not Web Control - how to fix?

Hi All. First of all I have a datasource in my winforms project where I needed to bind the text in a checkedlistbox to a nested property in this case the "Name" object[0] --> type of ILink --> Name = "adobe" object[1 ]--> type of ILink --> Name = "flash" To accomplish this I found a smarter guy here who led me to a structure like wi...

Assign attribute web control.

Hi all. I have dropdownlist with text to display and value as hidden value. I want keep changing value tooltip as value when user select other selection. Well, I am already try this code but not work properly: <asp:DropDownList ID="ddlBranch" runat="server" Width="350px" ToolTip='<% ddlBranch.Value %>'> Display in firefox dropdownli...

Find out a CHECKBOX in a DATAGRID in ASP.NET

hi, I have a GRIDVIEW and with several CHECKBOXS. When i selected a CHECKBOX I need run some code. To detect it, I use an EVENT HANDLER for the CHECKBOX included in a GRIDVIEW. I cannot access the CHECKBOX with my wrong code. Do you have any idea what I am doing wrong? Thanks for your help. Bye ASPX <asp:Label ID="uxMessageDisp...

Asp.net MembershipUser retrive data from GridView

Hi, guys. I am puzzling with this code. I need to set IsApproved = true; for a User (using MembershipUser) when I select a CheckBox in a GridView. The event handler uxRoleCheckBoxSelector_CheckChanged it is setted on the actual CheckBox. Could you tell me guys what I am doing wrong? Script does not generate any Exception but does not...

How to use DataKeys and DataItemIndex

Hi, I need some advice how to use DataKeys and DataItemIndex fro a GRIDVIEW. I need take the values for an item "ROW" in a "GRIDVIEW" and associate it to "MembershipUser". I get an error "Make sure all arguments to this method have valid values as defined by the invoked method." Any ideas??? Thanks for your help BYE! protected void ...

Is there a web control to dynamically generate a table of contents?

Say I have a basic page like so: <custom:TableOfContents /> <h1>Some Heading</h1> <h2>Foo</h2> <p>Lorem ipsum</p> <h2>Bar</h2> <p>Lorem ipsum</p> <h2>Baz</h2> <p>Lorem ipsum</p> <h1>Another Heading</h2> <h2>Qux</h2> <p>Lorem ipsum</p> <h2>Quux</h2> <p>Lorem ipsum</p> Assume all the header tags exist as se...

NullReferenceException on web user control

Hello all! First time posting. :) I'm a pretty new developer so I'm not well versed in common ASP.NET problems. As a test, my boss asked me to convert a (not very critical) ASP.NET site from 1.1 to 4.0. Well, it's not extremely difficult and things are going well so far. However, I've hit a small snag. I keep getting a NullReferenc...