|
This will not work as it only applies to the browser scrollbar
|
|
|
|
|
Hi..
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!
Apporach 1:
============
The
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;
Approach 2:
===============
In javascript onpageload,
document.getElementById("li1").disabled = true;
both are not working in FF. please help.
Kit.
|
|
|
|
|
hello guyz appreciate all your effort at codeproject. please take a look at my new website.
but i got the error bellow:
Runtime Error
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".
<!-- Web.Config Configuration File -->
<configuration>
<system.web>
<customErrors mode="Off"/>
</system.web>
</configuration>
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.
<!-- Web.Config Configuration File -->
<configuration>
<system.web>
<customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>
</system.web>
</configuration>Tunsten
|
|
|
|
|
and?? I know the language. I've read a book. - _Madmatt
|
|
|
|
|
Try this
Customer errors can be handled be turned off but I prefer them to be turned on as below.
<customErrors mode="Off" />
Or
<customErrors defaultRedirect="ErrorPage.aspx" mode="On">
<error statusCode="500" redirect="servererror.aspx" />
<error statusCode="404" redirect="filenotfound.aspx" />
<error statusCode="403" redirect="AccessDenied.aspx" />
</customErrors>
|
|
|
|
|
Thank you Rana.
I have fixed the error with your suggestions.
I will give you update...
Thanks.Tunsten
|
|
|
|
|
Hi,
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.
Please advise if there is any solution for it.
Thanks.
|
|
|
|
|
how about reading from an XML file?
|
|
|
|
|
Our site is quite slow when user logs inn ? and the speed is pretty good when browsing without logging inn ?
So is there any tool that i can use to test or how to figure out what is causing this ?
Thank you
Andyyy
|
|
|
|
|
You can install one FireFox Addin "YSlow" to have a quick look. Also check Code of login, that database call or other stuff may create performance issue.
|
|
|
|
|
Are you storing huge data in session or viewstate once user logs in? You can also check sql profiler if there is any database related bottlenecks.
There is no foolish question, there is no final answer...
|
|
|
|
|
I need to create a web service which receives the code below.
Problem is, if I create a webmethod with the name OTA_CancelRQ how do I pass in the XML children (or, not as importantly, the attributes on the main XML node?)
Any help or direction would be most appreciated. (I do not have the option of changing the XML I receive)
<OTA_CancelRQ CancelType="Cancel" Target="Production" TimeStamp="2007-07-22T11:33:30.125" Version="1.0" xmlns="http://www.opentravel.org/OTA/2003/05">
<UniqueID ID="MYPROPCONF471" ID_Context="CrsConfirmNumber" Type="14"/>
<Verification>
<PersonName>
<GivenName>Ben</GivenName>
<Surname>Franklin</Surname>
</PersonName>
<Email>ben@benfrankl.in</Email>
<TelephoneInfo PhoneNumber="408-125-5689" PhoneTechType="1" PhoneUseType="4"/>
<AddressInfo>
<AddressLine>1, Norwalk Drive</AddressLine>
<AddressLine>Near 280 South</AddressLine>
<CityName>San Jose</CityName>
<PostalCode>95129</PostalCode>
<StateProv StateCode="CA"/>
<CountryName Code="US"/>
</AddressInfo>
</Verification>
<TPA_Extensions>
<BasicPropertyInfo HotelCode="MYPROPERTY"/>
</TPA_Extensions>
</OTA_CancelRQ>
|
|
|
|
|
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?
|
|
|
|
|
Hi All,
suppose i have one table which has
pk and name column
so when i insert data into the table
1 a
2 b
now if i perform insert operation
then next
pk will be 3 so how to get this id
MAX function will not work because user can insert from more than 1 place
Thanks and regards,
Amit Patel
|
|
|
|
|
Use @@IDENTITY or SCOPE_IDENTITY
|
|
|
|
|
can u please give me example??i will be very thankful to u.
Thanks and regards,
Amit Patel
|
|
|
|
|
I hope u r using SQL Server, and SP for inserting records, after the insert statement return @@IDENTITY
BEGIN
INSERT INTO TABLE VALUES (A,B,C);
RETURN @@IDENTITY
END
|
|
|
|
|
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.
Please Help
|
|
|
|
|
but why you need to do it.
|
|
|
|
|
In the codeproject site, if we enter trailing slash the website will redirect to 'page not found'. I want similar option
|
|
|
|
|
for this you have to done a setting in iis i.e. if any trailing slash comes even after directory page will redirect to some defined page.
|
|
|
|
|
Can u help me how to set this on IIS
|
|
|
|
|
Hi
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.
Thanks
|
|
|
|
|
Hi guys,
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.
Thank You!
-Afsal
|
|
|
|
|