This is exactly what I'd like to understand - when and where.
But think, even the placeholder will not be a good alternative.
More I think about it - more I incline to the idea, that the best decision in my case would be
to write the kind of page generator, that will create "static" aspx pages (about 100)
on the base of page template and type definitions from the DB.
This has to provide the performance benefit, yet supporting the desired level of flexibility and
managability. I hope ...
For your simple example panels would be good. If you're doing anything really complex though you could take a look at an article I wrote about handling views here: http://www.codeproject.com/useritems/ViewManagerTutorial.asp
Just one more option. I'm honestly not sure how much of a performance impact this would have versus panels. Because of the simplicity of the class though I would have to lean towards that it may be a leaner solution.
If anyone has any discrete data to the contrary please correct me!
Concerning viewmanager, and also multiview and view controls - suppose I can use them,
say, to implement the tabs. But not in the case in question.
I think, it's not a good idea - generate 100 views per user request to always show him only one.
Or I didn't understand something?
To understand what type of site I mean - two links to the same site:
Ahh I see what you're going for. Honestly in that situation I would use the view manager. The reason for that is that the purpose of the class is always to show just one view. The ViewManager only stores references to the controls which I believe should be pretty inexpensive and the time it would take to initialize it should be trivial.
Also when you have such a complicated view it seems like it would be nice to be able to initialize it with a single call.
Whenever I am composing a new email whenreading it in Outlook 2007 the words don't wrap at the end of a line on the right hand side of the screen. I used to use float=right and used to work in outlook 2003.
There is probably a really easy fix but I 'm drawing a blank on this one. Can anyone tell me how to make the make this happen?
I am inserting data from one form into two linked tables "Student" and "Grade" linked together by the Grade_ID column which is a primary key in the Grade table and a forgien key in the Student table. After i insert the data i go to the database to see that the primary key
in the Grade table is inserted and its ok but the forgien key in the student table is still null. How can i link them together so that the forgien key in the Student table can take the same value as that in the grade table.
And please try to write something useful as subject.
Every thread that you have created have the same useless subject. "Help please" does nothing to distinguish the thread from other threads, and says absolutely nothing about the real subject of the thread.
Tell you what. That's a very good question. I have a clue about how you can do it. Maybe you can try it out. Here is how you do it.
Edit the Gridview template so that you get all the columns you want to update. To actually update it you can have an "instead of" trigger or a stored procedure which updates the values in the two tables.