Re: FORMVIEW CONTROL
- From: stcheng@xxxxxxxxxxxxxxxxxxxx (Steven Cheng [MSFT])
- Date: Mon, 12 May 2008 03:01:58 GMT
Thanks for your reply DENTONE,
If the template for different users vary very much, it does need to use
separate template for them. However, I'm wondering how many users may
possibly exists in the application(each of which require its own template
of FormView)? Since so far the normal means to dynamically specify
template is loading a template from an existing file, if you have many
users, it will be not quite convenient to maintain large number of separate
template file.
If convenient, you can try pasting some of the different template for
different user here so that I can have a look at them to see whether we can
use some other means to resolve the problem.
BTW, have you resolved the original databinding data not display issue?
Sincerely,
Steven Cheng
Microsoft MSDN Online Support Lead
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
msdnmg@xxxxxxxxxxxxxx
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
From: "DENTONE" <dinodentone@xxxxxxxxxxxxxxxx>
Subject: Re: FORMVIEW CONTROL
Date: Fri, 9 May 2008 10:50:43 +0200
table
I have to make the tempalte programmatically because i have different
that i have to show in the formview and i have to show different table forhave
fifferent user.
If the user is "smith" i have to show the table 1 i f user is "john" i
to show table 2 and ... ....http://www.dotnetheaven.com/UploadFile/mahesh/DynamicTemplate05112005005542A
"Steven Cheng [MSFT]" <stcheng@xxxxxxxxxxxxxxxxxxxx> ha scritto nel
messaggio news:75WPh8asIHA.1788@xxxxxxxxxxxxxxxxxxxxxxxxx
Thanks for your quick response DENTONE,
For the new questions you mentioned:
1) How i can make the template programmtically
================
You mean you want to assign template programmtically for the FormView
control? Is there any particular requirement on this? Programmatically
assign template require much more code and will impact the performance.
to load template programmtically, you can save the template markup
template
in a separate file(such as .ascx) and use page.Loadtemplate to load it.
Here are some article introduce this:
#Loading ASP.NET Templates Dynamically
(datatable)'sM/DynamicTemplate.aspx?ArticleID=6d76b182-d79f-49a3-99d1-f063bae3a930
http://www.developerfusion.co.uk/show/4721/
2) I put it into the page_load.
===============
I think Page_Load event should be ok. Have you tried using some
Response.Write statement to printout the returned datasource
Pleaserow count? Also, if debugging is possible, you can set breakpoint and
check
the datasource object.
Please feel free to let me know if there is anything you unclear.
Sincerely,
Steven Cheng
Microsoft MSDN Online Support Lead
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you.
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notiffeel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
msdnmg@xxxxxxxxxxxxxx
==================================================
Get notification to my posts through email? Please refer to
ications.
==================================================
This posting is provided "AS IS" with no warranties, and confers no
rights.
.
- References:
- FORMVIEW CONTROL
- From: DENTONE
- RE: FORMVIEW CONTROL
- From: Steven Cheng [MSFT]
- Re: FORMVIEW CONTROL
- From: DENTONE
- Re: FORMVIEW CONTROL
- From: Steven Cheng [MSFT]
- Re: FORMVIEW CONTROL
- From: DENTONE
- FORMVIEW CONTROL
- Prev by Date: RE: ClickOnce deployment to Vista 64 bit problems
- Next by Date: RE: StackOverflowException
- Previous by thread: Re: FORMVIEW CONTROL
- Next by thread: ERROR Watching Mapped drive
- Index(es):
Relevant Pages
|