Results 1 to 5 of 5

Thread: Display resolution, Web Control, Stylesheet problem, help me please

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Aug 2004
    Posts
    20

    Display resolution, Web Control, Stylesheet problem, help me please

    hi,

    I use asp.net(vb) create web application, my monitor resolution is 800*600 with WinXP. I 'm just begin .net please helpme

    1.When i copy my web project and open on another computer like "http://localhost/myproject/myweb.aspx" but display resolution problem occur. what is a code? for detect resolution of others computers in order to match in every computers.

    2.I use web control, When i run on another computer , Dropdownlist and textbox and button are not appear why? but another controls don't (label and image okay)

    3.How i can use stylesheet on Asp.Net like asp use Stylesheet Editor.

    4.I try to copy webform and paste for use same apperance (coz i don't know how i can use stylesheet) but i found class error. I open .aspx.vb and change class declaration in order to avoid declare same class name which it's can fix problem but this is a right way?????

  2. #2
    I wonder how many charact
    Join Date
    Feb 2001
    Location
    Savage, MN, USA
    Posts
    3,704

    Re: Display resolution, Web Control, Stylesheet problem, help me please

    you need to put a <link> to a stylesheet in your html header.

    You then need to add a stylesheet to your project.

    You can then easily adjust styles for textboxes, etc... from your stylesheet.

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Aug 2004
    Posts
    20

    Re: Display resolution, Web Control, Stylesheet problem, help me please

    thank,

    follow your word,it's like a asp method? <link>

    and anothers questions please helpme...

    i go to microsoft , they use .aspx too. and i change my resolution form 800*600 to 1024*768 or higher , it's okay all any resolution. And i compare with another websites, it's not full screen of IE and some web appear scroll bar... I use 800*600 but open at higher resolution, It' s display smaller than of IE window..............Why?

  4. #4
    Evil Genius alex_read's Avatar
    Join Date
    May 2000
    Location
    Espoo, Finland
    Posts
    5,538

    Lightbulb Re: Display resolution, Web Control, Stylesheet problem, help me please

    1.When i copy my web project and open on another computer like "http://localhost/myproject/myweb.aspx" but display resolution problem occur. what is a code? for detect resolution of others computers in order to match in every computers.
    You might be able to test this by querying the HttpRequest.Browser method. Alternatively, there's a Screen object available to javascript of NS/IE 4+ I think it is.

    You'll find most sites generall target a specific size (probably 800*600 or 1024*768) & the site will display at that size no matter what your resolutions set upto, or they will use % in their HTML to account for any browser size. I.e. <INPUT Type="Text" width="100%" Style="width:100%"> for example.

    Please rate this post if it was useful for you!
    Please try to search before creating a new post,
    Please format code using [ code ][ /code ], and
    Post sample code, error details & problem details

  5. #5
    Evil Genius alex_read's Avatar
    Join Date
    May 2000
    Location
    Espoo, Finland
    Posts
    5,538

    Talking Re: Display resolution, Web Control, Stylesheet problem, help me please

    2.I use web control, When i run on another computer , Dropdownlist and textbox and button are not appear why? but another controls don't (label and image okay)
    When you say "run", are you moving the site to be hosted/accessible from, another computer? or are you viewing the site (sitting on the same computer), from another browser/computer?


    3.How i can use stylesheet on Asp.Net like asp use Stylesheet Editor.
    File > New > Stylesheet will allow you to create a stylesheet for your project, then any webforms you want to use this in/with, you have to place this line at the top of the HTML (between the <HEAD></HEAD> tags):

    <LINK rel="stylesheet" type="text/css" href="NameOfMyNewStyleSheet.css">


    4.I try to copy webform and paste for use same apperance (coz i don't know how i can use stylesheet) but i found class error. I open .aspx.vb and change class declaration in order to avoid declare same class name which it's can fix problem but this is a right way?????
    As well as the class name, you have to change the bit at the top of the HTML part of the webform, these lines which point to (& contain the clss name too):

    <%@ Page Language="vb" AutoEventWireup="false" Codebehind="MyBackendClass.aspx.vb" Inherits="MyBackendClass" %>

    Then just recompile & it should work ok!

    Please rate this post if it was useful for you!
    Please try to search before creating a new post,
    Please format code using [ code ][ /code ], and
    Post sample code, error details & problem details

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width