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

php soap client and soap client xml request

calling webservice from php is easy now for this we can use SoapClient object . we can do this in two ways first we will see when you have wsdl url like soap service of weather $client = new SoapClient(“https://graphical.weather.gov/xml/SOAP_server/ndfdXMLserver.php?wsdl”); $res = $client->GetWeather(array(‘CityName’ => ‘Islamabad’, ‘CountryName’ => ‘Pakistan’)); dump($res) In

Continue reading