|
|
Hi
I have a user control, which contains 3 panels, which of course lose their scroll positions on post back of the page.
From my own investigation, I know I need to apply some javascript through the onload method of the body tag, and I want to use hidden fields to save the scrollbar positions. However, I am already using this method on a different user control for a different purpose.
Therefore, I have a few questions, which I need help with:
1) How do I pass in the names of the 3 panels on postback?
2) Get scroll positions of those 3 panels, save it the hidden fields, get it back and apply back to the scroll bars?
3) Apply another javascript function to onload method of the body tag in addition to the one that is already there?
Can anyone help?
|
|
|
|
|
If it is only scroll position you are interested in, try putting
MaintainScrollPositionOnPostback="true"
in your @Page directive.
|
|
|
|
|
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
|
|
|
|