Click here to Skip to main content
15,881,938 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: asp.net Pin
Not Active7-Mar-10 9:04
mentorNot Active7-Mar-10 9:04 
QuestionWeb Based chat application for intranet website using C# + Ms SQl 2005 as database Pin
hiteshmca076-Mar-10 7:29
hiteshmca076-Mar-10 7:29 
AnswerRe: Web Based chat application for intranet website using C# + Ms SQl 2005 as database Pin
Brij6-Mar-10 8:33
mentorBrij6-Mar-10 8:33 
AnswerRe: Web Based chat application for intranet website using C# + Ms SQl 2005 as database Pin
Sandeep Mewara7-Mar-10 6:53
mveSandeep Mewara7-Mar-10 6:53 
QuestionCreating a dynamically expanding div tag Pin
AndyASPVB6-Mar-10 6:59
AndyASPVB6-Mar-10 6:59 
AnswerRe: Creating a dynamically expanding div tag Pin
John Bracey6-Mar-10 7:12
John Bracey6-Mar-10 7:12 
GeneralRe: Creating a dynamically expanding div tag Pin
AndyASPVB7-Mar-10 0:23
AndyASPVB7-Mar-10 0:23 
GeneralRe: Creatinhttp://www.codeproject.com/script/Forums/Edit.aspx?fid=12076&select=3394011&floc=/Forums/12076/ASP-NET.aspx&action=rg a dynamically expanding div tag Pin
John Bracey7-Mar-10 1:29
John Bracey7-Mar-10 1:29 
I see what you're saying. My method would just resize your div box to z set size no matter how many items need to be listed.

I think you need to count the number of items there are in the list when the page loads.

This is something probably best doing server side in whatever language you're using. Then pass the number to client side in a hidden field.

eg <asp:Label runat="server" id="myhiddennumber" visible="false"/>

Use this number to set the height of the div box in javascript.

This function needs to execute after the hidden field has been populated.

eg

function mylistboxsize(){

var getthelist = document.getElementById("myhiddennumber");

// multiply the number in the hidden field to get a height value for the div box. Here we're saying each item is worth 10px

var heightfordiv = getthelist.innerText * 10;


// set the height

document.getElementById('divboxid').style.height = heightfordiv + 'px';
}


The above javascript may need a bit of syntax correction however I think the 'method idea' would work.
AnswerRe: Creating a dynamically expanding div tag Pin
carlecomm7-Mar-10 15:32
carlecomm7-Mar-10 15:32 
Questionupload file to sql server using asp.net and vb.net Pin
oedipusrex6-Mar-10 5:29
oedipusrex6-Mar-10 5:29 
AnswerRe: upload file to sql server using asp.net and vb.net Pin
Muhammad Gouda6-Mar-10 23:07
Muhammad Gouda6-Mar-10 23:07 
AnswerRe: upload file to sql server using asp.net and vb.net Pin
Abhinav S6-Mar-10 23:32
Abhinav S6-Mar-10 23:32 
QuestionHow to Fast Page Redirect ? Pin
Manish_Kumar_Nayak6-Mar-10 0:50
Manish_Kumar_Nayak6-Mar-10 0:50 
AnswerRe: How to Fast Page Redirect ? Pin
Abhijit Jana6-Mar-10 1:50
professionalAbhijit Jana6-Mar-10 1:50 
GeneralRe: How to Fast Page Redirect ? Pin
Manish_Kumar_Nayak8-Mar-10 0:25
Manish_Kumar_Nayak8-Mar-10 0:25 
AnswerRe: How to Fast Page Redirect ? Pin
carlecomm7-Mar-10 15:36
carlecomm7-Mar-10 15:36 
AnswerRe: How to Fast Page Redirect ? Pin
carlecomm7-Mar-10 16:00
carlecomm7-Mar-10 16:00 
GeneralRe: How to Fast Page Redirect ? Pin
Manish_Kumar_Nayak8-Mar-10 0:30
Manish_Kumar_Nayak8-Mar-10 0:30 
AnswerRe: How to Fast Page Redirect ? Pin
tunsten8-Mar-10 5:57
tunsten8-Mar-10 5:57 
QuestionMultiview Problem Pin
Rock Star.6-Mar-10 0:25
Rock Star.6-Mar-10 0:25 
AnswerRe: Multiview Problem Pin
Brij6-Mar-10 5:55
mentorBrij6-Mar-10 5:55 
QuestionPaging and Sorting Pin
SreejithKumar M6-Mar-10 0:04
SreejithKumar M6-Mar-10 0:04 
AnswerRe: Paging and Sorting Pin
Pranay Rana6-Mar-10 0:11
professionalPranay Rana6-Mar-10 0:11 
AnswerRe: Paging and Sorting Pin
Brij6-Mar-10 0:11
mentorBrij6-Mar-10 0:11 
AnswerRe: Paging and Sorting Pin
Abhijit Jana6-Mar-10 1:47
professionalAbhijit Jana6-Mar-10 1:47 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.