|
Hi, thanks for looking
Im changing my layout from table to css
Im having a little problem with the columns and maincontent
I have a page with header content (divided in 2 areas) and footer
The content divs dont resize to heigth of each other
Ive tryed setting the parent container's height to 100% as well as the body and html, but they dont seem to work
Here is an example of my code, is anyone know how to make it work, please let me know, Thanks in advance:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
<title>100% Height CSS Layout</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style type="text/css">
html
{
height: 100%;
}
body
{
min-height: 100%;
height: 100%;
}
#header
{
width:300px;
background-color:Green;
height: 50px;
}
#main
{
width: 300px;
min-height: 100%;
height: 100%;
}
#leftCol
{
float: left;
height: 100%;
width: 100px;
background-color: Gray;
}
#container
{
float: left;
background-color: #DDD;
width: 200px;
height: 100%;
}
#footer
{
width: 300px;
height: 50px;
background-color: Green;
}
</style>
</head>
<body>
<div id="main">
<div id="header">HEADER</div>
<div id="leftCol">
<p>
Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
</p>
</div>
<div id="container">
<h1>
100% Height Demo</h1>
<p>
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Quisque tempor. Nam in
libero vel nisi accumsan euismod. Quisque quis neque. Donec condimentum, enim convallis
vestibulum varius, quam mi accumsan diam, sollicitudin ultricies odio ante vitae
purus. Etiam ultricies quam. Vestibulum turpis turpis, fermentum ut, accumsan quis,
tempor at, ipsum. Nam felis elit, sollicitudin id, ultrices faucibus, fringilla
vel, dui. Aliquam tincidunt iaculis eros. Sed in lorem. Nullam eu enim. Quisque
tristique pretium diam. Fusce tempor sollicitudin ligula. Donec purus eros, mattis
quis, mattis vestibulum, congue quis, felis. Nulla facilisi. Nam ultricies posuere
justo. In feugiat.</p>
<p>
Sed non nibh. Sed sapien ipsum, fringilla condimentum, consectetuer vitae, convallis
eu, urna. Aenean id elit eu nulla aliquet congue. Sed fringilla nonummy nisi. Donec
aliquet. Quisque varius. Vivamus ut nulla. Lorem ipsum dolor sit amet, consectetuer
adipiscing elit. Integer lacinia. In leo nulla, molestie ac, dignissim sed, pulvinar
at, odio. Duis sit amet augue.</p>
</div>
<div id="footer">
FOOTER</div>
</div>
</body>
</html>
Alexei Rodriguez
modified on Thursday, September 25, 2008 7:17 PM
|
|
|
|
|
Search google for "css multi column layouts height 100%", and you'll find a bunch of answers. I'm sticking with tables....
- S
50 cups of coffee and you know it's on!
A post a day, keeps the white coats away!
|
|
|
|
|
I implemented Autocomplete textbox in Visual Studio 2005 by implementing webservice as implemented in
http://www.aspdotnetcodes.com/AutoComplete_From_Database.aspx
The xml file is getting generated but I am not getting output in the website. What may be the problem? Do I need to mention something in web.config file so that it can interact with the xml file?
Thanks
|
|
|
|
|
check whethere the div element required to populate the suggestions is in place.
if it is there the check if you have proper stylesheets downloaded
Thanks & Regards
Pete
SIEMENS Information Systems Ltd
|
|
|
|
|
Could you please explain in detail ?
I implemented exactly as in
[^]
Nothing else...
Please help.
|
|
|
|
|
I have a DataGrid, with an ItemTemplate that has an image and label. In the EditItemTemplate the label is replaced by a textbox. My problem is that the edit template only shows when I click the Edit button the second time. What gives?
A human being is part of the whole called by us universe, a part limited in time and space. We experience ourselves, our thoughts and feelings as something separate from the rest. A kind of optical delusion of consciousness. This delusion is a kind of prison for us, restricting us to our personal desires and to affection for a few persons nearest to us. Our task must be to free ourselves from the prison by widening our circle of compassion to embrace all living creatures and the whole of nature in its beauty… The true value of a human being is determined primarily by the measure and the sense in which they have obtained liberation from the self. … We shall require a substantially new manner of thinking if humanity is to survive. (Albert Einstein, 1, 1954)
|
|
|
|
|
Come on Brady, you should know better than this. "What gives" is that you are obviously doing something wrong! There - does that help?
Now try looking carefully at your code.
|
|
|
|
|
I found out, by looking at other people's code, that you need to bind again after setting the EditItemIndex. This works nicely, but zaps you back to the top of the page after editing.
A human being is part of the whole called by us universe, a part limited in time and space. We experience ourselves, our thoughts and feelings as something separate from the rest. A kind of optical delusion of consciousness. This delusion is a kind of prison for us, restricting us to our personal desires and to affection for a few persons nearest to us. Our task must be to free ourselves from the prison by widening our circle of compassion to embrace all living creatures and the whole of nature in its beauty… The true value of a human being is determined primarily by the measure and the sense in which they have obtained liberation from the self. … We shall require a substantially new manner of thinking if humanity is to survive. (Albert Einstein, 1, 1954)
|
|
|
|
|
Brady Kelly wrote: but zaps you back to the top of the page after editing.
Yes, that can be a bit of a pain... but with a bit of javascript* in the itemdatabound event you can insert anchor tags on each row and a line of javascript at the end to jump you down to the right place...
* [edit] I mean, of course, inserting javascript into your page via the ItemDatabound event
|
|
|
|
|
Hi,
I need to enable Profile in my ASP.NET 2.0 web app.
In order to enable it I followed the next steps:
1. manually created the sql profile tables using the aspnet_regsql -A all command
2. enabled authentication from the web.config file
<authentication mode="Forms">
<forms loginurl="~/auth/login.aspx" timeout="60" protection="All">
<authorization>
<allow users="*">
3. configured the profile provider
<connectionstrings>
<add name="devProfileProvider" providername="System.Data.SqlClient" connectionstring="server=myServer;database=aspnetdb;User Id=sa_dev;Password=devPass;Connection Lifetime=3600;Min Pool Size=10;Application name=mySite">
and
<profile enabled="true" defaultprovider="myProfileProvider">
<providers>
<clear>
<add name="myProfileProvider" type="System.Web.Profile.SqlProfileProvider" connectionstringname="devProfileProvider" applicationname="mySite">
<properties>
<add name="MyProp" type="String" defaultvalue="Andrei">
4. defined profile properties - see above
From what I've read so far about Profile in ASP.NET that should be enough to start working with the profile in my web app, but currently I am not able to work with it. I don't have access to any of my properties and I don't have access to the Profile object.
Can anyone see any mistake in the steps I've made or should I perform some extra configuration for my application?
What do I need to do in order to work with the profile?
Thanks in advance!
Andrei
|
|
|
|
|
|
I have a listview control that is bound to a datasource. I want to total the values in one of the columns. How do I get to the desired value? I thought it would be a simple matter to add an event handler for ItemDataBound , but I haven't been able to figure out how to get to the item's data.
Any help?
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
Its a bit convoluted to be honest John. You have to first check that the item is a DataItem, and if it is then cast to ListViewDataItem then cast the dataitem to your object.
here's a bit of test code:
private int total = 0;
protected void ItemDataBound(object sender, ListViewItemEventArgs e)
{
if (e.Item.ItemType == ListViewItemType.DataItem)
{
ListViewDataItem item = (ListViewDataItem)e.Item;
Thing thing = (Thing)item.DataItem;
total += thing.Value;
}
}
I got summing to work nicely on my ListView in a simple test project, if you need the full code just holler.
|
|
|
|
|
Yeah, that's what I discovered (and it's even more convoluted than that). What a pain in the ass.
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
I am trying to total my listview, but can't seemed to get it. If you still have your test code and don't mind sharing, you can email it to me at thegoose78@yahoo.com. I am using VB.NET, but should be able to convert it from C#.
I am able to sum by columns going across, but can't get the rows going down.
Any help greatly appreciated.
Thanks
|
|
|
|
|
hi,
i have a DataGridView with manually generated columns.
i have a template column named "DueDate".
for this column i am using a WebUserControl consists on an asp Calendar and a text box that shows the chosen date, for saving the data of the selected date i'm using the Session object.
the problem i have is with the EditItemTemplate. i cant manage to get the data i need for showing the target date in the WebUserControl TextBox.
i've created a Text property for the control and tried to fill it as follow but it doesn't work:
<EditItemTemplate>
<uc1:ctrldatepicker text="<%# DataBinder.Eval(Container.DataItem, " duedate=")%>" id="CtrlDatePicker1" runat="server" xmlns:uc1="#unknown" />
</EditItemTemplate>>
also have tried:
<EditItemTemplate>
<uc1:ctrldatepicker text="<%# Session[" targetdate="].ToString())%>" id="CtrlDatePicker1" runat="server" xmlns:uc1="#unknown" />
</EditItemTemplate>>
didnt work also
anyone can help me on that?
thanks in advance
j
|
|
|
|
|
In a table, I have stored a following path
"d:\image\img\abc.jpg"
My requirement is I only want to print "abc.jpg"
I use datalist, and in datalist i take LinkButton from toolbax.
I use following queryin asp.net. but this code does not work.
protected void Page_Load(object sender, EventArgs e)
{
string s = "select * from image";
SqlDataAdapter da = new SqlDataAdapter(s, con);
DataSet ds = new DataSet();
da.Fill(ds, "a");
string ph = null;
string ab = null;
ph = ds.Tables[0].Rows[0]["img"].ToString();
ab = Path.GetFileName(ph);
dlTiff.DataSource = ds.Tables["a"];
dlTiff.DataBind(); }
please solve it
thanks in advance
|
|
|
|
|
Original is a few posts down
|
|
|
|
|
sorry, I could not understand that what actually you are saying.
please explain if possible
|
|
|
|
|
I would have done, if you didnt vote me down.
|
|
|
|
|
I think u are joking with me. Not helping me.
thanks for not solving my problem
|
|
|
|
|
i use Procedure & and parameters by cookies in my crystal report.but at run time crystal report show
olny two page when i click on next button after 2 page ,third page doesn't display...but if i type pageno in text box and click go botton then third page display...i m not enable to understand this..
so PLZ help me....
|
|
|
|
|
hi
i am using fckeditor as mentioned in hints of google search page. but when i add tool in toolbar. and drag and drop all work done according to the web suggestion but problem is that when i use fckeditor and run page all page is good but fck editor return error message
error message HTTP Error 404 - Not Found.
Version Information: ASP.NET Development Server 8.0.0.0
please tell me what the problem and solution of this problem.
I will do my best?
Integrated Solutions, Bikaner (Raj.), India
|
|
|
|
|
Try contacting the authors of fckeditor, they should be able to help.
Bob
Ashfield Consultants Ltd
|
|
|
|
|
hi all,
i am using asp.net menu control on mysite,menus are two level, but level-1 menus don't have links associated with them, below is scenario explained.
Administrator((level-1) when clicked,page is posted back which i don't want)
---click1 (level-2)
---click2 (level-2)
when level1 item is clicked page is posted back which i dont want as it dont have any target url or link
Regards.
Tasleem Arif
|
|
|
|