15,895,084 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 Python 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 ruby kaur (Top 28 by date)
ruby kaur
1-Sep-15 2:30am
View
both manifest are identical,i clean and rebuild the project but stillits not working.
ruby kaur
9-Jul-14 6:02am
View
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:
ruby kaur
9-Jul-14 5:53am
View
Deleted
ruby kaur
18-May-14 7:03am
View
The solution works for me. Thanks a lot.But the problem is when press the tab or enter to that textbox It Occurs the PostBack to the enteir page please help me.
ruby kaur
14-May-14 3:45am
View
But i have to do it on same page and i can't use any button for it.
Please Help.
ruby kaur
6-May-14 7:57am
View
yes mistakenly i write 201-300 its 201-500.
ruby kaur
5-May-14 23:10pm
View
The logic is a truck is arrived in depot having some material in it ,suppose having 200 boxes this 200 is inserted in total _qty column in table,
now i have to allot depot_No to each box,now if this is the first record for this depot then i have to allot 1-200 depot_no for this record.
and when next truck arrive if it's having total no of boxes 300 then i have to allot him depot_no from 201-300.like this for each item come in depot i have to give depot_No .
form every 1st of October this depot_no no starts from 1.
i hope now you get the logic
there is Total _Qty column in table in which material's total_Qty is inserted.
ruby kaur
11-Apr-14 1:45am
View
hi i use comparevalidator like this:
<asp:CompareValidator runat="server" id="cmpNumbers" controltovalidate="txtTIN"
ValueToCompare="000000000" operator="GreaterThan" type="Integer" errormessage="Invalid Tin Number" />
but it shows error msg in both condition weather i enter 00000000000 or 12345678912 why so.
and i am checking foe 11 digit no. and you suggest value to compare only 9 digit 000000000.
pls explain, and help.
ruby kaur
9-Apr-14 7:55am
View
where to put this check.
ruby kaur
7-Jan-14 6:23am
View
this also not work.
ruby kaur
7-Jan-14 6:20am
View
code is not giving any error in compilation but when i give value <25 in the text box its not disabling that part of the page.
ruby kaur
10-Dec-13 3:04am
View
hi your code is goving error:
System.Web.UI.WebControls.TextBox' does not contain a definition for 'value' and no extension method 'value' accepting a first argument of type 'System.Web.UI.WebControls.TextBox' could be found (are you missing a using directive or an assembly reference?)
i have written this code like this in aspx.cs page:
protected void txtContractorBusinesscapacity_TextChanged(object sender, EventArgs e)
{
if (!string.IsNullOrEmpty(txtContractorBusinesscapacity.value))
{
int value = 0;
bool isParsed = int.TryParse(txtContractorBusinesscapacity.value, out value);
if (isParsed && value <= 15000)
{
txtTIN.Enabled = false;
}
}
}
textbox defanation in aspx page is like this.
<asp:TextBox ID="txtContractorBusinesscapacity" runat="server" öntextchanged="txtContractorBusinesscapacity_TextChanged"
Width="250px">
<asp:RequiredFieldValidator ID="rvtContractorBusinesscapacity" runat="server"
ControlToValidate="txtContractorBusinesscapacity" Display="Dynamic"
SetFocusOnError="True">*
<asp:CompareValidator ID="cvContractorBusinesscapacity" runat="server"
ControlToValidate="txtContractorBusinesscapacity" Display="Dynamic"
Operator="GreaterThanEqual" SetFocusOnError="true" Type="Double"
ValueToCompare="0">Enter numeric value
</td>
ruby kaur
9-Jul-13 1:47am
View
thankyou this will work for me.
ruby kaur
9-Jul-13 1:43am
View
i think replication is not useful in my case.because my task is to make centralized database for all the master tables. right now every application is using its own set of master tables which is causing data redundancy now i have to shift all master tables in centralized database and application specific and transnational tables in applications own database.
ruby kaur
29-Dec-12 3:32am
View
Thanks Mr. Zafar
I execute my procedure explicitly and got the mistake. Thanks for reminding me this step.
ruby kaur
28-Dec-12 8:29am
View
Thanks for the solution.
I make changes in the procedure and it is working successfully. I tried the first solution as i wanted to learn it. It is giving me a message "operator == cannot be applied to operands of type 'int' and 'string'". Can you please guide me about that.
ruby kaur
27-Dec-12 6:36am
View
This is code from .cs file code
Collapse | Copy Code
protected void btnAdd_Click(object sender, EventArgs e)
{
if (objLotCreation.Insert(ddlDepot.SelectedValue, txtlotcode.Text.Trim(), txtDepo_stackno.Text.Trim(), txtSPECIES_Ename.Text.Trim(),
txtSPECIES_Uname.Text.Trim(), txtSPECIES_Kname.Text.Trim(), txtGrade.Text.Trim(), Convert.ToInt32(txtNo_of_pieces.Text),
txtLength_class.Text.Trim(), txtlblGirth_class.Text.Trim(), Convert.ToDouble(txtCubic_meter.Text), Convert.ToDouble(txtUpset_price.Text),
Convert.ToDouble(txtSale_Price.Text), Convert.ToInt32(Session["OfficeID"].ToString())))
{
lblStatus.Text = Resources.Language.Common_Record_Add;
}
BindGrid(Session["Language"].ToString());
clearfields();
}
This is business logic code
Collapse | Copy Code
public bool Insert(string Depot_Code, string Lot_Code, string Depo_stackno, string SPECIES_Ename, string SPECIES_Uname, string SPECIES_Kname, string Grade,
int No_of_pieces, string Length_class, string Girth_class, double Cubic_meter,double Upset_price,double Sale_Price,int DIV_ID)
{
bool res = false;
System.Collections.ArrayList sel = new System.Collections.ArrayList();
sel.Add("SP_m_LotCreation_Insert");
ArrayList lstParam = new System.Collections.ArrayList();
SqlParameter param;
param = new SqlParameter();
param.ParameterName = "@Depot_Code";
param.SqlDbType = SqlDbType.VarChar;
param.Value = Depot_Code;
lstParam.Add(param);
param = new SqlParameter();
param.ParameterName = "@Lot_Code";
param.SqlDbType = SqlDbType.NVarChar;
param.Value = Lot_Code;
lstParam.Add(param);
param = new SqlParameter();
param.ParameterName = "@Depo_stackno";
param.SqlDbType = SqlDbType.VarChar;
param.Value = Depo_stackno;
lstParam.Add(param);
param = new SqlParameter();
param.ParameterName = "@SPECIES_Ename";
param.SqlDbType = SqlDbType.VarChar;
param.Value = SPECIES_Ename;
lstParam.Add(param);
param = new SqlParameter();
param.ParameterName = "@SPECIES_Uname";
param.SqlDbType = SqlDbType.VarChar;
param.Value = SPECIES_Uname;
lstParam.Add(param);
param = new SqlParameter();
param.ParameterName = "@SPECIES_Kname";
param.SqlDbType = SqlDbType.VarChar;
param.Value = SPECIES_Kname;
lstParam.Add(param);
param = new SqlParameter();
param.ParameterName = "@Grade";
param.SqlDbType = SqlDbType.VarChar;
param.Value = Grade;
lstParam.Add(param);
param = new SqlParameter();
param.ParameterName = "@No_of_pieces";
param.SqlDbType = SqlDbType.Int;
param.Value = No_of_pieces;
lstParam.Add(param);
param = new SqlParameter();
param.ParameterName = "@Length_class";
param.SqlDbType = SqlDbType.VarChar;
param.Value = Depo_stackno;
lstParam.Add(param);
param = new SqlParameter();
param.ParameterName = "@Girth_class";
param.SqlDbType = SqlDbType.VarChar;
param.Value = Girth_class;
lstParam.Add(param);
param = new SqlParameter();
param.ParameterName = "@Cubic_meter";
param.SqlDbType = SqlDbType.Float;
param.Value = Cubic_meter;
lstParam.Add(param);
param = new SqlParameter();
param.ParameterName = "@Upset_price";
param.SqlD
ruby kaur
27-Dec-12 6:36am
View
This is code from .cs file code
Collapse | Copy Code
protected void btnAdd_Click(object sender, EventArgs e)
{
if (objLotCreation.Insert(ddlDepot.SelectedValue, txtlotcode.Text.Trim(), txtDepo_stackno.Text.Trim(), txtSPECIES_Ename.Text.Trim(),
txtSPECIES_Uname.Text.Trim(), txtSPECIES_Kname.Text.Trim(), txtGrade.Text.Trim(), Convert.ToInt32(txtNo_of_pieces.Text),
txtLength_class.Text.Trim(), txtlblGirth_class.Text.Trim(), Convert.ToDouble(txtCubic_meter.Text), Convert.ToDouble(txtUpset_price.Text),
Convert.ToDouble(txtSale_Price.Text), Convert.ToInt32(Session["OfficeID"].ToString())))
{
lblStatus.Text = Resources.Language.Common_Record_Add;
}
BindGrid(Session["Language"].ToString());
clearfields();
}
This is business logic code
Collapse | Copy Code
public bool Insert(string Depot_Code, string Lot_Code, string Depo_stackno, string SPECIES_Ename, string SPECIES_Uname, string SPECIES_Kname, string Grade,
int No_of_pieces, string Length_class, string Girth_class, double Cubic_meter,double Upset_price,double Sale_Price,int DIV_ID)
{
bool res = false;
System.Collections.ArrayList sel = new System.Collections.ArrayList();
sel.Add("SP_m_LotCreation_Insert");
ArrayList lstParam = new System.Collections.ArrayList();
SqlParameter param;
param = new SqlParameter();
param.ParameterName = "@Depot_Code";
param.SqlDbType = SqlDbType.VarChar;
param.Value = Depot_Code;
lstParam.Add(param);
param = new SqlParameter();
param.ParameterName = "@Lot_Code";
param.SqlDbType = SqlDbType.NVarChar;
param.Value = Lot_Code;
lstParam.Add(param);
param = new SqlParameter();
param.ParameterName = "@Depo_stackno";
param.SqlDbType = SqlDbType.VarChar;
param.Value = Depo_stackno;
lstParam.Add(param);
param = new SqlParameter();
param.ParameterName = "@SPECIES_Ename";
param.SqlDbType = SqlDbType.VarChar;
param.Value = SPECIES_Ename;
lstParam.Add(param);
param = new SqlParameter();
param.ParameterName = "@SPECIES_Uname";
param.SqlDbType = SqlDbType.VarChar;
param.Value = SPECIES_Uname;
lstParam.Add(param);
param = new SqlParameter();
param.ParameterName = "@SPECIES_Kname";
param.SqlDbType = SqlDbType.VarChar;
param.Value = SPECIES_Kname;
lstParam.Add(param);
param = new SqlParameter();
param.ParameterName = "@Grade";
param.SqlDbType = SqlDbType.VarChar;
param.Value = Grade;
lstParam.Add(param);
param = new SqlParameter();
param.ParameterName = "@No_of_pieces";
param.SqlDbType = SqlDbType.Int;
param.Value = No_of_pieces;
lstParam.Add(param);
param = new SqlParameter();
param.ParameterName = "@Length_class";
param.SqlDbType = SqlDbType.VarChar;
param.Value = Depo_stackno;
lstParam.Add(param);
param = new SqlParameter();
param.ParameterName = "@Girth_class";
param.SqlDbType = SqlDbType.VarChar;
param.Value = Girth_class;
lstParam.Add(param);
param = new SqlParameter();
param.ParameterName = "@Cubic_meter";
param.SqlDbType = SqlDbType.Float;
param.Value = Cubic_meter;
lstParam.Add(param);
param = new SqlParameter();
param.ParameterName = "@Upset_price";
param.SqlD
ruby kaur
27-Dec-12 6:35am
View
This is code from .cs file code
Collapse | Copy Code
protected void btnAdd_Click(object sender, EventArgs e)
{
if (objLotCreation.Insert(ddlDepot.SelectedValue, txtlotcode.Text.Trim(), txtDepo_stackno.Text.Trim(), txtSPECIES_Ename.Text.Trim(),
txtSPECIES_Uname.Text.Trim(), txtSPECIES_Kname.Text.Trim(), txtGrade.Text.Trim(), Convert.ToInt32(txtNo_of_pieces.Text),
txtLength_class.Text.Trim(), txtlblGirth_class.Text.Trim(), Convert.ToDouble(txtCubic_meter.Text), Convert.ToDouble(txtUpset_price.Text),
Convert.ToDouble(txtSale_Price.Text), Convert.ToInt32(Session["OfficeID"].ToString())))
{
lblStatus.Text = Resources.Language.Common_Record_Add;
}
BindGrid(Session["Language"].ToString());
clearfields();
}
This is business logic code
Collapse | Copy Code
public bool Insert(string Depot_Code, string Lot_Code, string Depo_stackno, string SPECIES_Ename, string SPECIES_Uname, string SPECIES_Kname, string Grade,
int No_of_pieces, string Length_class, string Girth_class, double Cubic_meter,double Upset_price,double Sale_Price,int DIV_ID)
{
bool res = false;
System.Collections.ArrayList sel = new System.Collections.ArrayList();
sel.Add("SP_m_LotCreation_Insert");
ArrayList lstParam = new System.Collections.ArrayList();
SqlParameter param;
param = new SqlParameter();
param.ParameterName = "@Depot_Code";
param.SqlDbType = SqlDbType.VarChar;
param.Value = Depot_Code;
lstParam.Add(param);
param = new SqlParameter();
param.ParameterName = "@Lot_Code";
param.SqlDbType = SqlDbType.NVarChar;
param.Value = Lot_Code;
lstParam.Add(param);
param = new SqlParameter();
param.ParameterName = "@Depo_stackno";
param.SqlDbType = SqlDbType.VarChar;
param.Value = Depo_stackno;
lstParam.Add(param);
param = new SqlParameter();
param.ParameterName = "@SPECIES_Ename";
param.SqlDbType = SqlDbType.VarChar;
param.Value = SPECIES_Ename;
lstParam.Add(param);
param = new SqlParameter();
param.ParameterName = "@SPECIES_Uname";
param.SqlDbType = SqlDbType.VarChar;
param.Value = SPECIES_Uname;
lstParam.Add(param);
param = new SqlParameter();
param.ParameterName = "@SPECIES_Kname";
param.SqlDbType = SqlDbType.VarChar;
param.Value = SPECIES_Kname;
lstParam.Add(param);
param = new SqlParameter();
param.ParameterName = "@Grade";
param.SqlDbType = SqlDbType.VarChar;
param.Value = Grade;
lstParam.Add(param);
param = new SqlParameter();
param.ParameterName = "@No_of_pieces";
param.SqlDbType = SqlDbType.Int;
param.Value = No_of_pieces;
lstParam.Add(param);
param = new SqlParameter();
param.ParameterName = "@Length_class";
param.SqlDbType = SqlDbType.VarChar;
param.Value = Depo_stackno;
lstParam.Add(param);
param = new SqlParameter();
param.ParameterName = "@Girth_class";
param.SqlDbType = SqlDbType.VarChar;
param.Value = Girth_class;
lstParam.Add(param);
param = new SqlParameter();
param.ParameterName = "@Cubic_meter";
param.SqlDbType = SqlDbType.Float;
param.Value = Cubic_meter;
lstParam.Add(param);
param = new SqlParameter();
param.ParameterName = "@Upset_price";
param.SqlD
ruby kaur
27-Dec-12 5:32am
View
if (objLotCreation.Insert(ddlDepot.SelectedValue, txtlotcode.Text.Trim(), txtDepo_stackno.Text.Trim(), txtSPECIES_Ename.Text.Trim(),
txtSPECIES_Uname.Text.Trim(), txtSPECIES_Kname.Text.Trim(), txtGrade.Text.Trim(), Convert.ToInt32(txtNo_of_pieces.Text),
txtLength_class.Text.Trim(), txtlblGirth_class.Text.Trim(), Convert.ToDouble(txtCubic_meter.Text), Convert.ToDouble(txtUpset_price.Text),
Convert.ToDouble(txtSale_Price.Text), Convert.ToInt32(Session["OfficeID"].ToString())))
ruby kaur
27-Dec-12 5:28am
View
Cubic_meter and Upset_price are the column in database which allow Null values .
ruby kaur
10-Dec-12 5:19am
View
i am already doing like this :
protected void lstLotBided_SelectedIndexChanged(object sender, EventArgs e)
{
txtsaleprice.Text = "People Records : " + lstLotBided.Items.Count.ToString();
if ((lstLotBided.Items.Count > 0 && lstLotBided.SelectedIndex >= 0))
{
dt = objEmd.SelectSale_Price(lstLotBided.SelectedValue);
double tempsaleprice = 0;
for (int i = 0; i < lstLotBided.Items.Count; i++)
{
if (lstLotBided.Items[i].Selected)
{
tempsaleprice = tempsaleprice + Convert.ToDouble(lstLotBided.Items[i].Text);
}
}
txtsaleprice.Text = tempsaleprice.ToString();
}
else
{
txtsaleprice.Text = "";
}
}
But it is not working. if u suggest any improvement pls make them.
thanks
ruby kaur
6-Dec-12 23:24pm
View
please explain with example,
i am using textbox control for auction date and it is having ajax clender control to select date,and my lotcode is multiselect listbox.
on selection of date by user the list box has to be filled with all the lotcode of that auction date.
pls help me out.
thanks
ruby kaur
3-Dec-12 2:16am
View
i mean accepting data from single textbox and inserting them into different column of sql server 2008
ruby kaur
27-Nov-12 2:31am
View
if i am trying to do this getting error;
Error 60 Cannot implicitly convert type 'double' to 'string' .
and its not giving error here but on btn add button block.
ruby kaur
29-Sep-12 5:47am
View
it will not open in note pad or word
ruby kaur
10-Jul-12 5:49am
View
Is there any other way of doing this in same table
ruby kaur
10-Jul-12 3:24am
View
Thanks a lot
Show More