Re: FORMVIEW CONTROL

Tech-Archive recommends: Fix windows errors by optimizing your registry



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


I have to make the tempalte programmatically because i have different
table
that i have to show in the formview and i have to show different table for
fifferent user.
If the user is "smith" i have to show the table 1 i f user is "john" i
have
to show table 2 and ... ....
"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

http://www.dotnetheaven.com/UploadFile/mahesh/DynamicTemplate05112005005542A
M/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
(datatable)'s
row 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.
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.


.



Relevant Pages

  • Re: unifying Styles of multiple documents
    ... Proof and Print as separate files, using RD fields to create a combined ... You can unify the styles in the separate documents by creating a template ... Save, Close, and Re-open each document, then turn "Automatically update ... I'm assembling a book from multiple documents with widely diverging ...
    (microsoft.public.mac.office.word)
  • Re: Architecture best practise
    ... template into a string and substitutes values in place of tokens and ... The notion is, apparently, that the UI should be completely separate ... from the code so that HTML designers can specify and amend ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Is it better to echo or leave as html?
    ... > Don't forget that a Template Engine is not supposed to separate PHP code ... > from HTML but business logic from presentation logic. ... I think Template engine purpose _is_ to separate html from code. ...
    (comp.lang.php)
  • Re: Templating engine?
    ... > and complete freedom in how you design and implement the logic. ... that it enforces the separation of markup and all logic (both presentation ... be separate, but I think it's more important to separate application logic ... template alone. ...
    (comp.lang.python)
  • Re: Templates: Option buttons/Check boxes
    ... The template does not recognize each "row" of options buttons as separate. ... I read an article that discussed choosing format + frame to be able to do ...
    (microsoft.public.word.docmanagement)