.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

User complains that disabled dropdownlist is hard to read

Posted By:      Posted Date: May 22, 2011    Points: 0   Category :ASP.Net

I have numerous dropdownlists that are disabled. they are light grey and the user claims that it is hard to read. How can I rectify this by making it darker or even a different color?

View Complete Post

More Related Resource Links

User messages without hard coding


Hi All,


How to manage user messages to avoid hardcoding messages accross the web application.





Dropdownlist as user control

HiIn an inventory application am using a dropdownlist for selecting the customer.So the customer names are populating from the database table(sql ie setting datasource). Now  I  think its better to create the dropdownlist as a usercontrol in asp.net so that i can just drag the customer dropdownlist to every page .Also i have to get the selected index change event and many more events.Can we achieve that?If so How. plz share the sample code.Thanks in advance

Task assignment to user without read access in 2007 results in no email to assignee, no warning to a

It appears (from observation and searching) that SP 2007 will not send a task assignment email when the assignee does not have read access for the assigned task and there is no warning when assigning a task to someone who will be unable to read it. I have not been able to find any mentions of attempting to address this quirk by either an item event listener or a workflow that would either prevent the assignment or task the originating user to fix the issue by either changing the assignment or having them added to the appropriate group.  I could see one done badly causing a cascade of tasks. The approaches that I've thought about are: Attempt to block assignment by hooking ItemAdding and ItemUpdating on the task content type.  In ItemUpdating, you could use SPListItem.DoesUserHavePermissions since the SPListItem should be there, but you'd may have check the list since I don't think SPListItem is available at that time.  I could see this causing problems when the assignment is via workflow or something that doesn't like other code interfering with its task creation. Hooking ItemAdded and ItemUpdated to assign a new task to the assigning user to either change the assignment or have the assignee added to the users with access to the site. Define a workflow which could be enabled for a list that would check if any new or modified task is assigned to users with

Document is read-only in SharePoint, but user sees "check out" option in Office 2007 / Word / Excel

I am finding that when there is a document library in SharePoint with checkin/checkout required, if a user with read-only ("Visitor") permissions opens a document from that library, the document will open as read-only in Word, Excel, etc., but the user will see the "Server Document" bar with the message "To modify this document, you must check it out" and the "check out" button.  When the user tries to check the document out, they are asked to authenticate, and then receive the error "Cannot perform this operation.  The file has been deleted or someone else has it checked out."    How is it possible to prevent a user with read-only rights in SharePoint from seeing the "Check out" option in Word or Excel?

Did a dumb thing with Sql Server Loging IS / Offline / Single Integrated User / sa disabled [dumb?]

Have been using a single database (targetDb) outside of the master with Integrated Security Fairly new installation.... sa login is not enabled (?) Default database for my integrated ID is this "targetDb" And then took targetDb "offline", instead of Detaching during a machine swap process. No I can get in to the server/database, because the IntegratedWindowsLogin cannot login, because the tragetDb (default database) is offline.  sa cannot login, either - because is is not active. What do we do?  Travis McGee

Can't add item using client object model of sharepoint 2010 with read only permission to user.



I have already developed Silverlight application in SharePoint 2010 using client object model.

But I have one scenario that user can comment on the item, so there is a update operation come in picture for user, but user have read only permission to site.

So please help me resolved this problem.

We can use Run with elevated privileges method in SP object model. I think Silverlight client object model don’t support this method.

Is there any alternative workaround to solve this problem?


how to create dropdownlist user control(acsx) and fill from database


how to create dropdownlist user control(acsx) and fill from database

why txtbox not maintain vaue if disabled by user.


Hi to all,

  my problem related to javascript and textbox on a webpage. 

  i have a  textbox on a web form. when the page loads the textbox has some value in it. on page, i disable the checkbox in javascript (if user unchecks a checkbox on the page.) Now when the user submits the page, the textbox has no value.


 please help me on this.



how to set read only properties to the particular info path form control based on user logged in?

how to set read only properties to the  particular info path form control based on user logged in?

Trying to read User credentials from Active Directory.....



single farm, wss 3.p sp2

webapp1 :- AD authenticated site (just one site collection/site in web-app). AppPool account is myServer\webApp1AppPool

webapp2 : It has one site collection/site and it is Forms-authenticated. AppPool account is myServer\WebApp2AppPool

Now within webapp2 I have a simple ASPX page that accepts user LoginID and on submit in the form, I want to read the USERLOGINID from web-app1. I am getting errors like "access denied" and it is running with SPSecurity.  Apart from checking within sharepoint user collection list (in webapp1) I also check within Active Directory using DirectoryServices.

I am thinking that the myServer\WebApp2AppPool needs to be defined somewhere within webapp1. Is it true?

I also tried SPSecurity by passing user token. For some reason the AppPoolAccount of web-app1 & web-app2 has to be different.

Please suggest.

I'm trying to change the contents of a dropdownlist when a user selects option 0 = "Other"


I'm attempting to change my select statement when a selection of "Other" is detected. The problem is that the select that executes on the page is always the original selection from the datasource definition. I've found an example where the "SelectCommand" value is changed in the code behind, but it is for a case where the dropdownlist is not in a template. I'm thinking that I have to bind to the template, but I'm not getting it to work.  (see the last couple of lines in the Page_Load code)

 asp code:


                <asp:DetailsView AutoGenerateRows="False" DataKeyNames="EmployeeTimeId" DataSourceID="sdsEmpTimeDetailsView"

                    DefaultMode="Insert" HeaderText="Add EmployeeTime"



Permissions for a user to read data and create Views


Hello Forum

is it possible to allow users to read data and create views without giving them dbo privileges?

The SQL Server version is 2008 R2.

Please click "Mark As Answer" if my post helped. Tony C.

MS SQL Server: Disconnect Users From Database - Kill User Session

If you ever wanted to restore your database from a SQL backup file (.bak), but there are still users connected to your database, the backup operation will fail causing the error: Exclusive access could not be obtained because the database is in use.

jQuery: Styling DropDownList Alternating Items (Rows)

In the following example, I will show how you can style any asp:dropdownlist very easily.

The example demonstrates how you can change alternating row items background color, using the fadeTo() to add a nice touch in the dropdownlist. You can change alt rows with a couple lines.

Choosing Between a User Control or Web Part for SharePoint

SharePoint will only display Web Parts on a page. However, there are publicly available shims that allow you to write user controls and have them be displayed as a Web Part. From SharePoint's point of view, the shim is a Web Part. From the point of view of the user control, the shim is simply a control in .NET that is including the user control

Working with DropDownList and ListBox Controls in ASP.NET

"In my application i am using dropdownlist to display all categories from a table. When the user clicks this control I display all records in that category. Category table also contains column called color.

I wanted display some categories in dropdown list different color and others in different color using ASP.NET."-Anonymous

ASP.NET DropDownList Web Control, Part 1

Anybody with much experience in ASP has written an include file function for populating the contents of a SELECT dropdown list with entries from a database. Some of the more advanced users have even gone so far as to add caching to their function to reduce database hits for these rarely changing menu options. Naturally, these same techniques are going to be used with ASP.NET, but with a new programming object model. ASP.NET provides a web control, the DropDownList, which can be used for the same purposes as our custom built SELECT tag from Classic ASP.
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend