15,912,069 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 Hasiya (Top 26 by date)
Hasiya
6-Feb-13 4:55am
View
this time using System.Data.Datarow nt working mising aseembly referance
Hasiya
6-Feb-13 4:47am
View
It's not working dear .i try this code.
Hasiya
6-Feb-13 4:27am
View
public DataTable getTaxStat(String TaxCode)
{
string sql = "SELECT Stat FROM tblTaxTypes WHERE TaxCode= '"+TaxCode+ "'";
DataTable StatList = SQLTrans.executeQuery(sql, "tbl");
return StatList;
}
Hasiya
6-Feb-13 4:21am
View
I check this code VS2010 immediate Window no errors this code
Hasiya
6-Feb-13 4:18am
View
protected void BtnInactive_Click(object sender, EventArgs e)
{
String modee = ViewState["mode"].ToString();
if (modee == "Edit")
{
String procedureName;
CommandType cmdType;
List<sqlparameter> parameters = new List<sqlparameter>();
procedureName = "Add_tblTaxTypes";
cmdType = CommandType.StoredProcedure;
parameters.Add(new SqlParameter("@TaxCode", SqlDbType.Int));//0
parameters.Add(new SqlParameter("@TaxName", SqlDbType.VarChar, 100));//1
parameters.Add(new SqlParameter("@TaxDescription", SqlDbType.VarChar, 100));//2
parameters.Add(new SqlParameter("@EnterdBy", SqlDbType.VarChar, 100));//3
parameters.Add(new SqlParameter("@EnterDate", SqlDbType.Date));//4
parameters.Add(new SqlParameter("@Stat", SqlDbType.Bit));//5
parameters.Add(new SqlParameter("@Status", SqlDbType.Int));//6
String Uname = Session["UN"].ToString();
lbluser.Text = Uname;
if (BAL.UserValidation.F_name != null)
{
Emp_Name = BAL.UserValidation.F_name;
}
parameters[0].Value = 0;
parameters[1].Value = txtTaxname.Text.Trim();
parameters[2].Value = txtTaxDesc.Text.Trim();
parameters[3].Value = lbluser.Text;
DateTime DateTime1 = DateTime.Now;
parameters[4].Value = DateTime.Now;
String TaxCode = GridViewTax.SelectedRow.Cells[1].Text;
dt = AD.getTaxStat(TaxCode);
lblstat.Text = dt.Rows[0][0].ToString();
if (lblstat.Text == "true")
{
Boolean ss = false;
parameters[5].Value = ss.ToString();
// BtnInactive.Text = "Inactive";
}
else if (lblstat.Text == "false")
{
//BtnInactive.Text = "Active";
Boolean ss = true;
parameters[5].Value = ss.ToString();
}
parameters[6].Value = 2;
Boolean status = Common.executeProcedure(procedureName, cmdType, parameters);
if (status == true)
{
string url = "TaxType.aspx";
ScriptManager.RegisterStartupScript(this.Page, this.Page.GetType(), "load", "runSuccess();", true);
dt = AD.getTaxtypes();
GridViewTax.DataSource = dt;
GridViewTax.DataBind();
}
this.ViewState["mode"] = "View";
}
}
Hasiya
6-Feb-13 4:05am
View
I always using Bit data type
Stat bit,bt nt working my code
Hasiya
6-Feb-13 1:55am
View
I need a chage My buttion text .data gridview selected index change event.
EX-
Data grid value= true
Button text=INACTIVE
Data grid value= False
Button text=ACTIVE
Livewise.
Hasiya
9-Jan-13 1:28am
View
anybody help me plz????
Hasiya
8-Jan-13 23:52pm
View
it's working ..Tnx dear tnx a lot.
Hasiya
20-Nov-12 2:15am
View
=IIf(Fields!C2.Value="",Fields!C1.Color="Black",Fields!C1.Value) I am not getting desired output.
Hasiya
13-Nov-12 4:51am
View
I Need a quick help??????
Hasiya
7-Nov-12 5:10am
View
iwant a create search buttion using 2 parameters
ex: 2012-01-01 to 2012-12-31
prolum is my table Recivedtime datatype is datetieme
Hasiya
7-Nov-12 1:46am
View
tnx for ur help.....-Milind
Hasiya
7-Nov-12 1:17am
View
problem is Recivedtime data type is Datetime..i want to pass parametrer @FromDate and @Todate
SELECT *
FROM tblPickupDetails
WHERE
Recivedtime >= @FromDate
AND Recivedtime <= @Todate queary not working i try eliyer..
Hasiya
23-Oct-12 4:14am
View
tnx...
Hasiya
12-Oct-12 7:36am
View
public DataTable newphone()
{
dt.Clear();
dt = SQLTrans.executeQuery("SELECT * From tblphoneasign WHERE receivedTime>= dateadd(hh,datediff(hh,0,getdate()),0)", "tbl1");
return dt;
}
MY method nt working?
Hasiya
12-Oct-12 7:35am
View
SELECT * From tblphoneasign WHERE receivedTime>= dateadd(hh,datediff(hh,0,getdate()),0) is working but this one using method it's nt working??
Hasiya
12-Oct-12 6:13am
View
I Want to this type of anser??
<asp:TextBox ID="txtPhone" runat="server">
<asp:RegularExpressionValidator
ID="regPhone"
runat="server"
ControlToValidate="txtPhone"
ValidationExpression="^(\(?\s*\d{3}\s*[\)\-\.]?\s*)?[2-9]\d{2}\s*[\-\.]\s*\d{4}$"
Text="Enter a valid phone number" />
Hasiya
12-Oct-12 6:08am
View
Sri lanka tekephone number format
To Fixed telephone
+94 xx zzzzzzz format
To Mobile phone
+94 xx y zzzzzz
Hasiya
12-Oct-12 6:02am
View
94
Hasiya
12-Oct-12 5:54am
View
Sri lanka tekephone number format
To Fixed telephone
+94 xx zzzzzzz format
To Mobile phone
+94 xx y zzzzzz
Hasiya
11-Oct-12 6:40am
View
I want to pass null value to lblgettime,
Hasiya
11-Oct-12 6:39am
View
List<sqlparameter> parameters = new List<sqlparameter>();
parameters.Add(new SqlParameter("@couriercode", SqlDbType.VarChar, 50));
parameters.Add(new SqlParameter("@Phonenum", SqlDbType.Int));
parameters.Add(new SqlParameter("@receivedTime", SqlDbType.DateTime));
parameters.Add(new SqlParameter("@gettime", SqlDbType.DateTime));
parameters.Add(new SqlParameter("@Remarks", SqlDbType.VarChar, 200));
parameters.Add(new SqlParameter("@Status", SqlDbType.Int));
List<webcontrol> controllList = new List<webcontrol>();
controllList.Add(dropdowncourier);
controllList.Add(dropdowngetphone);
controllList.Add(lbltime);
controllList.Add(lblgettime);
controllList.Add(txtremarks);
Hasiya
11-Oct-12 6:34am
View
not working
Hasiya
11-Oct-12 6:23am
View
No...i want to pass null value to datatable.
this is my list
List<webcontrol> controllList = new List<webcontrol>();
controllList.Add(lblgettime);
i wnat to pass lblgettime to null value..
Hasiya
11-Oct-12 6:17am
View
label.Text = string.Empty; not working
Show More