Click here to Skip to main content
15,074,668 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi,
i have a web form in my application which has 2 text and box 4 drop down list.
after inputting values in these fields, on click of add button data is saved in database and bind in grid view.
after that
i am exporting this grid view data to pdf using iTextSharp tool.
but when i click export button, instead of exporting to pdf the control goes back to form's fields for input values.
whats wrong here, pls help.

thanks
Posted
Updated 8-Jul-14 21:16pm
v2
Comments
Richard MacCutchan 7-Jul-14 9:20am
   
but when i click export button it will go back to form's fields.
whats wrong here, pls help.


It could be anything at all; please don't expect people to guess what is happening on your system.
[no name] 7-Jul-14 14:31pm
   
We are unable to understand ur problem show your code also
ruby kaur 9-Jul-14 6:02am
   
my code is as follow:

i am using 3 tier architecture.

.aspx code:
<%@ Page Title="<%$ Resources:Language, lblMoneyRecptRgister %>" Language="C#" MasterPageFile="~/Masters.master" AutoEventWireup="true"
CodeFile="BankDrafttRegister.aspx.cs" Inherits="BankDrafttRegister" EnableEventValidation="false"%>


<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="AjaxControlToolkit" %>

<%--<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">

<table style="background-color: White; margin-bottom: 0px;" width="100%" cellpadding="0"
cellspacing="0">
<tr>
<td align="center" class="hg" colspan="1">
<asp:Label ID="lblBankDraftRgister" runat="server"
Text="<%$ Resources:Language, lblBankDraftRgister %>" >
</td>
</tr>
<tr>
<td align="center" colspan="1">
<asp:Label ID="lblStatus" runat="server" CssClass ="smsg">
</td>
</tr>
<tr>
<td align="center">
 
</td>
</tr>
<tr>
<td >


<table>--%>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">

<table style="background-color: White; margin-bottom: 0px;" width="100%" cellpadding="0"
cellspacing="0">
<tr>
<td valign="top">

<table cellpadding="2" cellspacing="0" border="0">
<tr >
<td align="Left">
<table style="background-color: #C0C0C0" border="1" cellspacing="1" >
<tr align="center">
<td colspan="6" align="center" bgcolor="#999999" >
<asp:Label ID="lblBankDraftRgister" runat="server"
Text="<%$ Resources:Language, lblBankDraftRgister %>" >
</td>
<tr align="center">
<td align="center" colspan="6" bgcolor="#999999" >
<asp:Label ID="lblStatus" runat="server" CssClass ="smsg">
</td>
<tr align="center">
<td align="left" colspan="6" bgcolor="#999999">
 </td>

<tr align="center">
<td align="right">
<asp:Label ID="lblDraftRcptNo" runat="server" CssClass="myLbl"
Text="क्रमांक">
</td>

<td align="left">
<asp:TextBox ID="txtRcptNo" runat="server" Width="300px" Wrap="False">
<asp:RequiredFieldValidator ID="rvRcptNo" runat="server"
ControlToValidate="txtRcptNo" Display="Dynamic" SetFocusOnError="True">*
</td>

<td align="right">
<asp:

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900