Control to use
-
Hi to All I just wanted to know what is the control actually we should use, to have something like 1. scrapbook of orkut...where we can have picture, text etc for every users or many users... 2. like the one in codeproject...where we all submit question..then answers in hierarchical way.. is it a data grid?
----------------------------- I am a beginner
-
Hi to All I just wanted to know what is the control actually we should use, to have something like 1. scrapbook of orkut...where we can have picture, text etc for every users or many users... 2. like the one in codeproject...where we all submit question..then answers in hierarchical way.. is it a data grid?
----------------------------- I am a beginner
hrishiS wrote:
scrapbook of orkut...where we can have picture, text etc for every users or many users
You can Go for Listview or repeater..!
hrishiS wrote:
like the one in codeproject...where we all submit question..then answers in hierarchical way..
Try this link JumpyForum: Inspired by Code Project Forum / Discussion / Message board[^]
MyFirstArticlePublished: MenuControlSelectedItem LatestArticle :Log4Net Why Do Some People Forget To Mark as Answer .If It Helps.
-
Hi to All I just wanted to know what is the control actually we should use, to have something like 1. scrapbook of orkut...where we can have picture, text etc for every users or many users... 2. like the one in codeproject...where we all submit question..then answers in hierarchical way.. is it a data grid?
----------------------------- I am a beginner
I don't know if I am interperting the question correctly, but on occasion for projects that involve having different pictures and text for users/products I use a panel or div control and then just dynamically place the controls per each data row in there. So, assume I have a panel control named "panel1" on the aspx file, I would then use something like this in my code behind:
DataReader dr1 = Connection1.Read()
While (dr1.Read)
{
Image pictureBox1 = new Image();
TextBox tb1 = new TextBox();pictureBox1.ImageURL = dr1["imageLocation"].toString();
tb1.Text = dr1["textBlurb"].toString();panel1.Controls.Add(pictureBox1);
panel1.Controls.Add(tb1);
}Then I just work on formatting the layout using the css. Hope this helps! :)
Knowledge is not power, however, the acquisition and appropriate application of knowledge can make you a very powerful individual.
-
Hi to All I just wanted to know what is the control actually we should use, to have something like 1. scrapbook of orkut...where we can have picture, text etc for every users or many users... 2. like the one in codeproject...where we all submit question..then answers in hierarchical way.. is it a data grid?
----------------------------- I am a beginner
Hello, I would recomend a ListView http://msdn.microsoft.com/en-us/library/bb515102.aspx[^] Use this Link for a walkthrough on how to use a List View.