|
Yea, it might be, tomorrow i will test my project on a better computer and not my netbook, anyway my netbook is pretty powerful (dual atom 1.8ghz, 4gb ram, and a 512mb video card (ION2 Platform)) dunno, it runns everything really fast.
But im still thinking about the Localhost. When its loading it says at the bottom of the browser in the status bar:
"Waiting for localhost..."
And remains like 2 or 3 seconds per page.... and it loads as i said, as if it would be running in the internet.
Thanks again!
Marian.
|
|
|
|
|
Yea! you were right! Tried my website in a C2D 2GB RAM and it worked PERFECT, took not even 1 sec to load a page. Everything runnning so smoothly (locally ofc).
Thank you very much!
Marian.
|
|
|
|
|
you have to remember when running on //localhost that you are essentially running a server for a minute in the background. The first time you run the application from within VS the server has to start up etc etc.. I run an asus laptop with i7 processor, 8 gigs ram and so on. even mine can be few seconds slow on the first run.
Programming is a race between programmers trying to build bigger and better idiot proof programs, and the universe trying to build bigger and better idiots, so far... the universe is winning.
|
|
|
|
|
Woo, but the localhost server is taking a lot in my netbook, every single time, not just the first one. Don't know why. And that didn't happen in my work computer, which has a Core 2 Duo and 2GB of RAM, it took like a second the first time.
btw, wtf nice notebook alienware specs.
|
|
|
|
|
thanks, its not an alienware but its a nice pc. and was reasonably priced for what I got out of the deal. I run up to 4 vms at once in it since I am working with sharepoint. one vm with server2008r2 and sharepoint, one with sql, one for a webserver and one for an AD. I get very little lag out of it for the most part(of course I have the vms running on minimum ram for the OS since they are just for testing.)
I run all 4 of them that way to emulate our office environment and allow me to play with sharepoint without going and telling my boss that I had an oops on the live sharepoint server.
as far as the difference between your pc and work pc, it could be any number of settings, or maybe your pc has more services running in the background. Hard to say really. But if the code runs fine on the other machine my guess would be that the code is ok as far as performance its just your machine running localhost that is lagging up for whatever reasons.
Programming is a race between programmers trying to build bigger and better idiot proof programs, and the universe trying to build bigger and better idiots, so far... the universe is winning.
|
|
|
|
|
Thanks for your support gavidon!
You are being such a nice person, the whole community.
|
|
|
|
|
your welcome. I ahve been reading on CP for almost two years and am just now starting to add my half cent once in a while. Thought I better follow example of the CP guys and be nice myself..
Programming is a race between programmers trying to build bigger and better idiot proof programs, and the universe trying to build bigger and better idiots, so far... the universe is winning.
|
|
|
|
|
that's so cool! ok, don't want to convert this into a chat hahaha, thanks again!!! and see you around!
|
|
|
|
|
Ok, as the title says... i would like to add a HyperLink inside of the CheckBox Text attribute, in order to create something like this.
I'm 18 years old, i read and accept the Terms and Conditions, and also the Security Policies.
Where Terms and Conditions and Security Policies are links, am i able to do this?
Thanks
Marian.
|
|
|
|
|
Did you try to do something like this:
<asp:CheckBox ID="myCheckBox" Text="To Search:<a href='http://www.google.com'>GOOGLE</a>" runat="Server" />
|
|
|
|
|
LOL it worked, i tried but i didn't work for me, looks like i made a sintax mistake... thanks!!!! really appreciate that!
|
|
|
|
|
Hi,
I am using role based authorization. Is it possible to deny access to a control using webconfig.
I have created a menu ( not from sitemap) in the master page and I want this menu to be accessible only by users in roles and not by everyone else. I know I can make it invisible in login page etc but is there any other way?
Here is a part of the web config code
<authentication mode="Forms>
<forms loginUrl="login.aspx">
</forms>
</authentication>
<location path="Admin">
<system.web>
<authorization>>
<allow roles="Admin"/>
<deny roles="Employee"/>
<deny users="*"/>
</authorization>
</system.web>
</location>
|
|
|
|
|
No you cannot handle the control display from Web.Config file. You can handle the URL authorization only. Thus, Menu will be visible as per set for the page. If you display all, then authorization is the way to stop them.
Ideally, you hide it if it is not accessible.
|
|
|
|
|
hi men/women
actually when I design the page in asp.net (in c#) I arrange the
contents in specific way , but when make "browse in web
page" the contents overlapping and some of them get bigger
and another get smaller and some move from original position
....etc.
I tried to use tables to make the content fixed , I also tried to
use the percent in size of tables, td and tr
but with no useful
can any one help me and tell me what is the suitable way to
make the content the same in the design and browsing mode
|
|
|
|
|
From my personal experience, i recommend using css and avoiding tables.
I prefer measurements in pixels and it makes it more sure.
check some best practices here.
|
|
|
|
|
thankls alot
but the problem I dont have experience in using css
|
|
|
|
|
|
thank you so much for your time
can you please give some examples (web app or website) if you have time
because I dont know how to merage css with asp.net c#
thanks alot another time
|
|
|
|
|
Its easy to add CSS in ASP.NET, as you do in HTML. The code will be basically look like this:
<link href="css/filename.css" rel="stylesheet" type="text/css">
Or you can even place it in the same masterpage like this, inside of the head tag, you add:
<style type="text/css">
CSS ATTRIBUTES
</style>
For instance, if you are using master pages, you have to add the css links inside of it (the masterpage).
I'm not a MASTER of web development, but i can help you with something...
CSS its easy as well, gonna make some examples for you.
Lets say we have the filename.css with:
body
{
background-color: #1e1e1e;
margin: 0px;
text-align: center;
font-family: Trebuchet MS;
}
The entire webpage if I let it this way, the font will be Trebuchet MS and it will be centered.
You have 3 ways for applying CSS. By ID, by Class or by Object.
By ID:
(ASP.NET)
<asp:TextBox ID="foo"/>
(CSS)
#foo
{
color: #282828;
font-size: 12px;
font-family: Arial;
border: 1px solid #fff;
}
Here, this ASP input text will have a 1px solid white border, the color of the text inside of it will be grey, Arial and 12px size.
By Class
(ASP.NET)
<asp:TextBox ID="foo" CssClass="input">
(CSS)
.input
{
color: #282828;
font-size: 12px;
font-family: Arial;
border: 1px solid #fff;
}
This will contain the same attributes, but the only difference is that we changed them by class instead of ID.
If you have a lot of inputs its better for you to use classes rather than ID, ID is more unique related style, -when you have to change a single object style-.
Then you can also change all the inputs, all the selects, and so on of your site, like this:
input
{
color: #282828;
font-size: 12px;
font-family: Arial;
border: 1px solid #fff;
}
Where ALL the inputs will be under these style rules.
Next for you to know, is the positions, margins, paddings and floats.
Try to avoid using position: absolute or tables as one person said above, they aren't good, conceptually neither.
So the best way for you to create forms for example, is with DIVs and CSS, is even way better for reading and understanding.
After doing both ways, you realise of the quantity of lines used for nothing with tables and the worthless space they use.
Also, by using tables, each browser (firefox, chrome, opera, IE) has their own attributes for placing elements inside of rows/columns, so its not always the same way you see it in firefox than in others.
position: absolute attribute is better not to use it, as instead, try using float: left or float: right, with margin-left, margin-top, margin-right or margin-bottom properties.
The position: fixed, the one that you asked about, is to keep an element FIXED on the website and eventhough you resize the browser window, it will be mantained in the way you placed it in the window with CSS.
Hope it helps for something at least, happy designing/programming!
My best regards,
Marian.
EDITED: Oh what you can do to practice a LOT, is install the Firebug for Firefox and you can debug there in execution time, just simply "right click" in your site > Inspect Element, go to CSS tab, select the CSS file and edit it, change attributes, create new rules, etc... that's the way i learned, comparing results
modified on Sunday, March 27, 2011 7:43 PM
|
|
|
|
|
from my heart thank you soooooooooooooooooooooooooo much
|
|
|
|
|
You are very welcome, pal!
|
|
|
|
|
Tables is an outdated method.
Use <DIV> tags and float or position them.
Can put DIVs inside DIVs and use CSS Tables for formating.
You can nest a table in a DIV, but DIV is the correct method du jour.
------------------------------------
I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel. Dalek Dave
CCC Link[ ^]
Trolls[ ^]
|
|
|
|
|
thanks alot for your time and reply
I would like to ask you which way is perfect when I
determine the size of tables or DIVs either pixel or the percent
actully that I know is the pixel size will not fit with all browser or computers
Is it true?
thanks alot again
|
|
|
|
|
Hello Sir/Madam,
i am facing problem last two month.
so please you have sent perfect solution.
unable to connect to visual studio's localhost web server.
i tried by reinstall the webdev.webserver from
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727..
but
it is saying 'The application failed to intialize properly (0*c0000007b).
Click ok to terminate the application.
Regards,
Nand kishor
|
|
|
|
|
First, change the subject of your question to something meaningful.
Never, put an email id in place.
Second,
when you replace/re-install WebDev.WebServer.exe, make sure you end all instances of same in task-bar, register aspnet again.
Third, the Error:
The application failed to initialize properly (0x.....)
means
'The permissions aren't setup properly on MSVBVM60.DLL in your Windows System32 folder.'
In most cases adding permissions to this file solves problem. Check this for doing so.
|
|
|
|
|