Use Session.Abandon() method to clear session. write below code on your logout button's click method : Session.Abandon(); Response.Redirect("default.aspx",false);
Manoranjan Sahoo View My Site
Use Session.Abandon() method to clear session. write below code on your logout button's click method : Session.Abandon(); Response.Redirect("default.aspx",false);
Manoranjan Sahoo View My Site
I got the following error when i publish my web application on to IIS6.0. error: CrystalDecisions.CrystalReports.Engine.LogOnException: Error in File C:\WINDOWS\TEMP\SALECrystalReport {CBAC0AE8-17C4-4B2B-AE2C-5356A445783A}.rpt: Unable to connect: incorrect log on parameters. ---> System.Runtime.InteropServices.COMException (0x8004100F): Error in File C:\WINDOWS\TEMP\SALECrystalReport {CBAC0AE8-17C4-4B2B-AE2C-5356A445783A}.rpt: Unable to connect: incorrect log on parameters. at CrystalDecisions.ReportAppServer.Controllers.ReportSourceClass.GetLastPageNumber(RequestContext pRequestContext) at CrystalDecisions.ReportSource.EromReportSourceBase.GetLastPageNumber(ReportPageRequestContext reqContext) --- End of inner exception stack trace --- at CrystalDecisions.ReportAppServer.ConvertDotNetToErom.ThrowDotNetException(Exception e) at CrystalDecisions.ReportSource.EromReportSourceBase.GetLastPageNumber(ReportPageRequestContext reqContext) at CrystalDecisions.CrystalReports.Engine.FormatEngine.PrintToPrinter(Int32 nCopies, Boolean collated, Int32 startPageN, Int32 endPageN) at CrystalDecisions.CrystalReports.Engine.ReportDocument.PrintToPrinter(Int32 nCopies, Boolean collated, Int32 startPageN, Int32 endPageN) at Sales_Invoice.PrintInvoice() Please suggest me. Thank You. Regards, Manoranjan
Manoranjan
Create one gridview with all template field and set textbox for that template field when it displays the data it will display in textbox so that you can edit those field without click edit button. Then you can access those textbox value when you click on a button. Look at the following code to do so...
<asp:GridView ID="GridView1" runat="server" Style="z-index: 106; left: 93px; position: absolute;
top: 283px" Width="575px" EditIndex="1" AutoGenerateColumns="False">
<Columns>
asp:TemplateField
<ItemTemplate>
<asp:TextBox ID="txt1" runat="server" MaxLength="3" Style="position: static" CssClass ="gv" text = '<%# Eval("slNo") %>'
AutoPostBack ="false" TabIndex ="0" Width="25px" Height ="15px" Visible ="true" ></asp:TextBox>
</ItemTemplate>
</asp:TemplateField>
asp:TemplateField
<ItemTemplate>
<asp:TextBox ID="txt2" runat="server" MaxLength="3" Style="position: static" CssClass ="gv" text = '<%# Eval("Name") %>'
AutoPostBack ="false" TabIndex ="0" Width="250px" Height ="15px" Visible ="true" ></asp:TextBox>
</ItemTemplate>
</asp:TemplateField>
asp:TemplateField
<ItemTemplate>
<asp:TextBox ID="txt3" runat="server" MaxLength="3" Style="position: static" CssClass ="gv" text = '<%# Eval("Address") %>'
AutoPostBack ="false" TabIndex ="0" Width="150px" Height ="15px" Visible ="true" ></asp:TextBox>
</ItemTemplate>
</asp:TemplateField>
Then Place the following code in the button click event
for (int i = 0; i
after this you can use that string value to store into database or do further process.
Manoranjan Sahoo
Vist My Blog : Manoranjan's Blog