but i have a got a scenario where i have to pass the property depending on the templates, i have got two templates which are using different document types, so if template1 get (Template1property1,......) similarly if Template2 get (Template2property1,......).
Is it possible to acheive something like this or is there a better way of working out this in a single user control,
How to find the current template id and name in the usercontrol
Hi ,
To look for current node we use ,
Node currentNode = Node.GetCurrent();
string myValue = currentNode.GetProperty("productDetails").Value;
lblProductDetails.Text = myValue;
but i have a got a scenario where i have to pass the property depending on the templates, i have got two templates which are using different document types, so if template1 get (Template1property1,......) similarly if Template2 get (Template2property1,......).
Is it possible to acheive something like this or is there a better way of working out this in a single user control,
Any assistance or help will be appreciated ,
Thanks
Hi. "Node.GetCurrent().template" should return the template ID, I suppose.
OK and then you have the TemplateId but now how can you get the Template Node from the ID?
is working on a reply...