Hello folks, I've integrated my ASP.NET website with a portal on web. My website opens in a frame provided by the web portal. The portal uses https protocol. Now when i open my website IE displays a security warning saying "This page contains both secure and un-secure items. Do you want to display the non secure items". When i hit yes every thing works fine. What should i do to remove this security warning. My ASP.NET web page has a user control. Does the security warning has anything to do with that control? Thanks in advance....
hatim_ali
Posts
-
security warning with https -
security warning with httpsHello folks, I've integrated my ASP.NET website with a portal on web. My website opens in a frame provided by the web portal. The portal uses https protocol. Now when i open my website IE displays a security warning saying "This page contains both secure and un-secure items. Do you want to display the non secure items". When i hit yes every thing works fine. What should i do to remove this security warning. My ASP.NET web page has a user control. Does the security warning has anything to do with that control? Thanks in advance....
-
Client side call backI have a process at server side which takes around 120 minutes to execute. When i post an ASP.NET page the process is invoked at server side. Now i need a call back mechanism that as soon as the process completes processing at server it call back a client side script's (javascript) function to report success or failure accordingly. I read that ASP.Net v2.0 has built in support for client call backs. How can this be done with ASP.NET 1.0. best regards...
-
Strong name to Interop assemblyI had read about al.exe but it requires .netmodule file which obviously i don't have because the source assembly is an interop assembly. Any other workaround ?? Thanks...
-
get name of form / html pageUsing QueryString. For example if you have links to webform.aspx on a.htm and b.htm then modify the link's href attribute by including information in the URL about the source. For example: Link on a.html will Web Form Similarly, Link on b.html will Web Form Then write some code on webform.aspx code behind to take appropriate action. For example: switch(Requeset.QueryString["Source"]) { case "a.htm": // some action break; ... ... } Hope it helps.
-
Strong name to Interop assemblyHello, I have a class library project which has a class supporting COM+ transactions. This class library project refers a COM interop assembly. Now i need to register the assembly after compiling this class library projects into GAC. Registrering it into GAC requires tthat the assembly should have a strong name. Now when i use [assembly: assemblykeyfile("file.snk")] attribute and compile the class library project it prompts me that the interop assembly should have a strong name too.. Now how to assign that interop assembly a strong name whehn its source is not accessible to me ?? OR how compile successfully this class library without assigning strong name to interop assembly. Any other workarounds ?? Thanks, Hatim Ali.
-
HTML with XSLThi folks... I apologize for reposting but some code was trimmed in the previous post... I need to change the color of tr to red when @result attribute contains "failed". When i executed above snippet i got the following error. "End tag 'xsl:when' doesn't match the start tag 'tr'"?? Any workarounds ?? Thanks in advance... Regards, Hatim Ali.
-
XSLT - HTMLhi folks... I need to change the color of tr to red when @result attribute contains "failed". When i executed above snippet i got the following error. "End tag 'xsl:when' doesn't match the start tag 'tr'"?? Any workarounds ?? Thanks in advance... Regards, Hatim Ali.
-
how to handle a mass of lables in C#?hi.... Enums Members[^] Arrays in C#[^] best of luck...
-
how to handle a mass of lables in C#?for(int i=0; i < this.Controls.Count; i++) if(this.Controls[i].GetType() == typeof(System.Windows.Forms.Label)) MessageBox.Show (this.Controls[i].Name);
-
Design Question - Business Object Layer and Data AccessYou Wrote: The problem I see with this approach is the following. Say my MDI GUI displays a list of all Companies in a TreeView on the lefthandside. On DoubleClick the selected BusinessObject gets displayed in a new "Document Window" which hosts a PropertyGrid control. Now my user opens 3 Companies and changes the data of all of them. How would I then handle the situation when he only wants to save to of those documents? In My Opinion: Save one on one basis that is "Save" can be done on open screens only. When your application user double clicks the company tree view a "document window" with company details with a save button will be presented to user. If the user want to persist the chages, he'll hit save and your code will invoke save inteface on the business object. This will save you scanning all objects in collection and will also save you from maintining that which objects have been changed. Some other suggestions: Creating objects for all companies may not be an optimal idea. Only fetch company names and Identification info (IDs) from database and render it to tree view. Obviously these objects will be lightweight as no company info is fetched. Now, if your app user selects a company, create a Object of Class Company with all the company details and render it to user. hope it helps, Hatim Ali.
-
Design Optimization1. Even if the controls are important you can create a wizard sort of User Interface by logically breaking up controls on several screens. 2. You can either create controls at runtime at some instance and then creating adding controls to your form dynamically. This will speed up your form initialization because you are not creating all 100-150 controls at form load. hope it helps.... best regards, Hatim Ali.
-
Web.Config ChangesThanks for the reply... What do you mean by restart?? Lets say i have 10 users login to my web app. and i change the web.config file. What will happen?? The sessions of those 10 users will expired and they have to relogin or something else... ??
-
Singletonhi, I need a global store for storing error messages. It could be done using singleton. Now whats the difference between the following two. 1. Implement singleton pattern. 2. Creat a class. Make its contructor private. Expose the functionality using static functions. In singleton pattern a single object is created but in 2nd approach no object is created. Which approach is better ?? Thanks...
-
using dllsclass library is what you are asking...
-
using system.xmlYou can either use XmlDocument Class or XmlTextReader / XmlTextWriter Classes for reading/writing XML other than dataset. hope it helps
-
Web.Config ChangesHi, An ASP.Net application is running on a webserver. Now i change the configuration setting in web.config file. When the application will reflect configuration changes in web.config ? Regards.
-
Exception on Response.RedirectHi, Doing Repsonse.redirect causes an Exception with following message "Thread was being aborted". Do some one has any explanation for this ?? I need to catch any runtime error that occured and then redirect to a generic error page and in case of no error redirect user to another page. Now every time i do Response.Redirect, even on clean(no errors) execution, i got this exception. How to avoid this ?? Thanks in Advance, Regards.
-
XSLT refererring attributesHi, I have some XML generated on fly. I only know the names of elements. The attributes in those elements can have different names in different scenarios. Even the number of attributes in those elements may differ. Can i write a single XSLT to convert these dynamically generated XML into my desired format ?? Note: I do know at design time the name of elements, but i don't know the name of attributes and number of attributes in the element. This could be done in programming languages by looping through all the attributes. Can this be done in XSLT ?? Thanks in advannce, Hatim Ali.
-
Value Type vs. Ref TypeHi, Which one is faster ?? Value Type or Reference Type. Regards, Hatim Ali.