Scaffold the model

we can automatically generate create,update and delete classes from a model . 1:- In visual studio right click on pages folder and create new folder Pages 2:- Right click on this new folder and click Add > New Scaffolded Item. 3:- In the Add Scaffold dialog, select Razor Pages using Entity Framework (CRUD) > Add. 4:- complete this process

Continue reading

Android Show keyboard automatically

consider you want to show keyboard when new activity started and your edittext also have focus for this you can use following code EditText txtRecieverName=(EditText)findViewById(R.id.txtRecieverName); if(txtRecieverName!=null){ txtRecieverName.requestFocus(); getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_VISIBLE); }  

Continue reading