|
You can't load anything without loading it.
If you want to increase performance you have to examine the components of the page, and reduce the size of what's loaded.
---
b { font-weight: normal; }
|
|
|
|
|
You may want to research some AJAX topics for this.
only two letters away from being an asset
|
|
|
|
|
Why not cache the page....I hope this will help you to increase the performance.
Amit
|
|
|
|
|
Amit Kumar G wrote: I hope this will help you to increase the performance
Performance was not the issue.
"What i want to do is to show the logo and the menu first and then meanwhile buffer the other contents and then display it."
only two letters away from being an asset
|
|
|
|
|
Using a .net library (framework 1.1) I post xml to a https url which uses a certificate for authentication. When my library is called from a console application everything runs great. When it is run via asp.net I get the following error:
<br />
The underlying connection was closed: Could not establish secure channel for SSL/TLS.<br />
Using Marc Merritt's 'Windows Impersonation using C#' article as a reference I impersonated myself in an attempt to resolve the problem. This was unsuccessful. I appreciate any direction you can provide in resolving this issue.
Thank you,
|
|
|
|
|
Jason,
What operating system are you running this example on where it fails? If it's Windows 2000 LogonUser requires the SE_TCB_NAME priviledge. You will need to give the ASPNET user account Act as Part of the Operating System user right through the Local System Policy. This is not needed with Windows XP and Windows 2003.
|
|
|
|
|
I'm running Windows XP Professional Service Pack 2 - thoughts?
|
|
|
|
|
Looking at the LogonUser could the problem be with the dwLogonType (LOGON32_LOGON_INTERACTIVE) I am using?
|
|
|
|
|
Problem resolved - the certificate was setup for the current user but not for the local computer. Thanks for your help; do you happen to know of a good article on certificates?
|
|
|
|
|
I currently work as tech support for an online application development company and have noticed a very prominent issue with the application and was trying to find an expalantion as to the cause. Here is the issue. Users needs constantly be clearing their cache when using our application and I can not unnderstand why? Upon accessing our website the receive an errror which states "Application Error-Object reference is not set to an intance of an object.." the only way to fix this is to clear the users cache and heve them re-log back in. I would greatly appreciate it if someone could explain to me why this happens? What does clearing cache do? How can our developers make this better so the users do not need to be clearig their cache so many times during a session or everytime the want to logon.
Greg
Coding makes the world go round!!!
|
|
|
|
|
There is something in the code that makes an assumption that is not true. Find out what reference it is that is null, and why it is null.
---
b { font-weight: normal; }
|
|
|
|
|
Are any activex or third party control are consumed by app. Pl reply , may be then i can help you.
Amit
|
|
|
|
|
Yes, there are Active-X used by the system when users logging on. However, I am not sure what they are.
Greg
Coding makes the world go round!!!
|
|
|
|
|
ya , here you go. Probelm can be
1) Activex not downloaded properly (this can be because of some common reason like IE settings, user deleted the IE temp files etc....)
2) In your code, see how activex code is being refer. Prefer approach is use classId's.
But most commonly this happen because of issue one.
I hope this will help you.....
Regards
Amit
|
|
|
|
|
I can agree with you. Your explanation makes sense. But beyond your brief recommendation, how can that be fixed and how should I make a recommendation to Management so they can advise the programmer to review the way they look at it? I most agree with your first suggestion. Thanks
Greg
Coding makes the world go round!!!
|
|
|
|
|
When the application is run first time on the user machine, which is on a remote location, the application asks to download the activeX controls. This will initiate the process of installing the cab file related to a particular control to the user machine. All the information related to the control is downloaded in the form of cab file, which is used later to access the control.
The OBJECT tag in HTML file identifies the ActiveX control. If the control has been stored in a .cab file, OBJECT must include a CODEBASE attribute that specifies the URL for this .cab file.
The following sample HTML file demonstrates how the OBJECT and CODEBASE attribute are used.
Example:
<OBJECT CLASSID="clsid:abcdef….."
CODEBASE="http://webserver/test.cab"
ALIGN="CENTER" WIDTH=270 HEIGHT=26 ID="T1"><PARAM NAME="Interval" VALUE=1000>
<PARAM NAME="Enabled" VALUE=1></OBJECT>
Microsoft Internet Explorer 4.0 or later versions handle the OBJECT and the CODEBASE attribute in the following manner for accessing controls stored in cabinet files.
• Parses the OBJECT and searches for the CODEBASE attribute.
• Locates the .cab file identified by the CODEBASE attribute.
• Expands the files found in the .cab file.
• Copies the expanded files to the user's computer (the default directory is \windows\occache).
• Registers the objects and/or files that require registration.
• Calls the Component Object Model (COM) CoCreateInstance function to create an instance of the specified object.
For eample
Following is a Textbox Object created using the <OBJECT> tags in the XYZ application. The Classid, which is the universal id, which specifies the physical location of the library, is used to refer the date Object in to the ASP pages. This date TextBox object is having a standard input format and all the attributes are set using the <PARAM> tag.
Example
<OBJECT VALIGN=CENTER Class=List classid="clsid:CC696B63-4159-11D0-BDCB-0020A90B183A" id=InspectDate NAME=txtInspectDate style="HEIGHT:22px; WIDTH:70px; LEFT: 0px; TOP: 0px" VIEWASTEXT>
<PARAM NAME="_Version" VALUE="393216">
.......
</OBJECT>
But please note, here the story does not end. Because in your case, we need to find out which Activex control is creating problem. But definitely above things can be good start point for you.
Amit
|
|
|
|
|
I have dynamically created a datagrid with multiple textbox template items, which allows the user to update these columns. I have tried to use the code .findcontrol on the template column to received the updated data so I can update the data base. I receive null value from the findcontrol. Since I am creating the datagrid dynamically is there something else I need to do?
Thanks,
Sheri Zdroik
|
|
|
|
|
As I understand it, since you are creating the datagrid dynamically the viewstate must be rendered before you can use the findcontrol method. Try moving the findcontrol to the page prerender and see if that resolves the problem.
|
|
|
|
|
The DataSource for ASP page has two columns CustomerID and CustomerName.
If I set DataValueField to CustomerID and DataTextField to CustomerName on my ASP application, I get a list like:
C101, JAMES BRETT
C102, JANE HUGH
C103, BRETT HART
where the text before the comma (,) represents the CustomerID while the part after the comma (,) represents the CustomerName.
How can I change the separator (,) in this case to something different, say space? The asp:DropDownList class does not appear to expose any property for changing this?
|
|
|
|
|
John Gathogo wrote: I get a list like:
Where do you get the list? What do you do to turn the data into a list?
---
b { font-weight: normal; }
|
|
|
|
|
The dropdownlist is on the webform and is bound to the DataSource that contains the customers data. The dropdown is populated with the data when the form loads
|
|
|
|
|
What do you do to create the comma separated list of values, then? Have you really specified the DataValueField and DataTextField properly?
---
b { font-weight: normal; }
|
|
|
|
|
I have an ObjectDataSource need a ControlParameter point to a textbox control in a FormView. When I use "myFormView.txtName" as ControlID I got error "Could not find control 'myFormView.txtName' in ControlParameter 'cpTest'". How can setup this ControlID?
<asp:ObjectDataSource ID="odsMane" Runat="server" TypeName="Test" SelectMethod="GeTestList">
<SelectParameters>
<asp:ControlParameter Name="cpTest" Type=string ControlID="???" DefaultValue="-1" />
<asp:Parameter Direction="Output" Name="pTest" Type="Int16" />
</SelectParameters>
</asp:ObjectDataSource>
|
|
|
|
|
You need to use the $ or : as the delimiter instead of the . , also make sure that the control does exist by the time the control parameter's value is populated.
|
|
|
|
|
Hello
This is my first time posting here. I get the codeproject newsletters and love them.
Anyway, the problem..
The app that I am responsible for is written in ASP.net, and it's running on 2 load balanced servers behind an alteon LB. *Most* of the time everything seems to work properly, but sometimes, code from the source of the page is displayed at the top of the page, and when this happens the .css is not applied to the page and the buttons do not work.
This only happens occasionally, at seemingly random pages in the app; And - if the user (tester in this case) refreshes the page it redraws fine, and they can proceed without issue.
Due to the sparadic nature of the problem I'm thinking it may be a timing issue or a configuration issue on the server(s).?
I've attempted to google this, but I'm not sure what search terms to use to return results, any insights or ideas would be greatly appreciated.
Has anyone here seen this happen with their app? Or fixed it?
Thanks in advance..
Todd.
|
|
|
|