Database | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Database

Can we use common database for website(ASP.NET) and android application?? If yes then how??

3rd Jul 2019, 5:16 PM
nency
nency - avatar
1 Answer
+ 1
This is easy to do. For example, you can add a PreInit handler such as the following to a Web Form: protected void Page_PreInit(object sender, EventArgs e) { if (Request.Browser.IsMobileDevice) MasterPageFile = "~/Mobile.Master"; } Now, create a master page called Mobile.Master in the top-level folder of your application, and it will be used when a mobile device is detected. Your mobile master page can reference a mobile-specific CSS stylesheet if necessary. Desktop visitors will still see your default master page, not the mobile one.
3rd Jul 2019, 6:18 PM
PRIYANK TRIVEDI
PRIYANK TRIVEDI - avatar