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
This is a companion discussion topic for the original entry at https://our.umbraco.com/forum/29879-how-to-find-the-current-template-id-and-name-in-the-usercontrol