Wednesday, 29 January 2014

Different Between Linq and Entity Data Model

Linq to Sql 
-------------------- 
1) Its only works with Sql server. 
2) Used for rapid application development. 
3) It does not support for complex type. 
4) It can't generate db from model. 
5) Mapping type ( class to single table) 
6) We can query data using DataContext. 

Entity framework 
-------------------- 
1) Its works with variety of db products. 
2) Can not used for rapid application development. 
3) It provides support for complex type. 
4) It can generate db from model. 
5) Mapping type ( class to multiple tables) 
6) We can query data using esql,object services,entity client and linq to entities.

Saturday, 21 September 2013

10 amazing iOs7 secret features

iOs7 secret feature :

1) You can easy ti Block Messages and Calls

many time we can block unexpected  all dummy call and message through ios get your carrier to
iOS 7 allows users to block unwanted phone calls, text messages and FaceTime calls. Really, this should have been a standard feature in 2007 when the iPhone debuted. handle the task and if you want to block someone from send call and messages  just go to the phone/settings/messages and fine block section then block the call and messages.

2) Audio-Only FaceTime Calls Without Your Face

Those FaceTime video calls can now place audio-only FaceTime calls. Just initiate the call the same way you would with video but click the phone icon instead. If you want to reach another iOS or OS X user without burn your cellular time, or you just look like crap and don't want anyone to see you, then you can ring them via FaceTime.
 3)  Night Mode and Maps Bookmarks Can Be Shared Across Devices

You current Sharing Maps bookmarks in iOS devices will be useful, but the add of Apple's Maps app to the company's forthcoming desktop operating system,  bright white screen in your face, like when you're drive some where  at night. Apple's Maps app automatically settings on based on the time and provides you with a darker interface so you don't blind yourself while driving.

4) Notifications Only Live Once
 If you have multiple iOS devices on the same Apple ID , common things for developers or families receive a notification used to mean see that notification on every device. No longer. Dismissing a notification on iOS 7 dismisses it across a

5)  Find My iPhone Activation Lock

Apple has been create iOS devices a  more secure by additional password protection to the Find My iPhone off-switch. What's more, users can also now send a custom message to a lost iPhone even after the device on then get the messages.
ll associated devices.

6) Automatic App Updates

Once you have many screens worth of apps, keep them updated become a full-time job. With iOS 7, you have the option to set your apps to update themselves.

7)  New Sounds

iOS devices desperately nee fresh set ringtones, alerts, alarms and system sounds. iOS 7 delivers. The ringtones are worth a listen if you're not into making your own.

8)  Automatically Join Trusted Free Wi-Fi Hotspots support

The HotSpot technical special is a strong connecting to WiFi access points without the burden of network selection and password entry, but with the security benefits of encryption. iOS 7 make joining free, trusted Wi-Fi hotspots much easy because you don't have to do anything at all. If you come in contact with AT&T Wi-Fi.


9) Infinite Folders

You can work With iOS 7, you can now put as many apps as you like into create  home screen folder.

if you are learn more about iOs7 release date, features and dowload Details
   

iOs7 release date, features and download Details

Now, finally Apple released iOS 7 to developers and user. It’s a full redesigned interface. There is talk in the news and rumours that a new iPhone is iOS 7 and it looks like that both the Device and the Operating System will be released at the same time. We’ve fielded several questions about when Apple’s new mobile software, iOS 7 will be available for download today. And it’s been one of the top searches on Google lately.

iOs7 update with secrete feature ios7 has finally check out, but everything is peachy in the world of Apple's users as many are report bugs when trying to bump exist iPhone handset up to the latest version.

ios7-release-date-download-feature
Apple’s servers download to slow to a crawl for most of this afternoon. Again, neither of these things are guaranteed, but that’s what’s happened in the past. If you download iOS 7 as soon as humanly possible, repeatedly checking your device for updates or repeatedly checking the on your computer for updates would be a fine activity.

Some people – and this is going to sound crazyy – even wait weeks for the first minor iOS 7 update to roll out, which generally addresses various glitches and bugs people experience with the initial installation.

Friday, 16 August 2013

What is MVC Architecture (Model - View - Controller) ?

Model:
It handles  maintaining data and database works part. Model proceses events sent by controller. After processing completed these events then it sends processed data to controller (thus, controller may reprocess it) or directly to view side.
It responds to the request from the view and it also responds to instructions from the controller to update itself

View:This is responsible for displaying all or a part of  data to  user interface to show to the user. Controller or model tells view what to show the user. and view handles requests from user and informs controller.

 They are script based templating systems like JSP, ASP, PHP and very easy to integrate with AJAX technology.
Controller:Software Code also Controller is like brain of the system. that controls the interactions between the Model and View Because it processes every request, prepares another parts of the system like model and view.
The controller receives the input, it validates the input and then performs the business operation that modifies the state of the data model.  





Web user control in asp.net-2

 Web user control in asp.net-2



Web user control in asp.net-1

 Web user control in asp.net-1  




how to create simple chart control in asp net

 how to create simple chart control in asp.net




chart control with databse in asp net-1 video


chart control with databse in asp net-1

 how to use chart control in asp.net with example tutorial



Thursday, 15 August 2013

what is hidden field control in asp.net

Hidden field is a control which is used to store small amounts of data on the client.
It store one value for the variable and it is a preferable way when a variable's value is changed frequently. Hidden field control is not rendered to the client (browser) and it is invisible on the browser.
A hidden field was stored in client side and we can change the runtime value change of hidden filed.

See the simple example how to use a hidden field.

to write in aspx file:
<asp:HiddenField ID="HiddenField1" runat="server"  />  
 
to write in .cs file
if (HiddenField1.Value != null)
   {
    int val= Convert.ToInt32(HiddenField1.Value) + 1;
    HiddenField1.Value = val.ToString();
    Label1.Text = val.ToString();
   }

what is session state in asp.net

Session : session is Server Side saving your data for the session you are using the site, in the memory and that is defined in web.config for session state section otherwise 20 mins by default.

Advantages:
  • It easy implement and we can store any kind of object.
  • It helps handle user state and data all over the application.
  • Stores client data separately.
  • Session is secure and transparent from the user.

Disadvantages:

  • Performance overhead in case of large volumes of data/user, because session data is stored in server memory.
Who to create session like :
 
 protected void btnok_Click(object sender, EventArgs e)
{
Session["FirstName"] = txtfName.Text;
Session["LastAge"] = txtLast.Text;
Response.Redirect("Default2.aspx");
}

 
The session state is used to maintain the session of each user throughout the
application. Session allows information to be stored in one page and access in
another page and support any type of object. they will show username in all
the pages for that they will store username in session and they will access
that session username in all the pages.  

How to fetch the record  from session like:

if(!IsPostBack)
{
     //if session is null then manual provide session value
      if (Session["FirstName"] == null && Session["LastName"] ==null)
      {
          Session["FirstName"] = "Bhavesh";
           Session["LastName"] = "  Thumar";
 
           lblMsg.Text = "Welcome " + Session["FirstName"] + Session["LastName"];
     }
else
{
      //to print session value
       lblString.Text = Session["FirstName"]+" " + Session["LastName"];
       lblfName.Text = Session["FirstName"].ToString();
       lbllName.Text = Session["LastName"].ToString();
   }
}