jalpesh

Stories submitted by jalpesh

Number- New HTML5 Input type(www.dotnetjalps.com)

submitted by jalpeshjalpesh(1176) 8 days, 10 hours ago

I have been writing few series of new HTML5 input types and this is another post on same series. In this post I am going to explain Number input types. The number type is for numeric values. When you use number input type it will have spinner with up and down arrow and with the help of this you can increase or decrease of value.Attributes of Number Input type: There are four attributes of Number input types.Value : This attribute is used to specify the default value of the input type once its first load... read more...

add a comment |category: |Views: 19

tags: another

URL–New HTML5 input element(www.dotnetjalps.com)

submitted by jalpeshjalpesh(1176) 8 days, 21 hours ago

In earlier post we have seen how the email input tag work in the browser. HTML5 comes with lots of new goodies and today we are going to see one of another new html5 input types URL. In most of the sites once you fill your contact and personal information it will ask for your URL. Till now there is no specific type for URL and we have to manually validate the URL with the Java Script but now with the HTML5 you don’t have do that. It will automatically validate the URL. For the browsers that are not sup... read more...

add a comment |category: |Views: 8

tags: another

Email-New Html5 input element(www.dotnetjalps.com)

submitted by jalpeshjalpesh(1176) 14 days, 21 hours ago

In most of the websites we have contact forms and other forms where we have some standard inputs like Phone,Email and Website URL and those are widely used in any site and has specific features. Email is one of the most standard used input elements which are used in our forms. Till HTML 4.1 we have standard input type text and that’s for we were doing input validation with java script and other technologies. While we all know HTML5 is there and it’s contains lots of goodies, One of them is email input ty... read more...

add a comment |category: |Views: 5

tags: another

My first video for code refactoring in visual studio 2010(www.dotnetjalps.com)

submitted by jalpeshjalpesh(1176) 15 days, 8 hours ago

have been planning this since long but now Its happened. I have created a video for visual studio 2010 code refactoring features. I have made this video public. Following is a link for that. http://www.youtube.com/watch?v=HvC63rE7tB4&feature=share Here is the video.. read more...

add a comment |category: |Views: 1

tags: another

string.format escape sequence in c#(www.dotnetjalps.com)

submitted by jalpeshjalpesh(1176) 1 month, 4 days ago

