|
-
Apr 28th, 2005, 01:28 AM
#1
Thread Starter
Junior Member
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?????
-
Apr 28th, 2005, 09:16 AM
#2
I wonder how many charact
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.
-
Apr 28th, 2005, 11:52 PM
#3
Thread Starter
Junior Member
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?
-
Apr 29th, 2005, 07:41 AM
#4
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.
-
Apr 29th, 2005, 07:48 AM
#5
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!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|