15,991,072 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View .NET questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by sudeshna from bangkok (Top 200 by date)
sudeshna from bangkok
22-Feb-17 9:22am
View
Not in excel.the backend code is vba.there i have to add a new line with same text. I know excel dont have lines.
sudeshna from bangkok
7-Feb-17 12:30pm
View
I have tried my own, now can anyone help me.I would be obliged
sudeshna from bangkok
7-Feb-17 11:14am
View
I didn't meant that way.Sorry if anyone got hurt.
sudeshna from bangkok
6-Feb-17 8:27am
View
yes its urgent, client wants it. otherwise I never post unless and until its necessary. it would be better if you help please.
sudeshna from bangkok
6-Feb-17 2:34am
View
Didn't understand? can u explain in detail how to do?
sudeshna from bangkok
10-Oct-15 2:29am
View
private int UpdateJewelry()
{
int flag = 0;
using (SqlConnection con = new SqlConnection(JewelleryHelper.GetConnectionString()))
{
using (SqlCommand cmd = new SqlCommand("spUpdateJewelleryBySerialNumber", con))
{
cmd.CommandType = CommandType.StoredProcedure;
cmd.Parameters.Add("@SerialNumber", SqlDbType.NVarChar).Value = this.txtSerialNumber.Text;
cmd.Parameters.Add("@Category", SqlDbType.VarChar).Value = this.ddlCategory.SelectedValue;
cmd.Parameters.Add("@Description", SqlDbType.VarChar).Value = this.txtdesc.Text;
if (!string.IsNullOrEmpty(this.imageProduct.Src))
{
byte[] binaryImage = JewelleryHelper.ConvertImageInBinaryData(Server.MapPath(this.imageProduct.Src));
if (binaryImage != null)
{
cmd.Parameters.Add("@Image", SqlDbType.Image).Value = binaryImage;
}
}
cmd.Parameters.Add("@CostPrice", SqlDbType.VarChar).Value = JewelleryHelper.GetEncodedCostPrice(this.txtCostPrice.Text);
double costPrice;
if (double.TryParse(this.txtCostPrice.Text, out costPrice))
{
cmd.Parameters.Add("@SellingPrice", SqlDbType.Float).Value = JewelleryHelper.GetSellingPrice(costPrice);
}
if (!string.IsNullOrEmpty(this.txtSoldPrice.Text))
{
cmd.Parameters.Add("@SoldPrice", SqlDbType.Float).Value = double.Parse(this.txtSoldPrice.Text);
}
if (!string.IsNullOrEmpty(this.txtsolddate.Text))
{
cmd.Parameters.Add("@SoldDate", SqlDbType.DateTime).Value = Convert.ToDateTime(this.txtsolddate.Text);
}
cmd.Parameters.Add("@CustomerName", SqlDbType.VarChar).Value = this.txtCustomer.Text;
cmd.Parameters.Add("@AffectedRows", SqlDbType.Int);
cmd.Parameters["@AffectedRows"].Direction = ParameterDirection.Output;
con.Open();
cmd.ExecuteNonQuery();
con.Close();
flag = (int)cmd.Parameters["@AffectedRows"].Value;
}
}
return flag;
}
}
sudeshna from bangkok
10-Oct-15 2:28am
View
protected void ibtnUploadImage_Click(object sender, ImageClickEventArgs e)
{
if (this.fuUploadImage.HasFile)
{
this.fuUploadImage.PostedFile.SaveAs(this.imagePath + this.fuUploadImage.FileName);
this.imageProduct.Src = "ProductImage/" + this.fuUploadImage.FileName;
}
}
protected void lbtnJewellery_Click(object sender, EventArgs e)
{
LinkButton lbtn = (LinkButton)sender;
DataSet ds = this.GetJewelleryBySerialNumber(lbtn.CommandArgument);
if (ds != null && ds.Tables[0].Rows.Count > 0)
{
this.lblSerialNumber.Text = Convert.ToString(ds.Tables[0].Rows[0]["SerialNumber"]);
this.lblCategory.Text = Convert.ToString(ds.Tables[0].Rows[0]["Category"]);
this.lblConsignmentName.Text = !string.IsNullOrWhiteSpace(Convert.ToString(ds.Tables[0].Rows[0]["ConsignmentName"])) ? Convert.ToString(ds.Tables[0].Rows[0]["ConsignmentName"]) : "N/A";
this.imageProductPopup.Src = "ProductImage/" + JewelleryHelper.GetImageFromBinaryData(ds.Tables[0].Rows[0]["Image"], Convert.ToString(ds.Tables[0].Rows[0]["SerialNumber"]), this.imagePath);
this.lblDescription.Text = Convert.ToString(ds.Tables[0].Rows[0]["Description"]);
this.lblCostPrice.Text = Convert.ToString(ds.Tables[0].Rows[0]["CostPrice"]);
this.lblSellingPrice.Text = Convert.ToString(ds.Tables[0].Rows[0]["SellingPrice"]);
ScriptManager.RegisterStartupScript(this, this.GetType(), "JewelleryInfo", "loadPopup();", true);
}
}
protected void btnUploadJewelry_Click(object sender, EventArgs e)
{
int flag = this.UpdateJewelry();
if (flag > 0)
{
JewelleryHelper.DeleteFileIfExists(Server.MapPath(this.imageProduct.Src));
////JewelleryHelper.DeleteTemporaryInternetFiles();
this.BindJewellery();
this.divUpdateJewellary.Visible = false;
this.lblInfo.Visible = false;
////Alert message after jewellery added successfully.
ScriptManager.RegisterStartupScript(this, this.GetType(), "AddJewellery", "alert('Jewelry has been updated successfully.');", true);
}
else
{
this.lblInfo.Text = flag == 0 ? "Not any rows has been updated." : "An error occured while updating jewelry.";
this.lblInfo.Visible = true;
this.lblInfo.ForeColor = System.Drawing.Color.Red;
}
}
private DataSet GetJewelleryBySerialNumber(string serialNumber)
{
using (SqlConnection con = new SqlConnection(JewelleryHelper.GetConnectionString()))
{
using (SqlCommand cmd = new SqlCommand("spGetJeweleryBySerialNumberForPopup", con))
{
cmd.CommandType = CommandType.StoredProcedure;
cmd.Parameters.Add("@SerialNumber", SqlDbType.NVarChar).Value = serialNumber;
con.Open();
SqlDataAdapter sda = new SqlDataAdapter(cmd);
DataSet ds = new DataSet();
sda.Fill(ds);
con.Close();
return ds;
}
}
}
private int UpdateJewelry()
{
int flag = 0;
using (SqlConnection con = new SqlConnection(JewelleryHelper.GetConnectionString()))
{
using (SqlCommand cmd = new SqlCommand("spUpdateJewelleryBySerialNumber", con))
{
cmd.CommandType = CommandType.StoredProcedure;
cmd.Parameters.Add("@SerialNumber", SqlDbType.NVarChar).Value = this.txtSerialNumber.Text;
cmd.Parameters.Add("@Category", SqlDbType.VarChar).Value = this.ddlCategory.SelectedValue;
cmd.Parameters.Add("@Description", SqlDbType.VarChar).Value = this.txtdesc.Text;
if (!string.IsNullOrEmpty(this.imageProduct.Src))
{
byte[] binaryImage = JewelleryHelper.ConvertImageInBinaryData(S
sudeshna from bangkok
10-Oct-15 2:26am
View
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data.SqlClient;
using System.Data;
using System.Configuration;
using System.IO;
public partial class SearchByCode : System.Web.UI.Page
{
///
/// Product image folder path to read image file from folder or write image file in to folder.
///
private string imagePath = string.Empty;
protected void Page_Load(object sender, EventArgs e)
{
this.imagePath = Server.MapPath("ProductImage/");
}
protected void btnSearch_Click(object sender, EventArgs e)
{
this.BindJewellery();
}
private void BindJewellery()
{
DataSet dsJewellery = this.GetAllJewellery(this.txtSerialNumber.Text);
if (dsJewellery != null && dsJewellery.Tables.Count > 0 && dsJewellery.Tables[0].Rows.Count > 0)
{
this.lblMessageInfo.Visible = false;
this.gvJewellery.DataSource = dsJewellery;
this.gvJewellery.DataBind();
this.gvJewellery.Visible = true;
}
else
{
this.gvJewellery.Visible = false;
this.lblMessageInfo.Text = "No record(s) found!";
this.lblMessageInfo.Visible = true;
this.divUpdateJewellary.Visible = false;
}
}
private DataSet GetAllJewellery(string serialNumber)
{
using (SqlConnection con = new SqlConnection(JewelleryHelper.GetConnectionString()))
{
using (SqlCommand cmd = new SqlCommand("spGetJeweleryOnSerialNumber", con))
{
cmd.CommandType = CommandType.StoredProcedure;
cmd.Parameters.Add("@SerialNumber", SqlDbType.NVarChar).Value = serialNumber;
con.Open();
SqlDataAdapter sda = new SqlDataAdapter(cmd);
DataSet ds = new DataSet();
sda.Fill(ds);
con.Close();
return ds;
}
}
}
protected void lbtnEdit_Click(object sender, EventArgs e)
{
LinkButton lbtn = (LinkButton)sender;
DataSet ds = this.GetAllJewellery(lbtn.CommandArgument);
if (ds != null && ds.Tables.Count > 0)
{
this.txtSlNumber.Text = ds.Tables[0].Rows[0]["SerialNumber"].ToString();
this.ddlCategory.SelectedValue = ds.Tables[0].Rows[0]["Category"].ToString();
this.imageProduct.Src = "ProductImage/" + JewelleryHelper.GetImageFromBinaryData(ds.Tables[0].Rows[0]["Image"], ds.Tables[0].Rows[0]["SerialNumber"].ToString(), this.imagePath);
this.txtdesc.Text = ds.Tables[0].Rows[0]["Description"].ToString();
this.txtCostPrice.Text = ds.Tables[0].Rows[0]["CostPrice"].ToString();
this.txtSoldPrice.Text = ds.Tables[0].Rows[0]["SoldPrice"].ToString();
this.txtCustomer.Text = ds.Tables[0].Rows[0]["CustomerName"].ToString();
if (!string.IsNullOrWhiteSpace(Convert.ToString(ds.Tables[0].Rows[0]["SoldDate"])))
{
this.txtsolddate.Text = Convert.ToDateTime(ds.Tables[0].Rows[0]["SoldDate"].ToString()).ToString("dd/MM/yyyy");
}
this.divUpdateJewellary.Visible = true;
}
else
{
this.lblInfo.Text = "An error occured while retrieving data jewelry.";
this.lblInfo.Visible = true;
this.lblInfo.ForeColor = System.Drawing.Color.Red;
}
}
protected void gvJewellery_RowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
DataRowView drv = e.Row.DataItem as DataRowView;
if (drv != null)
{
LinkButton lbtnEdit = e.Row.FindControl("lbtnEdit") as LinkButton;
LinkButton lbtnJewellery = e.Row.FindControl("lbtnJewellery") as LinkButton;
Image imgJe
sudeshna from bangkok
20-May-15 12:29pm
View
Can anyone else tell me please a solution? i need it urgency
sudeshna from bangkok
20-May-15 12:29pm
View
did you find any solution? can you tell me please the solution?
sudeshna from bangkok
20-May-15 9:35am
View
I have sent you.kindly check and please help me
sudeshna from bangkok
20-May-15 9:17am
View
send me your email id
sudeshna from bangkok
20-May-15 7:41am
View
USE [DB3184_InventoryDatabase]
GO
/****** Object: StoredProcedure [dbo].[spGetJeweleryOnSoldItems] Script Date: 20/05/2015 19:47:54 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
-- =============================================
-- Author: <author,,name>
-- Create date: <create date,,="">
-- Description: <description,,>
-- =============================================
ALTER PROCEDURE [dbo].[spGetJeweleryOnSoldItems]
-- Add the parameters for the stored procedure here
@Category varchar(50)
AS
BEGIN
-- SET NOCOUNT ON added to prevent extra result sets from
-- interfering with SELECT statements.
SET NOCOUNT ON;
-- Insert statements for procedure here
SELECT SerialNumber, Category, [Description], [Image], CostPrice, SellingPrice, SoldPrice, CustomerName, SoldDate
FROM dbo.tblInventory
where Category = @Category AND IsSold = 'True'
END
this is the query on my sql management studio
sudeshna from bangkok
20-May-15 7:29am
View
i have checked its stored procedure
sudeshna from bangkok
20-May-15 7:02am
View
this error coming after i have given double slash "\\SoldCrystalReport.rpt"
Error in File SoldCrystalReport {89DB8975-B569-4C5A-81D3-78F821EE368E}.rpt:
Invalid group condition.
sudeshna from bangkok
20-May-15 6:49am
View
yes I changed the way you mentioned. at runtime when i am clicking on show report, error coming cant load report. this I am doing from my local machine
Will this code work on server? I mean my project is live,
sudeshna from bangkok
20-May-15 6:34am
View
string Reportdoc = Server.MapPath("SoldCrystalReport.rpt") + "\\RPT\\PrintClientBrokerageSum.rpt"
Is this correct? I have put crystal report name inside the server.mappath
sudeshna from bangkok
20-May-15 6:22am
View
can you send the html code to paste in aspx page, as the code you have given error coming, saying buttonshow should come under form tag under runat=server
sudeshna from bangkok
20-May-15 6:07am
View
and my datatable has data
sudeshna from bangkok
20-May-15 6:06am
View
Oh i have named my report file name inside the double quotes after Server.Mappath
and your html code i pasted on a new aspx file, it says put the buttonshow inside form tag under runat server
sudeshna from bangkok
20-May-15 5:46am
View
ReportStream.Read(bytes, 0, ReportStream.Length);
error coming in this line and on the word Encoding
and error on the word Constants. it tells the word Constants does not exist in the current context
sudeshna from bangkok
20-May-15 5:38am
View
Deleted
Its showing file not found and your code has full of errors
sudeshna from bangkok
20-May-15 5:32am
View
My project code is in c#
sudeshna from bangkok
20-May-15 5:16am
View
Thank you for the detailed answer, one last thing shall i create a new aspx page and paste the div code there?
sudeshna from bangkok
20-May-15 5:01am
View
Can anyone please help me with a solution? I need help
sudeshna from bangkok
20-May-15 5:01am
View
Can you please explain me step by step what to do?
sudeshna from bangkok
20-May-15 4:46am
View
I still couldnt understand your solution, I have pasted the 2 lines of div code in one of my aspx page. After that what do i do?
sudeshna from bangkok
20-May-15 4:14am
View
I have placed the code under Content placeholder. Next what do i do?
sudeshna from bangkok
20-May-15 4:13am
View
<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
CodeFile="SoldItems.aspx.cs" Inherits="SoldItems" %>
<%@ Register Assembly="CrystalDecisions.Web, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"
Namespace="CrystalDecisions.Web" TagPrefix="crystalReport" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="Server">
<div id="DivReportVIew" runat="server">
</div>
<div class="content">
View Sold Items
<div class="commonFilters">
<div>
<p>
<asp:Label ID="lblCategory" runat="server">Choose By Category :</p>
<asp:DropDownList ID="ddlCategory" runat="server">
<asp:ListItem >Choose Category
<asp:ListItem>Earrings
<asp:ListItem>Pendant
<asp:ListItem>Bangles
<asp:ListItem>Bracelets
<asp:ListItem>Necklace
<asp:ListItem>Toe Rings
<asp:ListItem>Cuff Links
<asp:ListItem>Rings
<asp:ListItem>Sets
<asp:ListItem>Tie-Pin
<asp:ListItem>Brooch
</div>
<div>
<asp:Button ID="btnShow" runat="server" Text="Show" OnClick="btnShow_Click" />
</div>
<div>
<asp:Button ID="btnPrint" runat="server" Text="Print" OnClick="btnPrint_Click" />
</div>
</div>
<div class="searchResults">
<asp:Label ID="lblMessageInfo" runat="server" Font-Bold="true" Font-Size="14px" ForeColor="Red"
Visible="false">
<asp:GridView ID="gvJewellery" runat="server" AllowPaging="false" AutoGenerateColumns="false"
Width="960px" OnRowDataBound="gvJewellery_RowDataBound">
<HeaderStyle BackColor="#207ce5" Height="75px" VerticalAlign="Middle" HorizontalAlign="Center"
Font-Bold="true" />
<columns>
<asp:BoundField DataField="SerialNumber" HeaderText="Serial Number" ItemStyle-Width="75px"
ItemStyle-HorizontalAlign="Center" />
<asp:BoundField DataField="Category" HeaderText="Category" ItemStyle-Width="120px"
ItemStyle-HorizontalAlign="Center" />
<asp:TemplateField HeaderText="Image" ItemStyle-Width="120px" ItemStyle-HorizontalAlign="Center">
<itemtemplate>
<asp:Image ID="imgJewellery" runat="server" Height="50px" Width="60px" />
<asp:BoundField DataField="Description" HeaderText="Description" ItemStyle-Width="385px"
ItemStyle-HorizontalAlign="Center" />
<asp:BoundField DataField="CostPrice" HeaderText="Cost Price" ItemStyle-Width="70px"
ItemStyle-HorizontalAlign="Center" />
<asp:BoundField DataField="SellingPrice" HeaderText="Selling Price" ItemStyle-Width="70px"
ItemStyle-HorizontalAlign="Center" />
<asp:BoundField DataField="SoldPrice" HeaderText="Sold Price" ItemStyle-Width="70px"
ItemStyle-HorizontalAlign="Center" />
<asp:BoundField DataField="Custo
sudeshna from bangkok
20-May-15 3:58am
View
Sorry to say again. I am new to these. How can I use this code to convert my crystal report to html in a div?
sudeshna from bangkok
20-May-15 3:46am
View
Where shall i paste this code? Do i have to make any changes in the code? Where will i put my crystal report name?
sudeshna from bangkok
19-May-15 10:51am
View
Hello can anyone tell me please what path should i gave?
my project is under my documents\microsoft visual studio 2010\projects\Inventory
under inventory the reports are there
sudeshna from bangkok
19-May-15 9:42am
View
yes soldcrystalreport.rpt is stored under wwwroot folder in server side.
sudeshna from bangkok
14-May-15 4:54am
View
Hello you are an indian i suppose with your name, can you please tell me which server version to use for windows server 2008?
My asp.net project is web based, i have done it in visual studio 2010 ultimate and sql server 2008 r2 and .net 4.0
sudeshna from bangkok
14-May-15 4:29am
View
Please tell me any server name which one to buy
sudeshna from bangkok
14-May-15 3:36am
View
Can I buy Windows 8.1 Pro?
sudeshna from bangkok
14-May-15 3:28am
View
What is meant by Windows Server 8.1 pro single user. Can anyone tell me?
sudeshna from bangkok
14-May-15 2:51am
View
Thanks but Why not Windows Server 2003?
sudeshna from bangkok
14-May-15 1:03am
View
Can i buy Windows Server 2003 Enterprise Edition. Will it fulfill my requirements,kindly please help me
sudeshna from bangkok
14-May-15 0:56am
View
in google for windows server 2003 different pricing are showing. Some standard edition, some business edition. Which product to buy? Can anyone please tell me?
i need a server for my ASP.NET project, and Sql Server 2008 R2 and .net 4.0 compatibility
sudeshna from bangkok
6-Mar-15 4:33am
View
If you could help me in this. Then I will mark it as solved and close this forum
sudeshna from bangkok
6-Mar-15 4:32am
View
Yes its a more Crystal report question. The print is working fine I just need the dialog box to come in front of the application rather its displaying at the background, So a user has to always minimize the window and then print from the dialog box.
Thanks again for so much help.
sudeshna from bangkok
5-Mar-15 0:25am
View
Hi. Your code working fine. But 1 thing the dialog box is coming at the background of the application. So I was unable to recognize it. Every time I have to minimize my application and then select options from the print dialog box. Can you please tell the code for bringing it at the front of the application?
sudeshna from bangkok
4-Mar-15 22:35pm
View
Can anyone please tell me?
sudeshna from bangkok
4-Mar-15 22:35pm
View
and in the 2nd code, ReportPrintDocument is showing error. Telling either missing any directive or assembly. Which reference to include?
sudeshna from bangkok
4-Mar-15 22:05pm
View
ReportDocument rDoc = new ReportDocument();
PrintDialog dialog1 = new PrintDialog();
rDoc.Load("C:/Users/SUDESHNA/Documents/Visual Studio 2010/Projects/Inventory/StockCrystalReport1.rpt");
rDoc.SetParameterValue("@Category", ddlCategory.SelectedValue);
rDoc.SetDatabaseLogon("sa", "gariahat");
dialog1.AllowSomePages = true;
dialog1.AllowPrintToFile = false;
if (dialog1.ShowDialog() == System.Windows.Forms.DialogResult.OK)
{
int copies = dialog1.PrinterSettings.Copies;
int fromPage = dialog1.PrinterSettings.FromPage;
int toPage = dialog1.PrinterSettings.ToPage;
bool collate = dialog1.PrinterSettings.Collate;
rDoc.PrintOptions.PrinterName = dialog1.PrinterSettings.PrinterName;
rDoc.PrintToPrinter(copies, collate, fromPage, toPage);
}
rDoc.Dispose();
dialog1.Dispose();
}
}
This is what I have written. Nothing is coming. The dialog box not showing even. I have loaded the reference System.Windows.Forms.
Can you tell me why nothing is working?
sudeshna from bangkok
4-Mar-15 11:12am
View
Its showing error if I write System.Windows.Forms. I am using Asp.net web application
sudeshna from bangkok
4-Mar-15 11:10am
View
Hi mine is a web application. I have tried to write System.Windows.Forms, its not coming. System.Web comes.
sudeshna from bangkok
3-Mar-15 0:36am
View
Hello, Please can you help me? Please.
sudeshna from bangkok
2-Mar-15 23:42pm
View
Now what code to write, Can you please help me?
sudeshna from bangkok
2-Mar-15 23:40pm
View
protected void btnPrint_Click(object sender, EventArgs e)
{
ReportDocument rDoc = new ReportDocument();
rDoc.Load("C:/Users/SUDESHNA/Documents/Visual Studio 2010/Projects/Inventory/StockCrystalReport1.rpt");
rDoc.SetParameterValue("@Category", ddlCategory.SelectedValue);
rDoc.SetDatabaseLogon("sa", "gariahat");
//this.crystalReportViewer.ReportSource = rDoc;
//this.crystalReportViewer.DataBind();
//this.crystalReportViewer.Focus();
//rDoc.Refresh();
rDoc.PrintToPrinter(1, true, 0, 0);
}
This is the code that you had told. and I was using it for so many days
sudeshna from bangkok
2-Mar-15 23:07pm
View
Hi can you please tell me how to display the print wizard(set up) dialog box at run time after clicking on print button. the code which you had told me its printing all the pages directly after clicking on print button. But i want to mention specific pages in the print set up page or printer name after clicking on print button
sudeshna from bangkok
13-Feb-15 3:31am
View
Hi I dont have a windows server. So i am hosting my local machine as server. I have published my project and inside iis i have given the path of the published folder and created a host name as local.jewelry.com.
I have gone to
hosts under drivers and have added the ip address of my computer and host name.
The only error coming at runtime is about the path in web.config.
What path do i give at web.config?
sudeshna from bangkok
12-Feb-15 5:56am
View
how to get the IIS? can it be downloaded from internet?
sudeshna from bangkok
12-Feb-15 5:32am
View
showing error still
sudeshna from bangkok
12-Feb-15 5:23am
View
I solved it myself. i just refreshed my data source. Thanks
sudeshna from bangkok
12-Feb-15 5:18am
View
showing error
sudeshna from bangkok
12-Feb-15 5:15am
View
showing error that cannot implicitly convert double to char[]
sudeshna from bangkok
12-Feb-15 5:13am
View
So shall i use Decimal or Double?
sudeshna from bangkok
12-Feb-15 5:12am
View
I dont have any decimal in my cost price value. whatever i will enter it in double like 23897 or 21784 or 45230
sudeshna from bangkok
12-Feb-15 4:56am
View
I have visual studio 2010 ultimate. Is it ok then?
sudeshna from bangkok
12-Feb-15 2:45am
View
after that configure the webserver (IIS or Apache) for the website using the path where you copied the file on the server.
But I did not understand this statement. I dont have IIS or Apache. I have FTP file transfer server.
sudeshna from bangkok
12-Feb-15 2:44am
View
Ok. Then 1st i have to install sql server, then using the import and export feature i will import the data to server? Right? Then i will publish my project and the folder which will be created after publish, i will upload all the files to server.Right? Then i can give the same connection string which i have in my web.config. Correct?
sudeshna from bangkok
12-Feb-15 2:28am
View
i have already inserted 500 records in my local db located in my system. how do i upload that db with records to server?
sudeshna from bangkok
12-Feb-15 2:25am
View
I have to install full sql server 2008 r2 in server?
sudeshna from bangkok
12-Feb-15 2:24am
View
I have inserted 500 records in my local db which is there in my system. now next what do i do? to upload my db in server?
sudeshna from bangkok
10-Feb-15 23:28pm
View
Can anyone please help me? I need to make my project live
sudeshna from bangkok
10-Feb-15 22:10pm
View
i dont have any data in the database. I had all the dummy data in my local database.So when i will make it live, i will remove all the data.
And what connection string will i set on the server.
Presently in my local DB.
<add name="InventoryDatabaseConnectionString" connectionstring="Data Source=.\INSTANCE;Initial Catalog=InventoryDatabase;Integrated Security=True">
this is the connection string written.
So next what do I do?
sudeshna from bangkok
10-Feb-15 4:55am
View
i searched. i am getting half information. can you please just tell the procedure? It will be a great help to me
sudeshna from bangkok
5-Feb-15 4:54am
View
Please dear help me. minor thing is left. if you help me a bit it might work.
sudeshna from bangkok
5-Feb-15 4:15am
View
protected void btnPrint_Click(object sender, EventArgs e)
{
ReportDocument rDoc = new ReportDocument();
rDoc.Load("C:/Users/SUDESHNA/Documents/Visual Studio 2010/Projects/Inventory/SoldCrystalReport.rpt");
rDoc.SetParameterValue("@Category", ddlCategory.SelectedValue);
rDoc.SetDatabaseLogon("sa", "gariahat");
//this.crystalReportViewer.ReportSource = rDoc;
//this.crystalReportViewer.DataBind();
//this.crystalReportViewer.Focus();
rDoc.Refresh();
rDoc.PrintToPrinter(1, true, 0, 0);
}
i have now changed the code to this. please can you help me.
sudeshna from bangkok
5-Feb-15 3:40am
View
i checked by debugging. sorry that time didnt understand. I know how to debug. rDoc.ParameterFields["Category"] is showing a value earrings whatever i have selected from drop down
sudeshna from bangkok
5-Feb-15 3:11am
View
i checked from crystal report main report preview.from there data is showing.
sudeshna from bangkok
5-Feb-15 2:51am
View
how to check that? shall i recreate the parameter field again? i think my parameter value is not set properly. beside category a ? sign showing in parameter field [?]@Category like this showing. is it correct?
sudeshna from bangkok
5-Feb-15 2:30am
View
yes the parameter category exists in the parameter field. see on clicking on any of the 5 items from drop down list, the list gets populated in gridview.
can i share a screenshot? how to do that?
sudeshna from bangkok
5-Feb-15 1:12am
View
Object reference not set to an instance of an object. this error showing in line
rDoc.ParameterFields["Category"].CurrentValues.Add(paramDiscreteValue);
sudeshna from bangkok
5-Feb-15 1:05am
View
what namespace to add? it showing error in line ParameterDiscreteValue
sudeshna from bangkok
5-Feb-15 0:58am
View
Then shall i remove Server.MapPath?
sudeshna from bangkok
5-Feb-15 0:57am
View
C:\Users\SUDESHNA\Documents\Visual Studio 2010\Projects\Inventory\SoldCrystalReport.rpt
this is the full path where my report is there
sudeshna from bangkok
5-Feb-15 0:55am
View
ReportDocument rDoc = new ReportDocument();
rDoc.Load(Server.MapPath("SoldCrystalReport.rpt"));
rDoc.SetParameterValue("Category", this.ddlCategory.SelectedValue);
rDoc.SetDatabaseLogon("sa", "gariahat");
this.crystalReportViewer.ReportSource = rDoc;
this.crystalReportViewer.DataBind();
this.crystalReportViewer.Focus();
var paramDiscreteValue = new ParameterDiscreteValue { Value = Value };
doc.ParameterFields[ParName].CurrentValues.Add(paramDiscreteValue);
like this?
and in place of value what do i write?
sudeshna from bangkok
5-Feb-15 0:54am
View
where to add these two lines? didnt get it?
sudeshna from bangkok
5-Feb-15 0:53am
View
rDoc.Load(Server.MapPath("SoldItemsCrystalReport.rpt"));
in this line do i have to give the full path? as its still showing error at runtime but when i am checking from inside the crystal report that is Main report Preview its working fine. asking for category value and as i am entering earrings, data are showing in crystal report but at runtime, its showing error
sudeshna from bangkok
5-Feb-15 0:45am
View
yes the parameter Category is there in the report
sudeshna from bangkok
5-Feb-15 0:43am
View
showing error in rDoc.SetParameterValue("Category", this.ddlCategory.SelectedValue);
Invalid index. (Exception from HRESULT: 0x8002000B (DISP_E_BADINDEX))
sudeshna from bangkok
5-Feb-15 0:16am
View
how to do so? or if you want you can change the code and tell me the correct way without using datasource
sudeshna from bangkok
5-Feb-15 0:14am
View
i have to set the parameter in the crystal report?
sudeshna from bangkok
5-Feb-15 0:06am
View
how to do so? can you please help? you helped me last time, it worked. thank u so much. can you please tell me?
sudeshna from bangkok
5-Feb-15 0:05am
View
didnt get it. last time what you suggested there no drop down list was there, so the other asp forms worked. as i wanted to display all the records.
but this time gridview will show data based on choosing from drop down list and that list should show in crystal report and clicking on print button it should directly print.
sudeshna from bangkok
4-Feb-15 23:59pm
View
private DataSet GetAllJewellery()
{
using (SqlConnection con = new SqlConnection(JewelleryHelper.GetConnectionString()))
{
using (SqlCommand cmd = new SqlCommand("spGetJeweleryOnSoldItems", con))
{
cmd.CommandType = CommandType.StoredProcedure;
cmd.Parameters.Add("@Category", SqlDbType.VarChar).Value = ddlCategory.SelectedItem.Text;
con.Open();
SqlDataAdapter sda = new SqlDataAdapter(cmd);
DataSet ds = new DataSet();
sda.Fill(ds);
con.Close();
return ds;
}
}
}
protected void btnPrint_Click(object sender, EventArgs e)
{
SoldItemsDataSetTableAdapters.spGetJeweleryOnSoldItemsTableAdapter getAllJewellerySoldItems = new SoldItemsDataSetTableAdapters.spGetJeweleryOnSoldItemsTableAdapter();
DataTable dt = getAllJewellerySoldItems.GetAllJewellerySoldItems(this.ddlCategory.SelectedValue);
ReportDocument rDoc = new ReportDocument();
rDoc.Load(Server.MapPath("SoldItemsCrystalReport.rpt"));
rDoc.SetDataSource(dt);
rDoc.SetParameterValue("Category", this.ddlCategory.SelectedValue);
this.crystalReportViewer.ReportSource = rDoc;
this.crystalReportViewer.DataBind();
this.crystalReportViewer.Focus();
}
}
sudeshna from bangkok
4-Feb-15 23:56pm
View
if you think its wrong then can you tell me the code please as to what to do?
sudeshna from bangkok
4-Feb-15 23:55pm
View
spGetJeweleryOnSoldItems is a store procedure and getalljewellerysolditems is dataset
sudeshna from bangkok
4-Feb-15 23:51pm
View
Deleted
getalljewellerysolditems is a store procedure
sudeshna from bangkok
4-Feb-15 21:53pm
View
Hi InbarBarkai
Can i ask another thing? i have a drop down combo box for products like earrings,necklace,bangles etc.
if i click from the drop down any of the above products, that particular details show in gridview, now i want to print that details which are there in gridview, now the code for print is not working here.
i mean selection based on category. can you tell me please how to do so?
sudeshna from bangkok
4-Feb-15 5:34am
View
Thanks a lot.
sudeshna from bangkok
4-Feb-15 5:12am
View
which lines to be removed can you please say? sorry to bothere. if you could mention it
sudeshna from bangkok
4-Feb-15 5:11am
View
i dont have any subreports. the 1st line where to add in my code?
sudeshna from bangkok
4-Feb-15 5:08am
View
this code where to add? the code which i wrote shall i erase it?
sudeshna from bangkok
4-Feb-15 3:47am
View
sorry.no the printer is not set on the report. how to set that? as i click on print button its showing the error that i posted
sudeshna from bangkok
4-Feb-15 1:11am
View
hello.Can anyone please help me?
sudeshna from bangkok
4-Feb-15 0:57am
View
Failed to open the connection.
ViewAllCrystalReport1 {509200AC-ED44-49EC-8695-FEF4E5D50013}.rpt
Details: [Database Vendor Code: 17 ]
error coming at the last line.
cryRpt.PrintToPrinter(2,true,1,2)
sudeshna from bangkok
4-Feb-15 0:53am
View
Failed to open the connection.
ViewAllCrystalReport1 {509200AC-ED44-49EC-8695-FEF4E5D50013}.rpt
Details: [Database Vendor Code: 17 ]
error coming in last line cryRpt.PrintToPrinter
sudeshna from bangkok
3-Feb-15 0:29am
View
is there any experts who can help me?
sudeshna from bangkok
2-Feb-15 23:30pm
View
can anyone please tell me?
sudeshna from bangkok
2-Feb-15 22:39pm
View
i did not understand, can you explain a bit more
sudeshna from bangkok
11-Dec-14 5:02am
View
i have sent you mail, let me know what to do.
sudeshna from bangkok
11-Dec-14 4:49am
View
sudeshnab08@gmail.com
Will i send my project to you? so that you can have a look at it?
sudeshna from bangkok
11-Dec-14 4:34am
View
hi, i just saw all my images which i m uploading from user end, getting saved in solution under a folder name ProductImage. and in the database it just shows the name of the productimage. so how do i now display image from folder under solution?
sudeshna from bangkok
11-Dec-14 4:20am
View
i used picturebox but my code i have written according to varchar(max),everywhere showing varchar, if i change in database then it might show error
sudeshna from bangkok
11-Dec-14 4:06am
View
hello, i changed the datatype of image field to image datatype, then in database image not coming, some ascii value showing and even at front end in grid view image not showing
sudeshna from bangkok
11-Dec-14 3:38am
View
then i have to change everywhere varchar to image datatype in my back end coding and if then error comes?
sudeshna from bangkok
11-Dec-14 3:36am
View
this is stored procedure for creation of table?
sudeshna from bangkok
11-Dec-14 3:26am
View
ok then i will create another new table right with table name img,right?
as i have 1 table already with fields serial number int
category varchar
image varchar(max)
costprice float
selling price float
sudeshna from bangkok
11-Dec-14 3:14am
View
i have taken image field in database as varchar(max) and how to attach table with crystal report?
sudeshna from bangkok
25-Nov-14 22:11pm
View
Thanks all of you for the help
sudeshna from bangkok
25-Nov-14 6:02am
View
ok i will try this code and will let you know how its working.Thanks. even i also dnt want to use is identity
sudeshna from bangkok
25-Nov-14 5:58am
View
ya i have different products category, so for different products serial number will start from 1
sudeshna from bangkok
25-Nov-14 5:51am
View
Thanks, i will implement this. if it runs will let you know
sudeshna from bangkok
25-Nov-14 5:51am
View
i dont want to use is identity property. i have used that. if some one deletes any data, then in that place no data will get inserted.
sudeshna from bangkok
25-Nov-14 5:31am
View
hello. i dnt want that to show in gridview serial number. i have one field in database where serial number exists. that field is my product item code and i have to enter from user end and gets stored in db.
next time when user enters new item, serial number displays new number in textbox field
sudeshna from bangkok
24-Nov-14 4:54am
View
hello can you help me please.see the second code that i pasted
sudeshna from bangkok
24-Nov-14 4:53am
View
can anyone please help me. where is wrong in this code? i cant understand it.
sudeshna from bangkok
24-Nov-14 4:19am
View
no data getting inserted in database.
sudeshna from bangkok
24-Nov-14 4:08am
View
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data.SqlClient;
using System.Configuration;
using System.IO;
using System.Drawing;
using System.Data;
public partial class AddEarRing : System.Web.UI.Page
{
SqlConnection con = new SqlConnection(ConfigurationManager.ConnectionStrings["ConnectionString"].ConnectionString);
protected void Page_Load(object sender, EventArgs e)
{
}
protected void Button1_Click(object sender, EventArgs e)
{
string fileName = string.Empty;
string filePath = string.Empty;
string getPath = string.Empty;
string pathToStore = string.Empty;
SqlCommand cmd = new SqlCommand("invent", con);
cmd.CommandType = CommandType.StoredProcedure;
cmd.Parameters.AddWithValue("@SerialNumber", txtcode.Text);
cmd.Parameters.AddWithValue("@Category", cmbcat.Text);
cmd.Parameters.AddWithValue("@Description", txtdesc.Text);
cmd.Parameters.AddWithValue("@CostPrice", TextBox1.Text);
cmd.Parameters.AddWithValue("@SellingPrice", TextBox4.Text);
cmd.Parameters.AddWithValue("@SoldPrice", txtprice.Text);
try
{
if (FileUpload1.HasFile)
{
fileName = FileUpload1.FileName;
filePath = Server.MapPath("Images/" + System.Guid.NewGuid() + fileName);
FileUpload1.SaveAs(filePath);
cmd.Parameters.AddWithValue("@Image", fileName);
int getPos = filePath.LastIndexOf("\\");
int len = filePath.Length;
getPath = filePath.Substring(getPos, len - getPos);
pathToStore = getPath.Remove(0, 1);
cmd.Parameters.AddWithValue("@BookPicPath", pathToStore);
}
con.Open();
cmd.ExecuteNonQuery();
Label8.Text = "Data saved successfully";
Label8.ForeColor = Color.Green;
ClearControls();
}
catch (Exception)
{
Label8.Text = "Data could not be saved";
Label8.ForeColor = Color.Red;
}
finally
{
con.Close();
cmd.Dispose();
fileName = null;
filePath = null;
getPath = null;
pathToStore = null;
}
}
private void ClearControls()
{
txtcode.Text = string.Empty;
txtdesc.Text = string.Empty;
txtprice.Text = string.Empty;
cmbcat.Text = string.Empty;
TextBox1.Text = string.Empty;
TextBox4.Text = string.Empty;
txtcode.Focus();
}
}
This is my new code that i changed just now. its running but going to the catch statement
sudeshna from bangkok
24-Nov-14 4:08am
View
i cant upload it in database
sudeshna from bangkok
24-Nov-14 2:23am
View
i have put my code in question area,now can you help me please
sudeshna from bangkok
24-Nov-14 1:13am
View
Deleted
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data.SqlClient;
using System.Configuration;
using System.IO;
public partial class AddEarRing : System.Web.UI.Page
{
SqlConnection con = new SqlConnection(ConfigurationManager.ConnectionStrings["ConnectionString"].ConnectionString);
protected void Page_Load(object sender, EventArgs e)
{
con.Open();
}
protected void Button1_Click(object sender, EventArgs e)
{
SqlCommand cmd = new SqlCommand("insert into invent values('" + txtcode.Text + "', '" + DropDownList1.Text + "', '" + txtdesc.Text + "', '" + TextBox1.Text + "', '" + TextBox4.Text + "', '" + txtprice.Text + "')", con);
cmd.ExecuteNonQuery();
con.Close();
Label8.Visible = true;
Label8.Text = "Your Data Successfully added";
txtcode.Text = "";
txtdesc.Text = "";
TextBox1.Text = "";
TextBox4.Text = "";
txtprice.Text = "";
}
protected void ImageButton1_Click(object sender, ImageClickEventArgs e)
{
string path = Server.MapPath("Images/");
if (FileUpload1.HasFile)
{
string ext = Path.GetExtension(FileUpload1.FileName);
if (ext == ".jpg" || ext == ".png" || ext == ".jpg")
{
FileUpload1.SaveAs(path + FileUpload1.FileName);
string name = "~/Images/" + FileUpload1.FileName;
string s = ("insert into invent values('" + TextBox4.Text + "'");
SqlCommand cmd = new SqlCommand(s, con);
con.Open();
cmd.ExecuteNonQuery();
con.Close();
Label9.Text = "Your file has been uploaded";
}
else
{
Response.Write("Please select a file");
}
}
}
}
sudeshna from bangkok
22-Nov-14 0:20am
View
yes i solved it but i did not give path. I just wrote my aspx file name within ahref within double quotes and it came.
sudeshna from bangkok
21-Nov-14 23:43pm
View
how to root my file location? didnt get what you meant? did you meant giving the path of the aspx file?
sudeshna from bangkok
21-Nov-14 3:59am
View
i did not give path, i just wrote with a href, additem.aspx
sudeshna from bangkok
21-Nov-14 3:57am
View
Deleted
in the path area i just wrote
so its coming now
sudeshna from bangkok
21-Nov-14 3:56am
View
Deleted
<li>
Add An Item
</li>
sudeshna from bangkok
21-Nov-14 3:56am
View
yes i have given correct path
sudeshna from bangkok
21-Nov-14 0:45am
View
how to do then? Not coming after even giving the path
sudeshna from bangkok
21-Nov-14 0:31am
View
i copy and pasted the path, why is it not displaying here?
sudeshna from bangkok
21-Nov-14 0:31am
View
<li>
Jewelry
<ul>
<li>
Add An Item
</li>
sudeshna from bangkok
21-Nov-14 0:30am
View
<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
CodeFile="Menu.aspx.cs" Inherits="Menu" %>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="Server">
<div class="example">
<ul id="nav">
<li class="current">
Sign Out
</li>
<li>
Jewelry
<ul>
<li>
Add An Item
</li>
<li>
Update An Item
</li>
</ul>
</li>
<li>
Stock
<ul>
<li>
View Stock List
</li>
<li>
View Sold List
</li>
<li>
View All Items
</li>
</ul>
</li>
<li>
Search
<ul>
<li>
By Serial Number
</li>
<li>
By Category
</li>
<li>
By Price
</li>
<li>
By Stone
</li>
<li>
By Category-Price
</li>
<li>
By Category-Stone
</li>
</ul>
</li>
</ul>
</div>
Check the Add an Item line. i gave the path. but its not coming anything
sudeshna from bangkok
21-Nov-14 0:28am
View
Deleted
<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
CodeFile="Menu.aspx.cs" Inherits="Menu" %>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="Server">
<div class="example">
<ul id="nav">
<li class="current">
Sign Out
</li>
<li>
Jewelry
<ul>
<li>
Add An Item
</li>
<li>
Update An Item
</li>
</ul>
</li>
<li>
Stock
<ul>
<li>
View Stock List
</li>
<li>
View Sold List
</li>
<li>
View All Items
</li>
</ul>
</li>
<li>
Search
<ul>
<li>
By Serial Number
</li>
<li>
By Category
</li>
<li>
By Price
</li>
<li>
By Stone
</li>
<li>
By Category-Price
</li>
<li>
By Category-Stone
</li>
</ul>
</li>
</ul>
</div>
check that line. i gave the path.nothing coming. i mean the page not redirecting to another page
sudeshna from bangkok
21-Nov-14 0:22am
View
ya i saw the solution1,but didnt understand what you meant.can u explain?
sudeshna from bangkok
21-Nov-14 0:19am
View
didnt get it.can you explain?
sudeshna from bangkok
21-Nov-14 0:17am
View
did you see it?
sudeshna from bangkok
21-Nov-14 0:13am
View
<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
CodeFile="Menu.aspx.cs" Inherits="Menu" %>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="Server">
<div class="example">
<ul id="nav">
<li class="current">
Sign Out
</li>
<li>
Jewelry
<ul>
<li>
Add An Item
</li>
<li>
Update An Item
</li>
</ul>
</li>
<li>
Stock
<ul>
<li>
View Stock List
</li>
<li>
View Sold List
</li>
<li>
View All Items
</li>
</ul>
</li>
<li>
Search
<ul>
<li>
By Serial Number
</li>
<li>
By Category
</li>
<li>
By Price
</li>
<li>
By Stone
</li>
<li>
By Category-Price
</li>
<li>
By Category-Stone
</li>
</ul>
</li>
</ul>
</div>
this is the code.
sudeshna from bangkok
3-Nov-14 4:34am
View
ok
sudeshna from bangkok
3-Nov-14 4:09am
View
atleast could have given some good solution
sudeshna from bangkok
22-Oct-14 0:36am
View
how to apply the login form templates in my own project? i have downloaded the login templates
sudeshna from bangkok
14-Oct-14 5:08am
View
i know VB. as i have done many projects on vb.net but on windows platform.
asp.net i have no idea. ya sure you can send me links here. what is mvc? that only i am getting confused. and if i do in asp.net with vb,shall my requirement be fulfilled? i mean did you understood what i want in my project?
sudeshna from bangkok
14-Oct-14 4:58am
View
i have to do a inventory project on stones, so i am confused whether i do in windows vb.net or asp.net?
i just want the front end looks good design and the software if viewed by any computer data can be visible. i mean suppose i make changes to data in database from my system,
if someone else opens the software from his/her system can see the changes or can update also something in the db. to for this what exactly platform i need to do?
sudeshna from bangkok
14-Oct-14 4:49am
View
Thanks for the help. can i ask another question? it might be a very stupid question
sudeshna from bangkok
14-Oct-14 4:48am
View
Thanks for the help
sudeshna from bangkok
14-Oct-14 4:41am
View
where is the link?
sudeshna from bangkok
14-Oct-14 4:40am
View
Thank u for the link,but i am learning asp.net. i dont know how to do.
sudeshna from bangkok
30-Sep-14 22:51pm
View
you can check my other posts,in 2013, i got many help.
sudeshna from bangkok
30-Sep-14 22:51pm
View
no,i am not asking to teach me, i just want some better links so that seeing it i can do something.last year when i was new to vb.net,i got help from codeproject only.
many experts helped me with many links.and i finished my project.
msdn help is for experts who know programming very well.
sudeshna from bangkok
30-Sep-14 11:42am
View
I saw the links,but did not understand the concept,please if you could help me more.
I will be very obliged.
sudeshna from bangkok
30-Sep-14 9:03am
View
Thank you for the links,but i did not understand anything as i a amateur in web applications.can you give some more links explaining how to do it or how to start with.
waiting for your response.thanks in advance
sudeshna from bangkok
30-Sep-14 4:45am
View
hello.can anyone tell me please? or some asp links how to do it entire thing
sudeshna from bangkok
30-Sep-14 4:31am
View
how to do it? i dont know asp.net. can you help me?
sudeshna from bangkok
3-Oct-13 1:52am
View
This is my code in the crystal report to load data from datagridview to crystal report.
But the data is not getting loaded in crystal report.the above error is showing. i have added a blank crystal report. created a new dataset and under that new datatable.but the data still not loading in crystal report.
sudeshna from bangkok
3-Oct-13 1:50am
View
Imports System.Configuration
Imports CrystalDecisions.CrystalReports.Engine
Imports CrystalDecisions.ReportAppServer
Imports System.Data.SqlClient
Imports System.Data
Public Class Form32
Private Sub Form32_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load
Dim cn As New SqlConnection("Data Source=.\INSTANCE;initial catalog=record;user=sa;password=gariahat")
Dim ds As New DataSet
Dim dt As DataTable
Dim cmd As New SqlCommand("select * from fullsort where return_dt is null ", cn)
Dim da As New SqlDataAdapter(cmd)
dt = New DataTable
da.Fill(dt)
'FullsortDataGridView.DataSource = tb2
cn.Close()
' Dim rpdoc As ReportDocument
Dim rpdoc As CrystalDecisions.CrystalReports.Engine.ReportDocument
rpdoc = New stock
Me.CrystalReportViewer1.ReportSource = rpdoc
rpdoc.SetDataSource(dt)
End Sub
End Class
sudeshna from bangkok
2-Oct-13 23:33pm
View
Can anyone help me in rectifying my error
sudeshna from bangkok
2-Oct-13 23:32pm
View
i think my coding is wrong, because in same project my other crystal reports are working, only this report where i have written this code to extract data from datagridview and print in crystal report, this report not working
sudeshna from bangkok
2-Oct-13 23:13pm
View
Can anyone help me please. not getting the data loaded in crystal report from datagridview
sudeshna from bangkok
1-Oct-13 1:11am
View
why this error coming?
sudeshna from bangkok
1-Oct-13 0:58am
View
when i am running my application and clicking on print button to display the crystal report
the following error is coming
Could not load file or assembly 'file:///C:\Program Files (x86)\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win64_x64\dotnet1\crdb_adoplus.dll' or one of its dependencies. The system cannot find the file specified.
sudeshna from bangkok
1-Oct-13 0:46am
View
showing error that fullsortdatagridview is not declared
sudeshna from bangkok
1-Oct-13 0:44am
View
where will i add this code? in form32? that is crystal report viewer?
sudeshna from bangkok
30-Sep-13 6:04am
View
cr1 is the name of my crystalreport
sudeshna from bangkok
30-Sep-13 6:03am
View
Dim cn As New SqlConnection("Data Source=.\INSTANCE;initial catalog=record;user=sa;password=gariahat")
Dim ds As New DataSet
Dim dt As DataTable
dt = New DataTable()
ds.Tables.Add(dt)
cr1.SetDataSource(ds)
CrystalReportViewer1.ReportSource = cr1
sudeshna from bangkok
30-Sep-13 6:03am
View
this error i am getting
Could not load file or assembly 'file:///C:\Program Files (x86)\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win64_x64\dotnet1\crdb_adoplus.dll' or one of its dependencies. The system cannot find the file specified.
sudeshna from bangkok
30-Sep-13 4:59am
View
this is the code i wrote in crystal report for loading datagridview data to crystal report but its showing error. what is wrong in it?
sudeshna from bangkok
30-Sep-13 4:58am
View
Deleted
Private Sub CrystalReportViewer1_Load(sender As System.Object, e As System.EventArgs) Handles CrystalReportViewer1.Load
Dim cn As New SqlConnection("Data Source=.\INSTANCE;initial catalog=record;user=sa;password=gariahat")
Dim ds As New DataSet
Dim dt As DataTable
dt = New DataTable()
ds.Tables.Add(dt)
cr1.SetDataSource(ds)
CrystalReportViewer1.ReportSource = stock1
sudeshna from bangkok
30-Sep-13 1:54am
View
Can anyone help me plz.
sudeshna from bangkok
29-Sep-13 22:54pm
View
That only i dont know what code to write when return_dt is null or blank.
Can you help me. the above code is for delete,add,print and edit records that i have posted the code.
sudeshna from bangkok
28-Sep-13 5:51am
View
Can any one help me.how to do that?
sudeshna from bangkok
26-Sep-13 6:30am
View
RegisterClientScriptBlock method is obsolete. This error is showing in green underlined
sudeshna from bangkok
26-Sep-13 6:27am
View
Variable file1 is used before it is assigned a value.
This error showing in line
Dim imageInfo As FileInfo = New FileInfo(File1.Trim())
sudeshna from bangkok
26-Sep-13 6:24am
View
I am using web application
sudeshna from bangkok
26-Sep-13 5:45am
View
and in this line, its showing warning that this variable is used before its assigned a value
sudeshna from bangkok
26-Sep-13 5:43am
View
ok. but now error is coming in this line
RegisterClientScriptBlock("alertMsg", "<script>alert('please select one image file.');</script>")
sudeshna from bangkok
26-Sep-13 4:43am
View
now error is coming in these 3 lines-
Case ".JPG" : UpLoadImageFile(File1.Value.Trim())
Case ".GIF" : UpLoadImageFile(File1.Value.Trim())
Case ".BMP" : UpLoadImageFile(File1.Value.Trim())
file1.value.trim()
and also previously error was coming in line
RegisterClientScriptBlock("alertMsg", "<script>alert('please select one image file.');</script>")
sudeshna from bangkok
26-Sep-13 4:42am
View
I have declared the file1 as string
Protected Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
Dim File1 As String
Dim imageInfo As FileInfo = New FileInfo(File1.Trim())
If imageInfo.Exists() = False Then
RegisterClientScriptBlock("alertMsg", "<script>alert('please select one image file.');</script>")
Else
Select Case (imageInfo.Extension.ToUpper())
Case ".JPG" : UpLoadImageFile(File1.Value.Trim())
Case ".GIF" : UpLoadImageFile(File1.Value.Trim())
Case ".BMP" : UpLoadImageFile(File1.Value.Trim())
'default: RegisterClientScriptBlock("alertMsg", "<script>alert('file type error.');</script>")
End Select
End If
End Sub
sudeshna from bangkok
26-Sep-13 4:30am
View
Can you help me with some other alternative, its just that i am learning, so just want to know how to upload and retrieve images to and from database
sudeshna from bangkok
26-Sep-13 4:18am
View
Then how to create string with file1? can you help me
sudeshna from bangkok
26-Sep-13 3:31am
View
Ya i meant the same
sudeshna from bangkok
26-Sep-13 3:31am
View
http://www.aspnettutorials.com/tutorials/database/Save-Img-ToDB-VB/
this is the website from where i got the code
sudeshna from bangkok
26-Sep-13 3:30am
View
even I dont know what is it? i searched website for uploading image to database and found this code,so I wrote. As i am new to this language.
sudeshna from bangkok
26-Sep-13 2:08am
View
Yes it was useful.Thanks a lot.Thats why i already gave thanks
sudeshna from bangkok
26-Sep-13 2:07am
View
No,i did debug the code and its not going to else part unless i give wrong password.
Its in asp.net with vb code
sudeshna from bangkok
26-Sep-13 1:38am
View
its working now.Thanks
sudeshna from bangkok
26-Sep-13 1:28am
View
now the page is being redirected to login.aspx which is under account/login.aspx
and I have created a separate log.aspx which is outside the directory
sudeshna from bangkok
26-Sep-13 1:27am
View
Imports System.Data
Imports System.Data.SqlClient
Imports System.Configuration
Public Class log
Inherits System.Web.UI.Page
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
End Sub
Protected Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
Dim con As New SqlConnection(ConfigurationManager.ConnectionStrings("loginConnectionString").ConnectionString)
con.Open()
Dim cmd As New SqlCommand("select * from log where username =@username and Pass=@password", con)
cmd.Parameters.AddWithValue("@username", TextBox1.Text)
cmd.Parameters.AddWithValue("@password", TextBox2.Text)
Dim da As New SqlDataAdapter(cmd)
Dim dt As New DataTable()
da.Fill(dt)
If dt.Rows.Count > 0 Then
Response.Redirect("Account/ChangePassword.aspx")
Else
ClientScript.RegisterStartupScript(Page.[GetType](), "validation", "<script language='javascript'>alert('Invalid Username and Password')</script>")
End If
End Sub
End Class
sudeshna from bangkok
26-Sep-13 1:27am
View
i deleted that project and created a new one,
I will post the code
sudeshna from bangkok
26-Sep-13 0:59am
View
same login page is displaying
sudeshna from bangkok
26-Sep-13 0:40am
View
I used response.redirect with full path, but no change,page is not getting redirected to other page
sudeshna from bangkok
26-Sep-13 0:39am
View
I did but same.no change. is anything wrong with my code? in the if statement? please can you re check it.
sudeshna from bangkok
25-Sep-13 23:57pm
View
sorry this url is showing but the page is not getting redirected
http://localhost:13523/Account/Login.aspx?ReturnUrl=%2fAccount%2fChangePassword.aspx
sudeshna from bangkok
25-Sep-13 23:55pm
View
Yes the ChangePassword.aspx and login.aspx are in same account directory
sudeshna from bangkok
25-Sep-13 23:54pm
View
Deleted
no error showing,the same page shows but in url this comes
http://localhost:13523/Account/Login.aspx?ReturnUrl=%2fAccount%2fDefault.aspx
sudeshna from bangkok
18-Sep-13 4:15am
View
No,i meant how to create a web application project using asp.net
sudeshna from bangkok
18-Sep-13 2:35am
View
I am sorry.tell me i will modify the question according to what you say.i just need help in asp.net.as i am new to it
sudeshna from bangkok
18-Sep-13 2:09am
View
Thanks
Show More