Recently I was working on something and I need to put a curly bracket on the string with a string.format function but I was not aware how to to do it. So I did some search on internet and found how to give escape sequence in string.format. Suppose You need to put curly bracket then you have write two ‘{{‘ instead of { to put ‘{‘ and same way ‘}}’ to put ‘}’ Let’s take simple example. Following is a code where I am printing simple string with string.format and Response.Write. using System; using System.... read more...

add a comment |category: |Views: 3

tags: another

Difference between generic handler and http handler- ASP.NET(www.dotnetjalps.com)

submitted by jalpeshjalpesh(1176) 1 month, 5 days ago

Generic handler: As per MSDN Generic Handler is a default handler which will have @webhandler directive and has .ashx extension this generic handler is not having UI but it provides response when ever any request made to this handler. HTTP Handler: HTTP Handler is a process which runs and continue to server request and give response based on the request handling code. This handler does not have UI and need to configured in the web.config against extensions. One of the great example of Http Handler is page handler of ASP.NET which serves .aspx pages request. read more...

add a comment |category: |Views: 4

tags: another

how to vertically align text in div-HTML tip(www.dotnetjalps.com)

submitted by jalpeshjalpesh(1176) 1 month, 5 days ago

Recently in one of the project I have to vertical align text in div. so doing some internet search I have found there are no proper way to do it. So I thought it would be good do share this within my readers. Here is the code do vertically align text in div. read more...

add a comment |category: |Views: 5

tags: another

ASP.NET Page Methods with Parameters(www.dotnetjalps.com)

submitted by jalpeshjalpesh(1176) 1 month, 5 days ago

In earlier post I have written how we can use page methods to call server-side from the java script. In this post I am going to explain How we can pass parameters to page methods with java script. So let’s take a simple example to see how we can pass parameters to the page methods. I am going to create a page method Hello World which takes name as parameter and return a string to greet user from that page method below is code for that.using System; using System.Web.Services; namespace PageMethods {... read more...

add a comment |category: |Views: 1

tags: another

2011 Recap and Greatest hits(www.dotnetjalps.com)

submitted by jalpeshjalpesh(1176) 1 month, 5 days ago

2011 year has been ended before so its time to write the year recap blog post.First of all I like to wish my friends,reader and everybody a happy new year. This year was very exciting in some way for this blog. First thing was happened that I have moved from blogspot domain to my own domain http://www.dotnetjalps.com. I have written this in a blog post why I was moving from blogspot to my personal domain. Another great thing was happened that I was awarded as MIcrosoft  most valuable professional for vis... read more...

add a comment |category: |Views: 3

tags: another

Page methods in asp.net(www.dotnetjalps.com)

submitted by jalpeshjalpesh(1176) 1 month, 20 days ago

Now days people are looking for richer and fluid user experience and to create that kind of application Ajax is required. There are several options available to call server-side function from JavaScript with ASP.NET Ajax and if you are using asp.net 2.0 or higher version of Microsoft.NET Framework then page methods are one of best options available to you. Page methods are available there from asp.net 2.0. If works just like a normal web service. You can direct call that page methods directly from the J... read more...

add a comment |category: |Views: 3

tags: another

Async file upload with jquery and ASP.NET(www.dotnetjalps.com)

submitted by jalpeshjalpesh(1176) 1 month, 21 days ago

Recently before some I was in search of good asynchronous file upload control which can upload file without post back and I have don’t have to write  much custom logic about this. So after searching it on internet I have found lots of options but some of the options were not working with ASP.NET and some of work options are not possible regarding context to my application just like AsyncFileUpload from Ajax toolkit.As in my application we were having old version of Ajax toolkit and if we change it than o... read more...

add a comment |category: |Views: 6

tags: another

Redirection in URL Routing(www.dotnetjalps.com)

submitted by jalpeshjalpesh(1176) 1 month, 22 days ago

In one of the my earlier post I have written How easily we do URL rewriting in ASP.NET Web forms. In this post I am going to explain redirection in URL Routing. In web application it’s a common scenario that we are redirecting our page to the one from the another and those who are familiar with the ASP.NET Web Forms will also know how we can use  Response.Redirect() to redirect from one page to another page.  In ASP.NET 4.0 Web Forms they have given same kind of Method to redirect to a particular rou... read more...

add a comment |category: |Views: 4

tags: another

Easy URL rewriting in ASP.NET 4.0 web forms(www.dotnetjalps.com)

submitted by jalpeshjalpesh(1176) 2 months, 2 days ago

n this post I am going to explain URL rewriting in greater details. This post will contain basic of URL rewriting and will explain how we can do URL rewriting in fewer lines of code. Why we need URL rewriting? Let’s consider a simpler scenario we want to display a customer details on a ASP.NET Page so how our page will know that for which customer we need to display details? The simplest way of doing is to use query string we will pass a customer id which uniquely identifies customer in query string. So our url will look like this. Customer.aspx?Id=1 This will work but the problem with above URL is that its not user friendly and search engine friendly. who is going to remember that what query string parameter I am going to pass and why we need that parameter. Also when search engine will crawl this site it will going to read this URL blindly as this url is not informative because it query string is not readable for search engine crawlers. So your search engine will be ranked lower as this URL is not readable to search engine crawlers.Now when do a URL rewriting our URL will be cleaner shorter and simpler like this. Customers/Id/1/ Here anybody in world can understand it talking about customer and this page will used to show customer details.Even search engine crawler will also know that you are talking about customers. That is why we need URL rewriting. read more...

add a comment |category: |Views: 15

tags: another

new solution explorer feature in visual studio11 developer preview(www.dotnetjalps.com)

submitted by jalpeshjalpesh(1176) 4 months, 3 days ago

Microsoft Visual Studio11 Developer preview comes with bunch of new features and Solution explorer is also get some new features in it. There are few new icons added at top of solution explorer like below. Create new window with copy of this Window Feature: Now there is a one feature given with solution explorer you can create a another instance of solution explorer via clicking on last icon on solution explorer. Once you click the Last Icon for create copy. It will open a new solution explorer windows... read more...

add a comment |category: |Views: 7

tags: another

ASP.NET MVC 4.0 Mobile Template(www.dotnetjalps.com)

submitted by jalpeshjalpesh(1176) 4 months, 3 days ago

Microsoft has released the much awaited ASP.NET MVC 4.0 developer preview and there are lots of features bundle with it. One of the greatest features is a mobile website. Yes, Now with ASP.NET MVC 4.0 you can create mobile site also. So let’s create a simple application and let’s see how it works. To create mobile site first you need to click File->New Project->ASP.NET MVC 4.0 Web application. Like following. Now once you click OK it will open a new another dialog like following where we have to choo... read more...

add a comment |category: |Views: 5

tags: another

First Review of ASP. NET MVC 4.0 Developer Preview(www.dotnetjalps.com)

submitted by jalpeshjalpesh(1176) 4 months, 10 days ago

After so much buzz Microsoft has launched some of the new tools at build conference and ASP.NET MVC 4.0 Developer preview is one of them. How I can install ASP.NET MVC 4.0 Developer preview? There are three ways to install ASP.NET MVC 4.0 Developer preview You can download from following link-http://www.microsoft.com/download/en/details.aspx?displaylang=en&id=27419You can install ASP.NET MVC 4.0 Developer preview with web platform installer from following link-http://www.microsoft.com/web/gallery/instal... read more...

add a comment |category: |Views: 13

tags: another