I have an C# solution where I already imported custom seattle.master page.

For that page, in top ribbon I have to dynamically bind data from SQL Server data. Whenever the user clicks on the URL on top ribbon data should be bind from SQL Server table.

Do I need to create class for the existing master template in my solution?


You could develop a custom web part to call the data from SQL Server instead of import C# Solution to your master page.

Please check this demo to create custom web part and call SQL Database:

Calling SQL Server from SharePoint Web-Part with Impersonation

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.