.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Post New Web Links

Web Q&A: Get Authentication Type, Get Screen Resolution, and More

Posted By:      Posted Date: August 21, 2010    Points: 0   Category :ASP.Net

More Related Resource Links

Setting Screen Resolution



  I am developing a website in asp.net.How can i make my web pages view same in different screen resolutions.I am using 1024*768 resolution

Screen Resolution.



I am developing a web site which is targeted for 1280x800 screen resolution.

Right now i developing the site in 1024x768 resolution.

I am using percentages only with respect to width & height.

Please help me in achieving this for 1280x800 resolution.

Thanks is advance.


Using Windows 7 my screen resolution changed.

My screen resolution changed to 1280 X 720.The relavent sreen resolution section in windows only now allows me a max of the above.I am using NVIDIA Ge Force 9800GT graphics and ASUS VW220 monitor.Will appreciate any help.Cheers.    

Could not load type 'System.Security.Authentication.ExtendedProtection.Configuration.ExtendedProtec

I have a windows service that runs on client machines and connects to a WCF service on a server.  This windows service seems to work fine on Windows XP, Vista and 7  machines, but when I try and run it on a Server 2008 R2 machine I get the following error: System.Configuration.ConfigurationErrorsException: An error occurred creating the configuration section handler for system.serviceModel/bindings: Could not load type 'System.Security.Authentication.ExtendedProtection.Configuration.ExtendedProtectionPolicyElement' from assembly 'System, Version=, Culture=neutral, PublicKeyToken=b77a5c561934e089'. (C:\Program Files (x86)\MyFolder\MyApp\MyAppWinSVC.exe.Config line 4) ---> System.TypeLoadException: Could not load type 'System.Security.Authentication.ExtendedProtection.Configuration.ExtendedProtectionPolicyElement' from assembly 'System, Version=, Culture=neutral, PublicKeyToken=b77a5c561934e089'.    at System.ServiceModel.Configuration.HttpTransportSecurityElement.get_Properties() I have the 3.5 sp1 feature installed. The only thing I have found online that is remotely similar is this MS hotfix: http://support.microsoft.com/kb/2262911 But when I try and apply it, it says that it isn't for my computer. Does anyone have any ideas how to resolve this issue?

ajax modalpopupextender panel width in different screen resolution

I have a modal pop up window I want to fix the panel width, but  when screen resolution is changed then panel width is also changed and the content is shown out of pop up window. Is there any way to fix the height and width keep fixed in different screen resolutions ?  

Fixed Div and Screen Resolution


Hi All,

I am using Visual Studio 2008 + Enterprise Library 4.1 + SqlServer 2008 for development. I have a fixed div which I am using as a footer in my application. the CSS code is below...Problem is that if I browse the application on 1024 x 768 pixels it works great but when i change the resolution up to 1280 x 800 pixels the image inside the div change its position. I want this to appear same on every resolution...any suggestions or workaround.

     bottom: 0px;  
     left: 91px; 
     width : 783px;

I have a master page where i've defined this div and below is the HTML code.

<%@ Master Language="C#" AutoEventWireup="true" CodeFile="MasterPage.master.cs" Inherits="MasterPage" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<head id="Head1" runat="server">
    <link href="../App_Themes/style.css" rel="stylesheet" type="text/css" />
    <script src="../Scripts/

Screen resolution issue in MOSS 2007



I have designed the SharePoint landing page with screen resolution of 1024x768. The layout is desined with 3 column. The header images are designed for fixed size for the above resolution only.
It looks good for the users having 1024x768 screen resol. But for few users who have bigger resolution like 1280x720 & wider screens, the header images still shows the same size and thus the body (three column layout) expanded. As a result there is an empty space in the right side of the header.

Is there anyway to get the screen to resize automaticlly for all the users?  


Converting windows form to bmp - image crops when the screen resolution is changed


I am converting windows form to a bitmap file using   DrawToBitmap method.  My code looks like this.

            Dim wid As Integer = 760 '  Me.Width
            Dim hgt As Integer = 780 ' Me.Height
            Dim bm As New Bitmap(wid, hgt)
            Me.DrawToBitmap(bm, New Rectangle(0, 0, wid, hgt))
            bm.Save(CurDir() & "\sample.bmp")

