User Profile

Collapse

Profile Sidebar

Collapse
vivek kapile
vivek kapile
Last Activity: May 25 '11, 05:26 PM
Joined: Mar 14 '11
Location: Nagpur-Maharashtra-India
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • vivek kapile
    started a topic How to Export a GridView Data to CSV
    in .NET

    How to Export a GridView Data to CSV

    Language: ASP.net
    Platform: Visual Studio 2008 with ASP.net
    Technology: Used in ASP.net
    Level: Beginner

    Introduction

    1. Add a gridview into a aspx file
    2. Add a button into a aspx file and give the name as "btnExportToCSV "
    3. Write a code in aspx.cs file

    Code:
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Web;
    using System.Web.UI;
    ...
    See more | Go to post
    Last edited by Niheel; May 22 '11, 10:16 PM. Reason: edits

  • vivek kapile
    started a topic How to export a GridView Data to PDF
    in .NET

    How to export a GridView Data to PDF

    Language: ASP.net
    Platform: Visual Studio 2010 with ASP.net
    Technology: Used in ASP.net
    Level: Beginner

    Note:
    You have to download the itextsharp.dll file and add as a reference to your project.You can download the iTextsharp.dll from the
    below link.
    http://sourceforge.net/projects/itextsharp/

    Introduction

    1. Add a gridview into a aspx file
    2. Add a button into a...
    See more | Go to post
    Last edited by Niheel; Jun 2 '11, 06:00 AM. Reason: code tags

  • vivek kapile
    started a topic How to export a GridView Data to Excel
    in .NET

    How to export a GridView Data to Excel

    Language: ASP.net
    Platform: Visual Studio 2008 with ASP.net
    Technology: Used in ASP.net

    Introduction

    1. Add a gridview into a aspx file
    2. Add a button into a aspx file and give the name as "btnExportToExc el"
    3. Write a code in aspx.cs file

    Code:
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Web;
    using System.Web.UI;
    ...
    See more | Go to post
    Last edited by Niheel; May 24 '11, 11:48 PM. Reason: Code tags added. Email id removed

  • Hi Brian,
    SMTP server is different and your IP is different,SMTP you will get in a controls panel of the server.
    Suppose you upload your site on a server, so the smtp address of that server.I think you use this address, it will work, it is default address "smtp.gmail.com " use and try to send a mail.
    SmtpMail.SmtpSe rver = "smtp.gmail.com ";
    SmtpMail.Send( mail );
    See more | Go to post

    Leave a comment:


  • vivek kapile
    replied to Creating software along with database
    Hi Toshi

    If You are using ASP.net add a connection string in web.config file and if you are using windows application add a connection string in App.config file.

    <connectionStri ngs>
    <add name="Name"
    providerName="S ystem.Data.Prov iderName"
    connectionStrin g="Valid Connection String;" />
    </connectionStrin gs>

    Add .cs file...
    See more | Go to post

    Leave a comment:


  • public static bool SendMail(string to,string subject,string body)
    {
    bool flag = false;
    try
    {
    MailMessage msg = new MailMessage();
    SmtpClient smtp = new SmtpClient(Conf igurationManage r.AppSettings[Constants.SMTPS ERVERADDRESS].ToString());
    msg.From = new MailAddress(Con figurationManag er.AppSettings[Constants.SENDE RMAILADDRESS].ToString());...
    See more | Go to post

    Leave a comment:


  • vivek kapile
    replied to How do I page load another page?
    Use response.redire ct or server.transfer
    See more | Go to post

    Leave a comment:


  • vivek kapile
    replied to Creating software along with database
    Hi Toshi

    Which developing software are you using.
    If you are using VB6.0 then goto File menu->Click on Make Exe and you can give a demonstrate.

    Or

    If you are using Visual studio.
    You created the standar webapplication1 using VS and have just the standard webform1.aspx.

    Copy webform1.aspx, web.config, global.asax into the virtual directory on the new server.
    Copy the bin folder...
    See more | Go to post

    Leave a comment:


  • vivek kapile
    started a topic How to bind a GridView in ASP.net
    in .NET

    How to bind a GridView in ASP.net

    This code will help for the beginners, who want to learn, how to bind a gridview.

    Before showing the code I will give a small introduction how to work with gridview.
    1. Add a gridview controls to the ASPX Page.
    2. Create a method to get a data from the database and bind to the gridview
    3. Create a dataset object.
    4. create a sqlcommand object.
    5. create a sqlconnection object



    Description:
    Below is a sample code....
    See more | Go to post
    Last edited by Niheel; Mar 23 '11, 02:07 PM.

  • Hi Lennie

    This is working fine. I have tried on system.
    only you missed Convert.ToStrin g(dblExtPrice)
    "S" should be capital letter

    Thanks
    Vivek
    See more | Go to post

    Leave a comment:


  • Hi Doug,

    Same code i tried in my PC, It was working fine.I think you are not getting data properly.please check
    1.Check the connection.
    2.Check the stored procedure what it accept parameter weather it is int or string.

    Thanks
    Vivek Kapile
    See more | Go to post

    Leave a comment:


  • Hi Doug,
    I understand your problem and I tried in my computer it is working.Please follow the steps.
    1.Add a gridView in Your ASPX page like this

    <asp:GridView ID="GridView1" runat="server" AutoGenerateCol umns="false" AutoGenerateSel ectButton="true "
    onselectedindex changed="GridVi ew1_SelectedInd exChanged" DataKeyNames="C olumn1">
    ...
    See more | Go to post

    Leave a comment:


  • vivek kapile
    started a topic How to detect HTML Tags in DataColumn
    in .NET

    How to detect HTML Tags in DataColumn

    This code will help for the beginners, who want to learn, how to detect a HTML Tags inside a gridview.

    Before getting to the code I will give a small introduction how to work with gridview with HTMl Tags.
    1. Add a gridview controls to the ASPX Page.
    2. Add AutoGenerateCol umns="false" in agridview controls
    3. Add a columns inside a gridview.
    4. Add a Bound field inside a columns.
    5. Add a HtmlEncode="fal se" to the
    ...
    See more | Go to post
    Last edited by Niheel; Mar 21 '11, 08:11 PM.

  • Please follow the following step to achive this
    1.Add a gridview in your Aspx page with HtmlEncode="fal se" where your are using a html tags

    <asp:GridView ID="GridView1" runat="server" AutoGenerateCol umns="false">
    <Columns>
    <asp:BoundFie ld DataField="Colu mn1" HeaderText="Col umn1" />
    <asp:BoundFie ld HtmlEncode="fal se"...
    See more | Go to post

    Leave a comment:


  • vivek kapile
    started a topic String Manipulations through Javascript

    String Manipulations through Javascript

    Title: String Manipulations through Javascript
    Author: Vivek Kapile
    Email: snipped
    Language: JavaScript
    Platform: Javascript
    Technology: JavaScript
    Level: Beginner

    Introduction
    This code will help for the beginners, who want to learn, how to manage a substring through Javascript.
    for ex. @Right("Vivek", "i") returns "vek"...
    See more | Go to post
    Last edited by Frinavale; Jun 7 '11, 05:36 PM. Reason: Fixed spelling errors. Changed the title mentioned in the body to match the title of the thread. Changed the mentioned technologies-used to match the technology used in the thread.

  • Javascript for Adding & Removing Items from a Listbox

    Title: Javascript for Adding & Removing Items from a one Listbox to another
    Author: Vivek Kapile
    Email: snipped
    Language: JavaScript
    Platform: Javascript in ASP.net
    Technology: Used in ASP.net
    Level: Beginner

    Introduction
    This code will help for the begineers, who want to learn, how to move the the items from one list box to another listbox with up and down...
    See more | Go to post
    Last edited by debasisdas; Mar 18 '11, 05:32 AM. Reason: snipped mail id

  • Dynamically adding table row with a checkbox using javascript

    Title:Dynamical ly adding table row with a checkbox using JavaScript
    Author:Vivek Kapile
    Email:snipped
    Language:JavaSc ript
    Platform:JavaSc ript in ASP.net
    Technology:Used in ASP.net
    Level:Beginner


    Introduction
    This code will help for the beginners, who want to learn, how to create a checkbox dynamically within a table through JavaScript.
    I have covered a very small portion of the...
    See more | Go to post
    Last edited by debasisdas; Mar 18 '11, 05:32 AM. Reason: snipped mail id
No activity results to display
Show More
Working...