|
Hi I have a repeater control which return more than 200 records.
is there any way that i can display scroll bar in the repeater control between header and footer?
so that when user scrolling the records in the repeater header and footer are always visible, changing only the records.
please some one help me.
Thanks
MK
|
|
|
|
|
It would depend on the template definitions you are using in your Repeater.
You certainly could use a <div style='overflow: auto;'> tag in your Repeater header template (and a matching </div> tag in the footer template) with a fixed height and width to establish your scrolling area.
|
|
|
|
|
I have a three column layout with a head across the top of all three columns and a container div that all the other divs are in. The styles look like this:
<br />
#Container<br />
{<br />
background-color: White;<br />
margin: 20px auto;<br />
width: 80%;<br />
border-left: solid 2px black;<br />
border-right: solid 2px black;<br />
border-top: solid 2px black;<br />
border-bottom: solid 2px black;<br />
}<br />
<br />
#Header<br />
{<br />
border-bottom: solid 1px black; <br />
height: 100px;<br />
background-image: url(../Images/Header/HeaderSpacer.jpg);<br />
background-repeat: repeat-x;<br />
}<br />
<br />
#Left<br />
{<br />
width: 160px;<br />
margin: 0px;<br />
float: left;<br />
text-align: center;<br />
}<br />
<br />
#Center<br />
{<br />
margin-left: 160px;<br />
margin-right: 160px;<br />
height: 100%;<br />
padding-top: 10px;<br />
}<br />
<br />
#Right<br />
{<br />
width: 160px;<br />
margin: 0px;<br />
float: right;<br />
text-align: center;<br />
}<br />
In IE everything works perfectly, but in Firefox and Opera the container div only expands to the size of the content in the #Center div, in other words, if the right or left column is longer than the center column then it overflows out of #Container. Is there something I'm doing wrong, or is this an insurmountable problem?
|
|
|
|
|
Actually, it's in Firefox and Opera that the layout is displayed correctly. There is a bug in IE that makes is always expand elements to the size of it's children, even when it shouldn't.
Elements that are floating does not affect the size of the parent. If you want the parent to expand to the size of the floating children, place a non-floating element as a last child, and use "clear: both;" to place it below the floating children.
---
b { font-weight: normal; }
|
|
|
|
|
I figured IE was the one that had it wrong since it was the odd man out. The solution was a lot simpler than I thought it would be and works like a charm, thanks a lot
One last small problem, both IE and Opera have a margin on the top and bottom of the container div, but firefox only has the margin on the top. As you see in my first post Container is set to margin: 20px auto;
|
|
|
|
|
What do you have below the container?
---
b { font-weight: normal; }
|
|
|
|
|
<br />
</form><br />
</body><br />
</html><br />
|
|
|
|
|
So there is no element below the container? How do you determine it's lower margin, then?
---
b { font-weight: normal; }
|
|
|
|
|
By the viewport? I just tried sticking an empty div tag at the bottom... odd that it works in IE and Opera.
|
|
|
|
|
I tried your css, and I get a margin below the container in Firefox.
---
b { font-weight: normal; }
|
|
|
|
|
Is this supported. I know of ATLAS but i don't wish to use a dll. does ASP support it?
|
|
|
|
|
Any programming platform for the web supports AJAX. It's the browser that does the real work, the web application only has to answer to requests and return a result, that doesn't differ from a regular web page.
ATLAS is an AJAX library for ASP.NET, you can't use it with ASP.
---
b { font-weight: normal; }
|
|
|
|
|
Hi,
I installed visual studio 2005,abd i opend a new website.In that when i click on design button in default.aspx,the design is not working i.e it's not opening a design window what to do.
Thanks in advance
|
|
|
|
|
So what does happen when you click the Design to switch to the Design view?
|
|
|
|
|
Hi,
The design window is not opened.
|
|
|
|
|
Do you get any error? or it just keeps staying in the Source view?
|
|
|
|
|
Hi,
Iam not getting any error.Keep staying in the source window.
|
|
|
|
|
Hi,
I would like to create a small app that takes a series of characters, japanese for example and converts them to their corresponding unicode NCRs.
So for example, I enter 庡廵式 into a text box, and I would to get back 5ea1,53f5,5f05 (hex), the NCRs.
How could I do this?
/\ |_ E X E GG
|
|
|
|
|
Hi,
I need take decission from the user by diplaying a message box on an asp.net web page.
ex. displaying message box with Yes, No, Cancel buttons. I need to now which button was pressed by the user and I need to write the remaining code accordingly.
please help in this regarding how to achieve it in ASP.Net using C#.
It is very urgent to me, plz treat it as urgent.
Venkata NRao Nekkanti
|
|
|
|
|
You could generate a small web form in a popup window and handle the buttons as appropriate. However since popups are falling in to disfavor and many people block them it might not be the best solution.
Another way would be to create a floating div with the necessary format and controls and handle the events from Javascript, posting back as necessary.
|
|
|
|
|
Hello!
I need help!
How can I validate my ListBox control?
I need validate selected items in ListBox.
if( selected <=3 )
validate=true;
else
validate=false;
HELP.
PLS!!!
Hello from Ukraine!
|
|
|
|
|
<br />
int count = 0;<br />
foreach (ListItem li in ListBox1.Items)<br />
{<br />
if (li.Selected)<br />
count++<br />
}<br />
<br />
return count <= 3;<br />
-- modified at 15:11 Friday 7th July, 2006
Forgot a semicolon.
|
|
|
|
|
I have a class in which I want to write out the trace if there is an error. I added System.Web to the class and I have System.Web referenced in my project. However, the compiler is not recognizing "Trace." I also set the trace to true in my web.config file.
Trace.Write ("Unable to update!");
I can't find any documentation on what else I might be missing here.
|
|
|
|
|
Take a look at this article - toward the bottom is information on ASP.NET tracing.
http://www.15seconds.com/issue/020910.htm[^]
Do you need System.Diagnostics referenced as well?
Does the call need to be Page.Trace.Write()?
|
|
|
|
|
Looks like I did need the System.Diagnostics; it's compiling now. Thanks!
|
|
|
|