Monthly Archive:: 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 – 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

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

Output: Html Code: <!DOCTYPE html PUBLIC“-//W3C//DTD XHTML 1.0 Transitional//EN”“”> <html xmlns=””> <head id=”Head1″runat=”server”>     <script src=””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>         <span style=”color:red;display: none;”>Please enter the note..</span>     </div>    

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

ASPX Code: <!DOCTYPE html> <html> <head runat=”server”>     <script src=””></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.preventDefault();            

ASP.Net – Bind Array To DropDownList in C#.Net,VB.Net

 ASP.Net Code:   <!DOCTYPE html> <html> <head runat=”server”>     <title>ASP.Net – Bind Array To Drop Down List in C#.Net,VB.NET</title> </head> <body>     <form id=”form1″ runat=”server”>     <div>         <asp:DropDownList ID=”ddlArray” runat=”server”>         </asp:DropDownList>         <br />         <asp:Button ID=”btnFill” runat=”server” Text=”Fill Drop Down List From Array” OnClick=”btnFill_Click”/>     </div>     </form> </body> </html>  C#.Net Code:

ASP.Net – Regular Expression to validate email id in

ASPX Code: <!DOCTYPE html> <html> <head id=”Head1″runat=”server”>     <title>ASP.Net – Regular Expression To Validate Email Address in C#.Net</title> </head> <body>     <form id=”frmValidate” name=”frmValidate” runat=”server”>     <div>         <table border=”1″ cellpadding=”5″>             <tr>                 <td>                     Enter Email Id Here                 </td>                 <td>                     <asp:TextBox ID=”txtEmailId” runat=”server”></asp:TextBox>                 </td>             </tr>             <tr>                

C#.Net – Dynamically create textbox in

 Aspx Code: <!DOCTYPE html> <html> <head runat=”server”>     <title>Dynamically create textboxes in ASP.Net</title> </head> <body>     <form id=”form1″ runat=”server”>     <div>         <table>             <tr>                 <td>                     No of Text boxes                 </td>                 <td>                     <asp:TextBox ID=”txtNumbers” runat=”server”></asp:TextBox>                 </td>             </tr>             <tr>                 <td>                 </td>                 <td>                     <asp:Button ID=”btnSubmit”

ASP.Net – Convert XML to Datatable in, VB.Net

I have the below XML File  <?xml version=“1.0“ encoding=“utf-8“?> <root>   <Employee>     <Id>1</Id>     <EmpName>Kannadasan</EmpName>     <Gender>Male</Gender>     <Dept>Reading Books</Dept>   </Employee>   <Employee>     <Id>2</Id>     <EmpName>Kaviyarasan</EmpName>     <Gender>Male</Gender>     <Dept>Playing Games</Dept>   </Employee>   <Employee>     <Id>3</Id>     <EmpName>Ramkumar</EmpName>     <Gender>Male</Gender>     <Dept>Reading Books</Dept>   </Employee>   <Employee>     <Id>4</Id>     <EmpName>Xavier