<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-3097267303962436651</id><updated>2012-02-16T03:32:33.666-08:00</updated><category term='How to create asp.net mobile website  4.0 / visual studio 2010'/><title type='text'>Tech solved</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://zamhareer.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3097267303962436651/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://zamhareer.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>zam</name><uri>http://www.blogger.com/profile/07397141242515655026</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>9</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-3097267303962436651.post-328488224115037228</id><published>2011-07-15T23:03:00.000-07:00</published><updated>2011-07-15T23:20:54.963-07:00</updated><title type='text'>File Upload Control C#</title><content type='html'>protected void Button1_Click(object sender, EventArgs e)&lt;br /&gt;{&lt;br /&gt;if (FileUpload1.HasFile)&lt;br /&gt;{&lt;br /&gt;    try&lt;br /&gt;    {&lt;br /&gt;        // SaveAs method of PostedFile property used&lt;br /&gt;        // to save the file at specified rooted path&lt;br /&gt;         FileUpload1.PostedFile.SaveAs(Server.MapPath("~/App_Data") +  System.IO.Path.DirectorySeparatorChar +  FileUpload1.PostedFile.FileName);&lt;br /&gt;&lt;br /&gt;        // success message&lt;br /&gt;        Label1.Text = "File " + FileUpload1.PostedFile.FileName + " uploaded successfully.";&lt;br /&gt;    }&lt;br /&gt;    catch (Exception ex)&lt;br /&gt;    {&lt;br /&gt;        // error message&lt;br /&gt;        Label1.Text = "Some problem occurred while uploading the file. Please try after some time.";&lt;br /&gt;    }&lt;br /&gt;}&lt;br /&gt;else&lt;br /&gt;{&lt;br /&gt;    // warning message&lt;br /&gt;    Label1.Text = "Please choose a file to upload.";&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;---------------------------------------------&lt;br /&gt;       &lt;div&gt;    &lt;/div&gt;       &lt;div&gt;    &lt;/div&gt;                      &lt;div id="navpanel"&gt;                 &lt;div class="topics"&gt;Topics&lt;/div&gt;                 &lt;div class="relatedEdge"&gt;                                                   &lt;ul id="relatedPostsList"&gt;&lt;li class="relatedTitle"&gt;Related Articles&lt;/li&gt;&lt;li class="relatedColor1"&gt;&lt;a href="http://programming.top54u.com/post/ASP-Net-FileUpload-File-type-filter-Validation-using-C-sharp-code.aspx" rel="bookmark"&gt;ASP.Net FileUpload File type filter Validation using C# code&lt;/a&gt;&lt;/li&gt;&lt;li class="relatedColor2"&gt;&lt;a href="http://programming.top54u.com/post/ASP-Net-FileUpload-File-Type-Filter-using-JavaScript-Validation.aspx" rel="bookmark"&gt;ASP.Net FileUpload File Type Filter using JavaScript Validation&lt;/a&gt;&lt;/li&gt;&lt;li class="relatedColor1"&gt;&lt;a href="http://programming.top54u.com/post/ASP-Net-FileUpload-Size-Limit-Example.aspx" rel="bookmark"&gt;ASP.Net FileUpload Size Limit Example&lt;/a&gt;&lt;/li&gt;&lt;li class="relatedColor2"&gt;&lt;a href="http://programming.top54u.com/post/ASP-Net-FileUpload-PostedFile-Property.aspx" rel="bookmark"&gt;ASP.Net FileUpload PostedFile Property&lt;/a&gt;&lt;/li&gt;&lt;li class="relatedColor1"&gt;&lt;a href="http://programming.top54u.com/post/ASP-Net-FileUpload-Control.aspx" rel="bookmark"&gt;ASP.Net FileUpload Control&lt;/a&gt;&lt;/li&gt;&lt;li class="relatedColor2 relatedPrefixTitle"&gt;Category&lt;/li&gt;&lt;li class="relatedLast1"&gt;&lt;a href="http://programming.top54u.com/category/ASP-NET-Tutorials.aspx" rel="category tag"&gt;ASP .NET Tutorials&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;                                                               &lt;div style="padding: 30px 0px 10px 10px"&gt;                           &lt;ins style="display:inline-table;border:none;height:600px;margin:0;padding:0;position:relative;visibility:visible;width:160px"&gt;&lt;ins id="aswift_0_anchor" style="display:block;border:none;height:600px;margin:0;padding:0;position:relative;visibility:visible;width:160px"&gt;&lt;/ins&gt;&lt;/ins&gt;                     &lt;/div&gt;                                                                                         &lt;/div&gt;             &lt;/div&gt;                                                &lt;div class="ptitle"&gt;         &lt;h1&gt;             ASP.Net File Upload Example using C# code&lt;/h1&gt;     &lt;/div&gt;     &lt;div class="pauthor"&gt;         &lt;i&gt;Updated on&lt;/i&gt;         20 Aug 2010, &lt;i&gt;Published on&lt;/i&gt;         30 Oct 2009     &lt;/div&gt;     &lt;div class="clear"&gt;     &lt;/div&gt; &lt;div id="socialBookmarksUpper" style="padding: 5px 0px 0px 2px;"&gt;          &lt;div class="left"&gt;     &lt;div class="left"&gt;     &lt;span&gt;&lt;/span&gt;     &lt;/div&gt;     &lt;div class="left"&gt;          &lt;/div&gt;     &lt;div class="left"&gt;                         &lt;/div&gt;                      &lt;/div&gt;         &lt;div class="clear"&gt;         &lt;/div&gt;     &lt;/div&gt;     &lt;div class="postStart"&gt;     &lt;/div&gt;                                                      &lt;div class="clear"&gt;         &lt;/div&gt;         &lt;p&gt;In the previous tutorial: &lt;a href="http://programming.top54u.com/post/ASP-Net-FileUpload-PostedFile-Property.aspx"&gt;&lt;strong&gt;ASP.Net FileUpload Control PostedFile property&lt;/strong&gt;&lt;/a&gt; we learnt about its accessible member properties and method. As it provides the object of &lt;strong&gt;HttpPostedFile class&lt;/strong&gt;  it points the memory stream of the uploaded file stored in the cache  area of server memory. You can access different attributes of the  uploaded file using the accessible properties of &lt;strong&gt;PostedFile property&lt;/strong&gt; of FileUpload control. In this tutorial we will use the simplest &lt;strong&gt;C# code&lt;/strong&gt;  to learn the very basic steps for uploading file selected from the  client’s computer system to the web server location specified in the  code.&lt;/p&gt; &lt;p&gt;Apart from FileUpload server control for uploading a file you need  very few things to write up a simplest C# code. First you need to verify  the state of the FileUpload control whether it contains a file or not  otherwise the properties accessed using FileUpload control object may  throw as error or exception of &lt;strong&gt;"System.NullReferenceException: Object reference not set to an instance of an object."&lt;/strong&gt;. You can use the &lt;strong&gt;HasFile property&lt;/strong&gt; to verify that the fileupload control contains a file that is to be uploaded.&lt;/p&gt; &lt;p&gt;Next you need a method to specify the location where to save the  uploaded file. The ASP.Net FileUpload control caches the file contents  into the server memory before executing the server code. That is why you  just need to call the &lt;strong&gt;SaveAs method&lt;/strong&gt; of PostedFile  object reference type property of fileupload control specified with  location where you want to save the uploaded file.&lt;/p&gt; &lt;h4&gt;Sample Code for ASP.Net File Uploading using C#&lt;/h4&gt; &lt;p&gt;&lt;strong&gt;HTML Code:&lt;/strong&gt;&lt;/p&gt; &lt;div class="code-html"&gt;&lt;asp:fileupload id="FileUpload1" runat="server"&gt;&lt;br /&gt;&lt;br /&gt;&lt;asp:button onclick="Button1_Click" id="Button1" runat="server" text="Submit"&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;asp:label id="Label1" runat="server"&gt;&lt;/asp:label&gt;&lt;/asp:button&gt;&lt;/asp:fileupload&gt;&lt;/div&gt; &lt;p&gt;In the HTML code we have used ASP.Net button control to provide the  server side code mechanism that will allow the user to upload the file  by clicking the button. You can specify your code in the associated  click event handler of button control to upload the file to the server.&lt;/p&gt; &lt;p&gt;&lt;strong&gt;C# Code:&lt;/strong&gt;&lt;/p&gt; &lt;div class="code-c"&gt;protected void Button1_Click(object sender, EventArgs e)&lt;br /&gt;{&lt;br /&gt; if (FileUpload1.HasFile)&lt;br /&gt; {&lt;br /&gt;     try&lt;br /&gt;     {&lt;br /&gt;         // SaveAs method of PostedFile property used&lt;br /&gt;         // to save the file at specified rooted path&lt;br /&gt;          FileUpload1.PostedFile.SaveAs(Server.MapPath("~/App_Data") +  System.IO.Path.DirectorySeparatorChar +  FileUpload1.PostedFile.FileName);&lt;br /&gt;&lt;br /&gt;         // success message&lt;br /&gt;         Label1.Text = "File " + FileUpload1.PostedFile.FileName + " uploaded successfully.";&lt;br /&gt;     }&lt;br /&gt;     catch (Exception ex)&lt;br /&gt;     {&lt;br /&gt;         // error message&lt;br /&gt;         Label1.Text = "Some problem occurred while uploading the file. Please try after some time.";&lt;br /&gt;     }&lt;br /&gt; }&lt;br /&gt; else&lt;br /&gt; {&lt;br /&gt;     // warning message&lt;br /&gt;     Label1.Text = "Please choose a file to upload.";&lt;br /&gt; }&lt;br /&gt;}&lt;/div&gt; &lt;p&gt;By default &lt;strong&gt;SaveAs method of PostedFile property&lt;/strong&gt; accepts the full rooted path to save the file at a specified location. You can use the &lt;strong&gt;Server.MapPath function&lt;/strong&gt;  to generate the full rooted path mapped according to the current web  application as we have done in the above C# code. You can enable or  disable the &lt;strong&gt;rooted path configuration&lt;/strong&gt; of SaveAs method by specifying it in the &lt;strong&gt;httpRuntime setting&lt;/strong&gt; of web.config file using &lt;strong&gt;requireRootedSaveAsPath attribute&lt;/strong&gt;.  It accepts the Boolean type value to enable/disable the feature. If you  will specify its value as “false” then SaveAs method automatically maps  the path to the "C:\Windows\System32" directory of the web server to  save the uploaded file. So, it is recommended to use the default value  for the requireRootedSaveAsPath configuration setting of SaveAs method.&lt;/p&gt; &lt;p&gt;You can specify the value for &lt;strong&gt;requireRootedSaveAsPath property&lt;/strong&gt; inside &lt;strong&gt;httpRuntime element&lt;/strong&gt; of &lt;strong&gt;system.web section&lt;/strong&gt; of web.config file as follows:&lt;/p&gt;&lt;p&gt;&lt;httpruntime requirerootedsaveaspath="true"&gt;&lt;/httpruntime&gt;&lt;/p&gt;&lt;p&gt;----------&lt;/p&gt;&lt;p&gt;&lt;httpruntime requirerootedsaveaspath="true"&gt;&lt;/httpruntime&gt;&lt;/p&gt;&lt;pre&gt;&lt;span class="C#-ReservedWordStyle"&gt;protected&lt;/span&gt;&lt;span class="C#-DefaultStyle"&gt; &lt;/span&gt;&lt;span class="C#-ReservedWordStyle"&gt;void&lt;/span&gt;&lt;span class="C#-DefaultStyle"&gt; UploadButton_Click(&lt;/span&gt;&lt;span class="C#-NativeTypeStyle"&gt;object&lt;/span&gt;&lt;span class="C#-DefaultStyle"&gt; sender, EventArgs e) {     &lt;/span&gt;&lt;span class="C#-ReservedWordStyle"&gt;if&lt;/span&gt;&lt;span class="C#-DefaultStyle"&gt;(FileUploadControl.HasFile)     {         &lt;/span&gt;&lt;span class="C#-ReservedWordStyle"&gt;try&lt;/span&gt;&lt;span class="C#-DefaultStyle"&gt;         {             &lt;/span&gt;&lt;span class="C#-ReservedWordStyle"&gt;if&lt;/span&gt;&lt;span class="C#-DefaultStyle"&gt;(FileUploadControl.PostedFile.ContentType &lt;/span&gt;&lt;span class="C#-OperatorStyle"&gt;==&lt;/span&gt;&lt;span class="C#-DefaultStyle"&gt; &lt;/span&gt;&lt;span class="C#-StringDelimiterStyle"&gt;"&lt;/span&gt;&lt;span class="C#-StringDefaultStyle"&gt;image/jpeg&lt;/span&gt;&lt;span class="C#-StringDelimiterStyle"&gt;"&lt;/span&gt;&lt;span class="C#-DefaultStyle"&gt;)             {                 &lt;/span&gt;&lt;span class="C#-ReservedWordStyle"&gt;if&lt;/span&gt;&lt;span class="C#-DefaultStyle"&gt;(FileUploadControl.PostedFile.ContentLength &lt;/span&gt;&lt;span class="C#-OperatorStyle"&gt;&amp;lt;&lt;/span&gt;&lt;span class="C#-DefaultStyle"&gt; &lt;/span&gt;&lt;span class="C#-NumberStyle"&gt;102400&lt;/span&gt;&lt;span class="C#-DefaultStyle"&gt;)                 {                     &lt;/span&gt;&lt;span class="C#-NativeTypeStyle"&gt;string&lt;/span&gt;&lt;span class="C#-DefaultStyle"&gt; filename &lt;/span&gt;&lt;span class="C#-OperatorStyle"&gt;=&lt;/span&gt;&lt;span class="C#-DefaultStyle"&gt; Path.GetFileName(FileUploadControl.FileName);                     FileUploadControl.SaveAs(Server.MapPath(&lt;/span&gt;&lt;span class="C#-StringDelimiterStyle"&gt;"&lt;/span&gt;&lt;span class="C#-StringDefaultStyle"&gt;~/&lt;/span&gt;&lt;span class="C#-StringDelimiterStyle"&gt;"&lt;/span&gt;&lt;span class="C#-DefaultStyle"&gt;) &lt;/span&gt;&lt;span class="C#-OperatorStyle"&gt;+&lt;/span&gt;&lt;span class="C#-DefaultStyle"&gt; filename);                     StatusLabel.Text &lt;/span&gt;&lt;span class="C#-OperatorStyle"&gt;=&lt;/span&gt;&lt;span class="C#-DefaultStyle"&gt; &lt;/span&gt;&lt;span class="C#-StringDelimiterStyle"&gt;"&lt;/span&gt;&lt;span class="C#-StringDefaultStyle"&gt;Upload status: File uploaded!&lt;/span&gt;&lt;span class="C#-StringDelimiterStyle"&gt;"&lt;/span&gt;&lt;span class="C#-DefaultStyle"&gt;;                 }                 &lt;/span&gt;&lt;span class="C#-ReservedWordStyle"&gt;else&lt;/span&gt;&lt;span class="C#-DefaultStyle"&gt;                     StatusLabel.Text &lt;/span&gt;&lt;span class="C#-OperatorStyle"&gt;=&lt;/span&gt;&lt;span class="C#-DefaultStyle"&gt; &lt;/span&gt;&lt;span class="C#-StringDelimiterStyle"&gt;"&lt;/span&gt;&lt;span class="C#-StringDefaultStyle"&gt;Upload status: The file has to be less than 100 kb!&lt;/span&gt;&lt;span class="C#-StringDelimiterStyle"&gt;"&lt;/span&gt;&lt;span class="C#-DefaultStyle"&gt;;             }             &lt;/span&gt;&lt;span class="C#-ReservedWordStyle"&gt;else&lt;/span&gt;&lt;span class="C#-DefaultStyle"&gt;                 StatusLabel.Text &lt;/span&gt;&lt;span class="C#-OperatorStyle"&gt;=&lt;/span&gt;&lt;span class="C#-DefaultStyle"&gt; &lt;/span&gt;&lt;span class="C#-StringDelimiterStyle"&gt;"&lt;/span&gt;&lt;span class="C#-StringDefaultStyle"&gt;Upload status: Only JPEG files are accepted!&lt;/span&gt;&lt;span class="C#-StringDelimiterStyle"&gt;"&lt;/span&gt;&lt;span class="C#-DefaultStyle"&gt;;         }         &lt;/span&gt;&lt;span class="C#-ReservedWordStyle"&gt;catch&lt;/span&gt;&lt;span class="C#-DefaultStyle"&gt;(Exception ex)         {             StatusLabel.Text &lt;/span&gt;&lt;span class="C#-OperatorStyle"&gt;=&lt;/span&gt;&lt;span class="C#-DefaultStyle"&gt; &lt;/span&gt;&lt;span class="C#-StringDelimiterStyle"&gt;"&lt;/span&gt;&lt;span class="C#-StringDefaultStyle"&gt;Upload status: The file could not be uploaded. The following error occured: &lt;/span&gt;&lt;span class="C#-StringDelimiterStyle"&gt;"&lt;/span&gt;&lt;span class="C#-DefaultStyle"&gt; &lt;/span&gt;&lt;span class="C#-OperatorStyle"&gt;+&lt;/span&gt;&lt;span class="C#-DefaultStyle"&gt; ex.Message;         }     } }&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;protected void UploadButton_Click(object sender, EventArgs e)&lt;br /&gt;{&lt;br /&gt;  if(FileUploadControl.HasFile)&lt;br /&gt;  {&lt;br /&gt;      try&lt;br /&gt;      {&lt;br /&gt;          if(FileUploadControl.PostedFile.ContentType == "image/jpeg")&lt;br /&gt;          {&lt;br /&gt;              if(FileUploadControl.PostedFile.ContentLength &amp;lt; 102400)&lt;br /&gt;              {&lt;br /&gt;                  string filename = Path.GetFileName(FileUploadControl.FileName);&lt;br /&gt;                  FileUploadControl.SaveAs(Server.MapPath("~/") + filename);&lt;br /&gt;                  StatusLabel.Text = "Upload status: File uploaded!";&lt;br /&gt;              }&lt;br /&gt;              else&lt;br /&gt;                  StatusLabel.Text = "Upload status: The file has to be less than 100 kb!";&lt;br /&gt;          }&lt;br /&gt;          else&lt;br /&gt;              StatusLabel.Text = "Upload status: Only JPEG files are accepted!";&lt;br /&gt;      }&lt;br /&gt;      catch(Exception ex)&lt;br /&gt;      {&lt;br /&gt;          StatusLabel.Text = "Upload status: The file could not be uploaded. The following error occured: " + ex.Message;&lt;br /&gt;      }&lt;br /&gt;  }&lt;br /&gt;}&lt;br /&gt;&lt;/span&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3097267303962436651-328488224115037228?l=zamhareer.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zamhareer.blogspot.com/feeds/328488224115037228/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3097267303962436651&amp;postID=328488224115037228' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3097267303962436651/posts/default/328488224115037228'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3097267303962436651/posts/default/328488224115037228'/><link rel='alternate' type='text/html' href='http://zamhareer.blogspot.com/2011/07/file-upload-control-c.html' title='File Upload Control C#'/><author><name>zam</name><uri>http://www.blogger.com/profile/07397141242515655026</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3097267303962436651.post-7214869596417045479</id><published>2011-05-26T23:46:00.000-07:00</published><updated>2011-05-26T23:51:12.691-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='How to create asp.net mobile website  4.0 / visual studio 2010'/><title type='text'>ASP.NET Web Sites for Mobile Devices  4.0 ,  visual studio  2010</title><content type='html'>&lt;p&gt;Developing ASP.NET pages for mobile device browsers does not differ  substantially from developing pages for desktop browsers. To help you  create applications for mobile devices, ASP.NET provides a &lt;span&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/system.web.mobile.aspx"&gt;System.Web.Mobile&lt;/a&gt;&lt;/span&gt; namespace devoted specifically to mobile Web development. &lt;/p&gt;&lt;p&gt;You can create a Web page from the &lt;span&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/system.web.ui.mobilecontrols.mobilepage.aspx"&gt;MobilePage&lt;/a&gt;&lt;/span&gt; base class and add controls from the &lt;span&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/system.web.mobile.aspx"&gt;System.Web.Mobile&lt;/a&gt;&lt;/span&gt;  namespace. This namespace defines a suite of Web server controls and  adapters that are especially useful when creating applications that need  to be available to many different mobile devices, such as cell phones.&lt;/p&gt;&lt;p&gt;ASP.NET  also provides a control-adaptive architecture that allows custom device  adapters to be created for ASP.NET Web server controls. The adapters  can create custom rendering for a control based on the requesting  browser. With the adaptive architecture, you can create custom adapters  for ASP.NET Web server controls to render output specific to the devices  that access your application on desktop browsers.&lt;/p&gt;&lt;p&gt;Whether  developing for desktop browsers or mobile devices, development follows  the standard .NET event-driven model in which your application responds  to user requests, button clicks, and so on.&lt;/p&gt;&lt;p&gt;http://msdn.microsoft.com/en-us/library/ms178619.aspx#MobileApplicationArchitecture&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3097267303962436651-7214869596417045479?l=zamhareer.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zamhareer.blogspot.com/feeds/7214869596417045479/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3097267303962436651&amp;postID=7214869596417045479' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3097267303962436651/posts/default/7214869596417045479'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3097267303962436651/posts/default/7214869596417045479'/><link rel='alternate' type='text/html' href='http://zamhareer.blogspot.com/2011/05/aspnet-web-sites-for-mobile-devices-40.html' title='ASP.NET Web Sites for Mobile Devices  4.0 ,  visual studio  2010'/><author><name>zam</name><uri>http://www.blogger.com/profile/07397141242515655026</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3097267303962436651.post-7717519858457440919</id><published>2011-01-16T22:12:00.000-08:00</published><updated>2011-01-16T22:21:41.670-08:00</updated><title type='text'>How to uninstall deep freeze   - defreeze.exe</title><content type='html'>&lt;span id="ctl00_ctl00_MainColumn_CenterColumn_ThreadSolutions1_Repeater1_ctl00_lblSolution"&gt;To uninstall the software Deep Freeze must first be disabled and  then uninstalled.&lt;br /&gt;To disable Deep Freeze:&lt;br /&gt;&lt;br /&gt;&lt;/span&gt; &lt;div class="solution-text"&gt;&lt;span id="ctl00_ctl00_MainColumn_CenterColumn_ThreadSolutions1_Repeater1_ctl00_lblSolution"&gt;&lt;ol&gt;&lt;li class="h_mi"&gt;Hold down the shift key and double-click on the  Deep Freeze icon. Alternatively, you can press Crtl-Alt-Shift-F6. You should now  see a password dialog.  &lt;/li&gt;&lt;li class="h_mi"&gt;Enter your password and click OK. If you have not  yet entered a password you should be able to click OK without entering anything.  You should now see a dialog with boot options.  &lt;/li&gt;&lt;li class="h_mi"&gt;Select "Boot thawed" and click OK. This will  disable Deep Freeze on the next reboot.  &lt;/li&gt;&lt;li class="h_mi"&gt;Reboot your machine. After the machine reboots  you are ready to uninstall Deep Freeze.&lt;/li&gt;&lt;/ol&gt;To uninstall:&lt;br /&gt;&lt;ol&gt;&lt;li class="h_mi"&gt;Locate the installation file you used to install  Deep Freeze to this machine. By default the name of this file is called  "DF5Std.exe" for versions 5.X and "DF6Std.exe" for versions 6.X.  &lt;/li&gt;&lt;li class="h_mi"&gt;Run the installation file (DF5Std.exe or  DF6Std.exe).  &lt;/li&gt;&lt;li class="h_mi"&gt;Select the option to "Uninstall"  &lt;/li&gt;&lt;li class="h_mi"&gt;The software should uninstall and reboot the  machine. When the machine reboots, Deep Freeze should be  uninstalled.&lt;/li&gt;&lt;/ol&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3097267303962436651-7717519858457440919?l=zamhareer.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zamhareer.blogspot.com/feeds/7717519858457440919/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3097267303962436651&amp;postID=7717519858457440919' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3097267303962436651/posts/default/7717519858457440919'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3097267303962436651/posts/default/7717519858457440919'/><link rel='alternate' type='text/html' href='http://zamhareer.blogspot.com/2011/01/how-to-uninstall-deep-freeze-from-your.html' title='How to uninstall deep freeze   - defreeze.exe'/><author><name>zam</name><uri>http://www.blogger.com/profile/07397141242515655026</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3097267303962436651.post-654537428443897568</id><published>2008-06-18T20:42:00.001-07:00</published><updated>2008-06-18T20:42:57.059-07:00</updated><title type='text'>SqlDataadapter</title><content type='html'>//*** don't run more than once ***&lt;br /&gt;  String selectCommand = "SELECT EmployeeID FROM Employees";&lt;br /&gt;  SqlConnection conn = new SqlConnection(ConfigurationSettings.AppSettings["Sql_ConnectString"]);&lt;br /&gt;  SqlDataAdapter da = new SqlDataAdapter(selectCommand, conn);&lt;br /&gt;&lt;br /&gt;  DataTable table = new DataTable("Employees");&lt;br /&gt;  da.FillSchema(table, SchemaType.Source);&lt;br /&gt;  da.Fill(table);&lt;br /&gt;&lt;br /&gt;  conn.Open();&lt;br /&gt;  foreach(DataRow row in table.Rows)&lt;br /&gt;  {&lt;br /&gt;   Int32 employeeId = (Int32)row["EmployeeID"];&lt;br /&gt;&lt;br /&gt;   String sqlRead = "SELECT Photo FROM Employees WHERE EmployeeID=" + employeeId;&lt;br /&gt;   SqlCommand cmdRead = new SqlCommand(sqlRead, conn);&lt;br /&gt;&lt;br /&gt;   MemoryStream ms = new MemoryStream();&lt;br /&gt;   Byte[] image = (Byte[])cmdRead.ExecuteScalar();&lt;br /&gt;   ms.Write(image, MSACCESSIMAGEOFFSET, image.Length - MSACCESSIMAGEOFFSET);&lt;br /&gt;&lt;br /&gt;   String sqlWrite = "UPDATE Employees SET Photo = @Photo WHERE EmployeeID=" + employeeId;&lt;br /&gt;   SqlCommand cmdWrite = new SqlCommand(sqlWrite, conn);&lt;br /&gt;&lt;br /&gt;   //Create parameter for insert command and add to SqlCommand object.&lt;br /&gt;   SqlParameter prm = new  SqlParameter("@Photo", SqlDbType.VarBinary, ms.ToArray().Length, ParameterDirection.Input, false,&lt;br /&gt;    0, 0, null, DataRowVersion.Current, ms.ToArray());&lt;br /&gt;   cmdWrite.Parameters.Add(prm);&lt;br /&gt;&lt;br /&gt;   //Execute query.&lt;br /&gt;   cmdWrite.ExecuteNonQuery();&lt;br /&gt;  }&lt;br /&gt;  conn.Close();&lt;br /&gt; }&lt;br /&gt;}&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3097267303962436651-654537428443897568?l=zamhareer.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zamhareer.blogspot.com/feeds/654537428443897568/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3097267303962436651&amp;postID=654537428443897568' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3097267303962436651/posts/default/654537428443897568'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3097267303962436651/posts/default/654537428443897568'/><link rel='alternate' type='text/html' href='http://zamhareer.blogspot.com/2008/06/sqldataadapter.html' title='SqlDataadapter'/><author><name>zam</name><uri>http://www.blogger.com/profile/07397141242515655026</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3097267303962436651.post-77286238585946629</id><published>2008-06-18T20:00:00.000-07:00</published><updated>2008-06-18T20:22:50.963-07:00</updated><title type='text'>Query String</title><content type='html'>Response.Redirect("Welcomepage.aspx?Name=Zam&amp;place=kerala");&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;  Response.Write("My details    " +"Name :" +Request.QueryString["Name"]+"   "+"Place  :"+Request.QueryString["place"]);&lt;br /&gt;Response.Write("Hello" + Request.QueryString["Name"]);&lt;br /&gt;&lt;br /&gt;session&lt;br /&gt;------&lt;br /&gt;Session["Name"] = "World   hello ";&lt;br /&gt;&lt;br /&gt; Response.Redirect("WebForm3.aspx");&lt;br /&gt;2nd page&lt;br /&gt; Response.Write("Name::::" + Session["Name"]);&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3097267303962436651-77286238585946629?l=zamhareer.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zamhareer.blogspot.com/feeds/77286238585946629/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3097267303962436651&amp;postID=77286238585946629' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3097267303962436651/posts/default/77286238585946629'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3097267303962436651/posts/default/77286238585946629'/><link rel='alternate' type='text/html' href='http://zamhareer.blogspot.com/2008/06/query-string.html' title='Query String'/><author><name>zam</name><uri>http://www.blogger.com/profile/07397141242515655026</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3097267303962436651.post-5122205414117976974</id><published>2008-06-10T20:14:00.001-07:00</published><updated>2008-06-10T20:16:13.014-07:00</updated><title type='text'>System.Diagnostics.Process.Start</title><content type='html'>StreamWriter sw;&lt;br /&gt;        private void button1_Click(object sender, EventArgs e)&lt;br /&gt;        {&lt;br /&gt;            sw = File.CreateText("C:\\Zm1.html");&lt;br /&gt;            sw.WriteLine("HTML&gt;HEAD&gt;TITLE&gt;/TITLE&gt;/HEAD&gt;");&lt;br /&gt;            sw.WriteLine("BODY&gt;H1&gt;HELLO/H1&gt;/BODY&gt;");&lt;br /&gt;            sw.WriteLine("/HTML&gt;");&lt;br /&gt;            sw.Close();&lt;br /&gt;        }&lt;br /&gt;&lt;br /&gt;        private void button2_Click(object sender, EventArgs e)&lt;br /&gt;        {&lt;br /&gt;&lt;br /&gt;            System.Diagnostics.Process.Start("iexplore", "C:\\Zm1.html");&lt;br /&gt;        }&lt;br /&gt;    }&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3097267303962436651-5122205414117976974?l=zamhareer.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zamhareer.blogspot.com/feeds/5122205414117976974/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3097267303962436651&amp;postID=5122205414117976974' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3097267303962436651/posts/default/5122205414117976974'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3097267303962436651/posts/default/5122205414117976974'/><link rel='alternate' type='text/html' href='http://zamhareer.blogspot.com/2008/06/systemdiagnosticsprocessstart.html' title='System.Diagnostics.Process.Start'/><author><name>zam</name><uri>http://www.blogger.com/profile/07397141242515655026</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3097267303962436651.post-8608202801493136403</id><published>2008-06-06T05:57:00.000-07:00</published><updated>2008-06-06T05:59:29.021-07:00</updated><title type='text'>deepZoom key strock</title><content type='html'>public partial class Page : UserControl&lt;br /&gt;{&lt;br /&gt;Point _currentMousePosition = new Point();&lt;br /&gt;public Page()&lt;br /&gt;{&lt;br /&gt;InitializeComponent();&lt;br /&gt;initializeEvents();&lt;br /&gt;}&lt;br /&gt;private void initializeEvents()&lt;br /&gt;{&lt;br /&gt;this.MouseMove += new MouseEventHandler(Page_MouseMove);&lt;br /&gt;this.KeyDown += new KeyEventHandler(Page_KeyDown);&lt;br /&gt;}&lt;br /&gt;void Page_KeyDown(object sender, KeyEventArgs e)&lt;br /&gt;{&lt;br /&gt;if (e.Key == Key.W) // zoom in&lt;br /&gt;Zoom(1.2f, _currentMousePosition);&lt;br /&gt;if (e.Key == Key.S) // zoom out&lt;br /&gt;Zoom(0.8f, _currentMousePosition);&lt;br /&gt;}&lt;br /&gt;void Page_MouseMove(object sender, MouseEventArgs e)&lt;br /&gt;{&lt;br /&gt;_currentMousePosition = e.GetPosition(this);&lt;br /&gt;}&lt;br /&gt;private void Zoom(double zoomFactor, Point pointToZoom)&lt;br /&gt;{&lt;br /&gt;Point logicalPoint = dzo.ElementToLogicalPoint(pointToZoom);&lt;br /&gt;dzo.ZoomAboutLogicalPoint(zoomFactor, logicalPoint.X, logicalPoint.Y);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;}&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3097267303962436651-8608202801493136403?l=zamhareer.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zamhareer.blogspot.com/feeds/8608202801493136403/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3097267303962436651&amp;postID=8608202801493136403' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3097267303962436651/posts/default/8608202801493136403'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3097267303962436651/posts/default/8608202801493136403'/><link rel='alternate' type='text/html' href='http://zamhareer.blogspot.com/2008/06/deepzoom-key-stock.html' title='deepZoom key strock'/><author><name>zam</name><uri>http://www.blogger.com/profile/07397141242515655026</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3097267303962436651.post-4139489103193967770</id><published>2008-06-02T02:16:00.000-07:00</published><updated>2008-06-02T02:24:48.921-07:00</updated><title type='text'>ASP.NET AJAX Extensions 1.0</title><content type='html'>One of the excellent features of ASP.NET AJAX Extensions 1.0 is the UpdatePanel control. The UpdatePanel control enables partial-page rendering in an ASP.NET Web page asynchronously. The contents of the UpdatePanel control will automatically update when a postback event is invoked. This control does work the same as the MagicAjax.net panel control. The UpdateProgress control is very useful when working with the UpdatePanel control. With an UpdateProgress control, you can show the status during the partial-page rendering of an UpdatePanel&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3097267303962436651-4139489103193967770?l=zamhareer.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zamhareer.blogspot.com/feeds/4139489103193967770/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3097267303962436651&amp;postID=4139489103193967770' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3097267303962436651/posts/default/4139489103193967770'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3097267303962436651/posts/default/4139489103193967770'/><link rel='alternate' type='text/html' href='http://zamhareer.blogspot.com/2008/06/aspnet-ajax-extensions-10.html' title='ASP.NET AJAX Extensions 1.0'/><author><name>zam</name><uri>http://www.blogger.com/profile/07397141242515655026</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3097267303962436651.post-8475726673537690055</id><published>2008-03-12T20:42:00.000-07:00</published><updated>2008-03-12T20:43:33.953-07:00</updated><title type='text'>My Blog</title><content type='html'>Hi .. this is zam&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3097267303962436651-8475726673537690055?l=zamhareer.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zamhareer.blogspot.com/feeds/8475726673537690055/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3097267303962436651&amp;postID=8475726673537690055' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3097267303962436651/posts/default/8475726673537690055'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3097267303962436651/posts/default/8475726673537690055'/><link rel='alternate' type='text/html' href='http://zamhareer.blogspot.com/2008/03/my-blog.html' title='My Blog'/><author><name>zam</name><uri>http://www.blogger.com/profile/07397141242515655026</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
