15,903,362 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 Member 10744248 (Top 99 by date)
Member 10744248
12-Oct-16 14:47pm
View
using visual studio 2010
Member 10744248
28-Sep-16 6:14am
View
If you have a well documented reference please state it. I have spent over 2 hours on this error and none of them gives a way out to resolve the problem
Member 10744248
28-Sep-16 6:12am
View
I have searched for it and there is no clear answer related to the mail.
Member 10744248
26-Sep-16 12:59pm
View
Thank you very much
Member 10744248
26-Sep-16 7:19am
View
Please that is the challenge.
Where can you keep it.
Thanks
Member 10744248
25-Sep-16 0:57am
View
How do you handle the login as a public variable such that you can keep it for the filtering.
Member 10744248
25-Sep-16 0:49am
View
In which part of the form do you filter. please assist .
new to c# asp.net
Member 10744248
3-Jul-16 1:41am
View
Thanks this were codes I wrote in visual foxpro 6 . 20 years ago
Member 10744248
1-Jul-16 5:03am
View
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Configuration;
using System.Data;
using System.Data.Sql;
using System.Data.SqlClient;
using System.Data.SqlTypes;
namespace Web_Pay.PORTAL_PAY
{
public partial class TAX : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
///Load Begin
if (!IsPostBack)
{
try
{
SqlConnection connect = new SqlConnection();
connect.ConnectionString = ConfigurationManager.ConnectionStrings["WEBPAY"].ConnectionString;
connect.Open();
SqlDataAdapter da = new SqlDataAdapter("select * from Taxvalue order by BAND", connect);
DataSet ds = new DataSet();
da.Fill(ds, "Taxvalue");
txt_Branch_Code.Text = ds.Tables["Taxvalue"].Rows[0]["BAND"].ToString();
txt_Branch_Name.Text = ds.Tables["Taxvalue"].Rows[0]["VALUE"].ToString();
txt_Short_Name.Text = ds.Tables["Taxvalue"].Rows[0]["RATE"].ToString();
lblstatus.Text = "First record successful";
connect.Close();
GridView1.SelectedIndexChanged += new EventHandler(GridView1_SelectedIndexChanged);
txt_Branch_Code.Enabled = false;
txt_Branch_Name.Focus();
}
catch (Exception ex)
{
lblstatus.Text = ex.Message;
}
}
///Load End
}
protected void Add_Click(object sender, EventArgs e)
{
//Add Begin
try
{
// Clear all text boxes
txt_Branch_Code.Text = "";
txt_Branch_Name.Text = "";
txt_Short_Name.Text = "";
// Connection to the database
//
//
string str;
str = ConfigurationManager.ConnectionStrings["WEBPAY"].ConnectionString;
SqlConnection sqlCon = new SqlConnection(str);
// Call the stored procedure
SqlCommand sqlCmd = new SqlCommand("sp_GenerateTaxvalueID", sqlCon);
sqlCmd.CommandType = System.Data.CommandType.StoredProcedure;
// Create and supply the output parameters
sqlCmd.Parameters.Add("@BranchID", System.Data.SqlDbType.VarChar, 10);
sqlCmd.Parameters["@BranchID"].Direction = System.Data.ParameterDirection.Output;
// Open the sql data connection
sqlCon.Open();
// Execute the stored procedure
sqlCmd.ExecuteNonQuery();
lblstatus.Text = "Taxvalue details created successfully";
// Assign the results to the controls
txt_Branch_Code.Text = sqlCmd.Parameters["@BranchID"].Value.ToString();
txt_Branch_Code.Enabled = false;
txt_Branch_Name.Focus();
//
//
sqlCon.Close();
}
catch (Exception ex)
{
lblstatus.Text = ex.Message;
}
//Add End
}
protected void btn_Save_Click(object sender, EventArgs e)
{
//Save Begin
///SAVE BEGIN
string str;
str = ConfigurationManager.ConnectionStrings["WEBPAY"].ConnectionString;
SqlConnection sqlCon = new SqlConnection(str);
try
{
sqlCon.Open();
SqlCommand SqlCmd = new SqlCommand("sp_saveeditTaxvalue", sqlCon);
SqlCmd.CommandType = System.Data.CommandType.StoredProcedure;
//Creat
Member 10744248
24-Apr-16 17:26pm
View
Thank you very much
You are great
Member 10744248
10-Mar-16 15:19pm
View
please this is not home work please
Member 10744248
9-Mar-16 5:43am
View
HAVING THIS ERROR MESSAGE
The conversion of the nvarchar value '201205' overflowed an INT2 column. Use a larger integer column. The conversion of the nvarchar value '201505' overflowed an INT2 column. Use a larger integer column.
Member 10744248
8-Mar-16 14:10pm
View
What I need clarification is whether the routine above is correct
Thanks
Member 10744248
8-Mar-16 14:10pm
View
The stored procedure works alright in a standalone mode.
Member 10744248
8-Mar-16 13:35pm
View
What I want to know is wheathet the procedure is right
Member 10744248
29-Feb-16 2:06am
View
Windows 7.
The batch process will send messages (i.e mail and messages)to E-mail and mobile Phone.
How do you accomplish this?
Member 10744248
6-Oct-15 2:37am
View
Not Clear please be direct further
Thanks
Member 10744248
8-Aug-15 4:48am
View
How do you use the Function to generate the expected date
Member 10744248
1-Aug-15 1:38am
View
The critical point is how to attach the additional information
1. Month 2. year 3. Date(). which are constants for each record
Please assist
Thanks
Member 10744248
2-Jun-15 5:21am
View
1. I am using a crude way to do the routine, and I want a better way.
Member 10744248
2-Jun-15 5:19am
View
I have reduced it to this form so as to get a better way to run this routine
Member 10744248
2-Jun-15 5:18am
View
please this is not home work .
Its a bigger program which I have, and I am not getting the output right
Member 10744248
2-Jun-15 5:16am
View
No please
Member 10744248
23-Apr-15 7:46am
View
Deleted
if you dont know kindly leave it
Member 10744248
23-Apr-15 7:46am
View
Deleted
you are a fool
Member 10744248
23-Apr-15 7:45am
View
Deleted
dont be silly
Member 10744248
2-Mar-15 11:05am
View
Its more than you think.
please
Member 10744248
27-Jan-15 2:53am
View
I tried that but I didnt get it before posting the question.
As a matter of fact the the page load has the same format.
Member 10744248
26-Jan-15 17:32pm
View
-- Added to question
Member 10744248
26-Jan-15 17:29pm
View
-- Added to question
Member 10744248
26-Jan-15 14:07pm
View
After the stored procedure is invoked and the results are returned to the grid the form is not automatically updated.
How do I code the parameters for the return. which will populate the form
Member 10744248
22-Jan-15 1:18am
View
how do you calculate the difference by matching corresponding months and year .
its absent ""where month1 between 08 and 09 and year1 between 2014 and 2014""
Member 10744248
4-Dec-14 7:48am
View
Didn't find NuGet Package Manager under tools
Member 10744248
28-Nov-14 20:30pm
View
Is the syntax right please aside of the semi colon
Member 10744248
25-Nov-14 4:27am
View
where is the table to be created in c# or in the stored procedure
Member 10744248
25-Nov-14 2:55am
View
how do you hold the rows before passing it to the stored procedure
Member 10744248
18-Nov-14 13:24pm
View
yes
Member 10744248
18-Nov-14 12:59pm
View
how do you substitute the field date_trans in place of the 'Now' in the code syntax
Member 10744248
8-Oct-14 12:49pm
View
sorry how to use a case statement
Member 10744248
8-Oct-14 12:45pm
View
the correct syntax.
please provide an example for running 3 different program segments
Member 10744248
28-Sep-14 17:58pm
View
I'm having an error each time the table is empty
Member 10744248
28-Sep-14 15:22pm
View
ITS NOT WORKING
Member 10744248
25-Sep-14 1:08am
View
how do you handle when advance is '0' or month '0'
Member 10744248
20-Sep-14 22:00pm
View
How do you bind the dataset to build a report from the above approach
Member 10744248
19-Sep-14 10:26am
View
Please assist step by step.
New
Member 10744248
19-Sep-14 9:46am
View
Where is the SelectCommand Please
Member 10744248
19-Sep-14 9:18am
View
using visual studio 2010
Member 10744248
19-Sep-14 9:17am
View
I am building in the data set table adapter
Member 10744248
18-Sep-14 19:43pm
View
USING VS2010
Member 10744248
18-Sep-14 8:40am
View
For any month the system should generate the first day (1), combine it with the month and year
For instance the current date is 18 Sep 2014
expected ouput 1 Sep 2014'
Member 10744248
18-Sep-14 8:11am
View
DateTime dt1 = DateTime.Now;
txtFromDate.Text=(Year.dt1,Month.dt1,1)
Member 10744248
10-Sep-14 1:17am
View
case "MONTHLY REPAYMENT":
double xxprincipal = Convert.ToDouble(txt_Principal.Text);
double xxinterest = Convert.ToDouble(txt_Interest.Text);
double xxmyear = Convert.ToInt32(txt_Term_Year.Text);
double xxmonth = Convert.ToInt32(txt_Term_Month.Text);
double mmrate = xxinterest/(12*100);
double zrate = 1 +mmrate;
double mterm = 12 * xxmyear + xxmonth;
double mmtemp = Math.Pow(zrate, mterm);
double mrepayment=(xxprincipal*mmrate)/(1-(1/mmtemp));
txt_Monthly.Text = mrepayment.ToString("N");
Member 10744248
4-Sep-14 23:20pm
View
using asp.net
Member 10744248
2-Sep-14 2:01am
View
Kindly give an example
Thanks
Member 10744248
1-Sep-14 19:13pm
View
Please site an example.
Member 10744248
1-Sep-14 17:09pm
View
Thanks
Member 10744248
1-Sep-14 11:32am
View
didnt work, noerror but the next line of the codes was hilighted
Member 10744248
23-Aug-14 6:15am
View
How do accomplish this task in the web?
Member 10744248
23-Aug-14 6:13am
View
What is the equivalent in the web ?
Member 10744248
11-Aug-14 6:18am
View
The table is in the database and the report is from the report viewer
Member 10744248
9-Aug-14 12:19pm
View
ReportDataSource seem not to be a key word in vs 2010 it does not appear in the Intellisense
Member 10744248
9-Aug-14 7:45am
View
Having error around
<pre> <b> ReportViewer1.LocalReport.DataSources.Add(new ReportDataSource("Schedule", ds.Tables[0]));</b></pre>
<pre>
ReportDataSource
(</pre>
Please review the codes and correct.
Thanks
<pre> Microsoft.Reporting.WebForms.ReportDataSource[] RSArray = new Microsoft.Reporting.WebForms.ReportDataSource[1];
SqlConnection connect = new SqlConnection();
connect.ConnectionString = ConfigurationManager.ConnectionStrings["ApplicationServices"].ConnectionString;
connect.Open();
SqlDataAdapter da = new SqlDataAdapter("select * from Schedule", connect);
DataSet ds = new DataSet();
da.Fill(ds, "Schedule");
ReportViewer1.Visible = true;
ReportViewer1.LocalReport.Refresh();
ReportViewer1.LocalReport.DataSources.Clear();
ReportViewer1.LocalReport.DataSources.Add(new ReportDataSource("Schedule", ds.Tables[0]));
ReportViewer1.LocalReport.Refresh();</pre>
Member 10744248
8-Aug-14 20:39pm
View
Please provide the general steps for generating reports in codes
Member 10744248
8-Aug-14 20:37pm
View
Please provide me with the general steps for getting the codes.
Member 10744248
21-Jul-14 14:03pm
View
I am not insisting This is my attempt as a beginner, please give the writr way thanks
Member 10744248
21-Jul-14 13:23pm
View
please re-organise it.
New to c#
Member 10744248
21-Jul-14 9:58am
View
How do you complete the the following with the values
for (int i = 0; i <= grvExcelData.Rows.Count - 1; i++)
{
string commandText = "INSERT INTO Users(USERNAME, PASSWORD, FULLNAME)" +
"VALUES()";
}
Member 10744248
17-Jul-14 12:24pm
View
Thank you
Member 10744248
29-Jun-14 9:04am
View
How do you code or what will be in the SelectedIndex.
please assist
New to c#
Member 10744248
28-Jun-14 5:41am
View
SORRY I GOT IT
Member 10744248
28-Jun-14 5:37am
View
what is Tables[0]
WHY [O]
Member 10744248
28-Jun-14 3:40am
View
or a refernce
Where is the Selectedvalue property
Member 10744248
28-Jun-14 3:38am
View
Please provide a simple example , new to C#, moving from visual foxpro
Thanks
Member 10744248
28-Jun-14 2:28am
View
All 3 fields which are records on 'select' from gridview which is on the form.
All the field work with the exception of the dropdown control
Member 10744248
26-Jun-14 7:11am
View
I have done that but it didn't work please.
Don't underrate some questions. It looks so simple if you already know it.
Member 10744248
22-Jun-14 4:47am
View
The issue at hand is that I'm doing a query which will return results to a gridview.
There is the need to have enable select to select the results from the query to populate the form.
Is there a way to program the gridview?
Thanks
Member 10744248
22-Jun-14 2:25am
View
The Datasource in the markup was generated automatically when I pulled the gridview.
However when I tried to change
GridView1.DataSource = dsas;
to
GridView1.DataSourceId = dsas;
it gave an error
when I also removed it I was not getting the search results required.
Member 10744248
20-Jun-14 9:36am
View
Viewing a form created
Member 10744248
13-Jun-14 23:52pm
View
DataTable dt = ds.Tables[0];
what does 'ds.Tables[0]' mean
Member 10744248
13-Jun-14 22:49pm
View
da.SelectCommand = cmd;
da.Fill(ds);
grdStudent.DataSource = ds.Tables[0];
grdStudent.DataBind();
Please clarify these lines
Member 10744248
10-Jun-14 15:16pm
View
Please help me out , I am new just help out by recontructing the above in the order (i.e flow)
Thanks
Member 10744248
9-Jun-14 16:40pm
View
I have taken off the first query execution and I have this
SqlDataAdapter da = new SqlDataAdapter(@"Select * from Loanmaster where Id_Code LIKE '+ @searchkey+' or
Customer LIKE '+ @searchkey+' or
Apprs_No LIKE '+ @searchkey'", sqlCon);
da.SelectCommand.Parameters.AddWithValue("@searchkey", "%" + txt_Search.Text + "%");
//Open the sql data connection
sqlCon.Open();
//Execute the program
da.ExecuteNonQuery();
Please help with "Execute the program" error
Member 10744248
9-Jun-14 16:05pm
View
The user can next select the records in the resultants in the gridview to fill the form.
Member 10744248
9-Jun-14 16:03pm
View
What I want to do is to search for records from 'loanmaster' tables which meets the specified criteria
and then load the results of the search into the gridview ans display the first record out of the criteria in the text boxes on the form.
Member 10744248
9-Jun-14 13:11pm
View
Both DataSource and DataSourceID are defined on 'GridView1'. Remove one definition.]
Member 10744248
9-Jun-14 12:56pm
View
please refine it looking at the codes the right substitute
Thanks
Member 10744248
9-Jun-14 12:55pm
View
Error around 'cmd'
SqlDataAdapter adapter = new SqlDataAdapter(cmd);
Member 10744248
9-Jun-14 8:25am
View
I have added it yet the error persisted.
SqlCmd.Parameters.AddWithValue("@searchkey", "%" + txt_Search.Text + "%");
Member 10744248
9-Jun-14 8:15am
View
Please assist.
new to c#
Thanks
Member 10744248
9-Jun-14 8:13am
View
Please clarify
new to c# thanks
Member 10744248
8-Jun-14 5:11am
View
protected void txt_Incremental_Click(object sender, EventArgs e)
{
//INCREMENTAL SEARCH BEGINS
try
{
// Connection to the database
string str;
str = ConfigurationManager.ConnectionStrings["ApplicationServices"].ConnectionString;
SqlConnection sqlCon = new SqlConnection(str);
//Call the statement
SqlCommand SqlCmd = new SqlCommand(@"Select * from Loanmaster where Id_Code LIKE @searchkey or
Customer LIKE @searchkey or
Apprs_No LIKE @searchkey", sqlCon);
//SqlCmd.CommandType = System.Data.CommandType.Text;
//SqlCmd.Parameters.AddWithValue("@searchkey", SqlDbType.VarChar).Value = txt_Search.Text;
SqlCmd.Parameters.AddWithValue("@searchkey", "%" + txt_Search.Text +"%");
//Open the sql data connection
sqlCon.Open();
//Execute the program
SqlCmd.ExecuteNonQuery();
//Display confirmation message
lblstatus.Text = "Search Result with string : " + txt_Search + "was sucessful";
sqlCon.Close();
}
catch (Exception ex)
{
lblstatus.Text = ex.Message;
}
//Clear all text boxes
txt_Acct1.Text = "";
txt_Acct2.Text = "";
txt_Acct3.Text = "";
txt_Appraisal.Text = "";
txt_Bank_Name1.Text = "";
txt_Bank_Name2.Text = "";
txt_Bank_Name1.Text = "";
txt_Bank_Name3.Text = "";
txt_Bank_No1.Text = "";
txt_Bank_No2.Text = "";
txt_Bank_No3.Text = "";
txt_Branch_Name.Text = "";
txt_Branch_No.Text = "";
txt_Customer.Text = "";
txt_Director1.Text = "";
txt_Director2.Text = "";
txt_Established.Text = "";
txt_Id_Code.Text = "";
// txt_Incremental.Text = "";
txt_Mail1.Text = "";
txt_Mail2.Text = "";
txt_Mail3.Text = "";
txt_Mang1.Text = "";
txt_Mobile1.Text = "";
txt_Mobile2.Text = "";
txt_Office.Text = "";
txt_Registered.Text = "";
txt_Search.Text = "";
txt_Sec_No.Text = "";
txt_Share1.Text = "";
txt_Share2.Text = "";
txt_Share2.Text = "";
txt_Share3.Text = "";
txt_Share4.Text = "";
txt_Share5.Text = "";
txt_Share6.Text = "";
txt_Tele1.Text = "";
txt_Tele2.Text = "";
//
//Updating the gridview and form begin
//
try
{
SqlConnection connect = new SqlConnection();
connect.ConnectionString = ConfigurationManager.ConnectionStrings["ApplicationServices"].ConnectionString;
connect.Open();
SqlDataAdapter da = new SqlDataAdapter(@"Select * from Loanmaster where Id_Code LIKE @searchkey or
Customer LIKE @searchkey or
Apprs_No LIKE @searchkey", connect);
DataSet ds = new DataSet();
da.Fill(ds, "MLOANJOIN");
GridView1.DataSourceID = "SqlDataSource1";
GridView1.DataBind();
txt_Acct1.Text = ds.Tables["MLOANJOIN"].Rows[0]["ACCT_NUMBER1"].ToString();
txt_Acct2.Text = ds.Tables["MLOANJOIN"].Rows[0]["ACCT_NUMBER2"].ToString();
txt_Ac
Member 10744248
8-Jun-14 4:32am
View
After correcting it had this error message
Must declare the scalar variable "@searchkey"
running C# asp.net vs 2010
Member 10744248
7-Jun-14 13:15pm
View
how do you resolve this.
Member 10744248
5-Jun-14 6:36am
View
</td>
<td bgcolor="#DDDDDD" class="style9">
<asp:DropDownList ID="ddl_Status" runat="server" Height="16px" TabIndex="12"
Width="183px">
<asp:ListItem>Active
<asp:ListItem>Non-Active
</td>
Member 10744248
5-Jun-14 6:25am
View
The problem I am facing is that I have a drop down list on a form and each time the data is uploaded the value in the record which feeds into the control of the drop down list is not updated on the form.
for instant I have a drop down list with 2 options "Active" and "Inactive"
1. I have stored "Inactive" for a particular person, however each time I select the person from the gridview the drop down list doesn't change to "Inactive" but "Active" comes up
</td>
<td bgcolor="#DDDDDD" class="style9">
<asp:DropDownList ID="ddl_Status" runat="server" Height="16px" TabIndex="12"
Width="183px">
<asp:ListItem>Active
<asp:ListItem>Non-Active
</td>
Pls assist
Member 10744248
5-Jun-14 1:58am
View
Where is the Page_Init ?
Member 10744248
4-Jun-14 23:05pm
View
That has been done
Member 10744248
4-Jun-14 23:03pm
View
Not Clear.
The first record field is 'NON-ACTIVE' which was not picked
Member 10744248
27-May-14 9:06am
View
Thanks it worked
Show More