My .aspx page has an unordered list. I need to disable few items (< li >). Here are the two approaches that I tried. Both working in IE. None works in Firefox. Please help!
runs at server and the < li >s are dynamically created in the code behind. I declare a variable li as htmlGenericControl and assign the required attributes and add this li to the list. Before adding the li to the list, I used
li.disabled = true;
document.getElementById("li1").disabled = true;
hello guyz appreciate all your effort at codeproject. please take a look at my new website.
but i got the error bellow:
Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.
Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "Off".
Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's <customErrors> configuration tag to point to a custom error page URL.
I have an web based application. The content for the Home page has been currently mentioned in the HTML code for the Home page using <table>, <tr> and <td> tags. To change the content anytime in future, it needs to be changed in the HTML code.
Is there a way that we can pick up the content from some external place and get it reflected through the website. This ways, any change if required can be made at the external location without referring to the application's code.
Hi there. Im trying to change some position of hotspots of an Imagemap control depending on the theme used.
I noticed that you cannot use skin id for <asp:rectagularhotspot> and other hotspots. Any tips?
When we manipulate a url ( eg: 'http://www.codeproject.com/default.aspx' to 'http://www.codeproject.com/default.aspx/' [with a trailing slash] ), the UI gets distorted i.e, displaying the UI without styles specified in external css.
I'm generally looking for a bit of guidance to the scenario below as I am not sure of the best path to take.
I am creating an ASP site which needs to meet the following requirements:
•Will connect to a database
•Database data needs to be displayed in a custom layout (so no table/grid layout)
•Some of the displayed data will be read-only, so will only be displayed. Other data will need the option to be edited by the user.
•It is possible in the future that some of the read-only data will need to be updated to provide the ability to be edited by the user.
•Program functionality wise I need the ability to read certain values from the retrieved database data.
•Site needs to be as secure as possible.
A simple example could be contact details and car parts. The car parts will be read-only at present and the contact details will be the data that can be edited. In the future it is possible that the car parts could be edited by the user.
The issues I am trying to decide on are:
Which will be the best method to implement which will allow the least amount of code change in the future when the read-only fields need to be edited:-
•Should I go down the SQLDataSource route and bind these to a detailsview/datalist. (As I have only been using ASP for a limited time I'm not sure if I'm able to change the layout of these web controls enough using either CSS or the properties options to meet the display requirements of the site).
•Should I go down the DataSet and TableAdapter route where I can read the data retrieved from the database and the set 'Text' properties of, for example, label controls. I know this is probably the easiest method for reading certain values from the retrieved data.
I realise each method allows me to add in extra functionality in the future to allow the user to update/insert into the database, but I'm not sure which will be the best method for my requirements.
I am kind of leaning towards the DataSet/TableAdapter route, but feel I may not be aware to the full potential of the SQLDatasource method. Any help or advice is much appreciated.
Two years I was out of .Net and was doing code in Perl and do not know much about the latest happenings in the .Net world
Now, I got a requirement to code. The requirement is to change the database table data of field 1 to that of field 2.
They want to achieve it by displaying both the data of table 1 and 2 in a gridview. drag gridview1 over gridview2 and then gridview 2 will be overwritten by gridview1 also the underlying database table.
What are the possibilities of achieving it? I am told to use JQuery and Ajax.
Any directions to articles or suggestions would be much appreciated.