This code work fine on desktop/laptop with the screen resolution 1024 x 768  or above.   If I use app on a table pc – with the screen resolution is 800 x 480, the image gets cropped. 
Any suggestion or alternate mode.


How to change screen resolution to 960*600 or 1366*768

I'm developing a full scrren game for a customer. My customer require to change the screen resolution to 960*600 or 1366*768, I 've download some sample code on Internet but they can only change the screen resolution to 800*600 or 1024*768. Please help me.

SharePoint 2010 screen resolution


We are design page layouts for SharePoint 2010 web site using Divs. What screen resolution should we go for? 1024 * 768 or 1440 * 900?

For what screen resolution, SharePoint 2010 has been designed?


Could not load type 'System.Security.Authentication.ExtendedProtection.ChannelBinding' ..


 I am running Windows Server 2008, ASP.NET 3.5, IIS7

i wonder if it's IIS7 problem, or .NET Framework or even security updates problem

suddenly all websites do not work, and from event viewer

there're two errors

Exception: System.TypeLoadException

Message: Could not load type 'System.Security.Authentication.ExtendedProtection.ChannelBinding' from assembly 'System, Version=, Culture=neutral, PublicKeyToken=b77a5c561934e089'.

StackTrace:    at System.Web.Hosting.IIS7WorkerRequest.Dispose()
   at System.Web.Hosting.PipelineRuntime.DisposeHandlerPrivate(HttpContext context)
   at System.Web.HttpRuntime.FinishRequestNotification(IIS7WorkerRequest wr, HttpContext context, RequestNotificationStatus& status)
   at System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context)
   at System.Web.Hosting.PipelineRuntime.ProcessRequestNotificationHelper(IntPtr managedHttpContext, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)
   at System.Web.Hosting.PipelineRuntime.ProcessRequestNotification(IntPtr managedHttpContext, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)

 Faulting application w3wp.exe, version 7.0.6002.18005, time stamp

Resizing cotrols based on screen resolution


I have a issue where I need to resolve quickly

I have a div element and within the div element I show a gridview.

The gridview is being rendered with the help of template fields.

I am using

<asp:table width 100%>



           item is bound here


 </asp:table >


 All this is shown within a div element.

I actually have set the width and height of the gridview by setting the height and width of the div element.

However when the screen resolution changes then there is a lot of space left on the bottom and to the right.

Please help..I have gone through other posts and tried setting the height on the onload function but the height is fixed and only a part of the data is shown , one cannot see the entire data.

In my case setting a fixed width and height of the div element(which is being done in CSS) causes the gridview to be small but the entire data is scrollable...

How to detect user's screen resolution


Hello all,

I am using a asp:Label control and I need to set it to visible if the screen resolution of the user is nore then 1000 pixels.

How do I do that?


What is the result and what is happening behind the screen of Type conversion in c#?


Hi all,

what is the result for the below code?

int i = 100;
            long j = 100;
            if (i == j)
                Console.WriteLine("not same");

Adjust application window size per screen resolution on different computers


I have built an  application which calls two dialog boxes defined in a .rc file.

When this application was run on a computer with a screen resolution of 600 x 800

the dialog boxes were not fully displayed.  How can I automatically adjust for different screen resolutions?

Remoting Issue - Authentication Type changes from Kerberos to NTLM in Thread.CurrentPrincipal.Identi


Am facing followingproblem, Authentication Type changes from Kerberos to NTLM in Thread.CurrentPrincipal.Identity where as the user name comes properly while calling the method of service2 through remoting from service1.

Actually the problem scenario is as follows, from client am making calls to service1 and from the service1 am making the call to another service2 where the problem occurs.

             Kerberos                              NTML
Client ----------------> Server1 -------------------------> another service2
         remoting call                      remoting call

But When I made the remoting call from the client directly to service2, am getting the security type as Kerberos properly.

Please advise.

Am running out of time, looking for you valuable comments...!!!



ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend