Skip to main content

Posts

Showing posts from February, 2014

Asp.Net - How to read word file in C#.Net ,VB.Net

In this tutorial i am going to explain about how to read word file in ASP.Net,C#.Net and VB.Net In my previous article i have explained about Convert Dataset Datatable To Json Data Array , SQL Script To Drop Multiple Tables,Procedures At Once In Sql Server , Highlight,Change Color Of Row On Mouseover In Grid View Using CSS - C#.Net ASP.Net VB.Net , Programmatically Group Gridview Column Headers , How To Convert JSON Data Into Html Table Using Javascript JQuery , Upload Multiple Files In Asp.Net C#.Net VB.Net / Maximum Request Length Exceeded and many articles in C#.Net , ASP.Net , VB.Net , Grid View , Javascript , jQuery , SQL Server and many other topics.

ASP.Net - How to Pass +(plus) in query string in C#.Net,VB.Net

+ sign has a semantic meaning in the query string. It is used to represent a space.Most server side scripts would decode the query parameters before using them, so that a + gets properly converted to a space. Now, if you want a literal + to be present in the query string, you need to specify %2B instead. Because + sign in the query string is URL-decoded to a space. %2B in the query string is URL-decoded to a + sign. In my application from the form 1 I am redirecting to form2 and passing f1wRcMvJJ2YjLjc8dc+7ykY9szg&kanna= in the query string.   So in my form1  I have a button. < div >     < asp : Button ID ="btnRedirect" runat ="server" OnClick ="btnRedirect_Click" Text ="Redirect" /> </ div > While clicking on the button I am redirecting to new page with f1wRcMvJJ2YjLjc8dc+7ykY9szg&kanna= as query string. Since my querystring as + symbol I am repacing it with %2B and encoding it before passing

ASP.Net - Validate form using css in C#.Net

Output: Html Code: <! DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> < html xmlns ="http://www.w3.org/1999/xhtml"> < head id ="Head1" runat ="server">     < script src ="http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js" type ="text/javascript"></ script >     < title > Show error message using css </ title > </ head > < body >     < form id ="form1" runat ="server">     < div class ="field-box control-group">         < label class ="span4">             Note: </ label >         < textarea name ="Text1" class ="span3" cols ="40" rows ="5" id ="txt_Note" runat ="server"></ textarea >        

Asp.Net - Ajax File Upload Using HTTPHandler using C#.Net,VB.Net

ASPX Code: <! DOCTYPE html > < html > < head runat ="server">     < script src ="https://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></ script > </ head > < body >     < form id ="form1" runat ="server">     < div >         < asp : FileUpload ID ="FileUpload1" runat ="server" CssClass ="file-upload-dialog" />         < asp : Button runat ="server" ID ="btnUpload" CssClass ="btn upload" Text ="Upload" />     </ div >     < script type ="text/javascript">         $(document).ready( function () {             $( '#aspnetForm' ).attr( "enctype" , "multipart/form-data" );         });         $( '# <% = btnUpload.ClientID %> ' ).on( 'click' , function (e) {             e.prevent