16,016,562 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 rezaeti (Top 113 by date)
rezaeti
1-Oct-17 7:40am
View
hi . can you say more detail.
rezaeti
19-Sep-17 13:25pm
View
hi Karthik
In fact I had this code:
DataTable dt = new DataTable();
SqlDataAdapter da = new SqlDataAdapter("select * from UserInfo where UserName=@UserName", connect);
da.SelectCommand.Parameters.AddWithValue("@UserName", UserNameTextBox.Text);
da.SelectCommand.CommandTimeout = 0;
da.Fill(dt);
if (dt.Rows.Count == 0)
{
}
I want know how to make 3 Layer Architecture for this code
I dont know how can I da.Fill(dt) using Data Layer and Business Layer ?
thanks . can you learn it me.?
rezaeti
19-Sep-17 13:23pm
View
Hi Dave Kreskowiak .
In fact I had this code:
DataTable dt = new DataTable();
SqlDataAdapter da = new SqlDataAdapter("select * from UserInfo where UserName=@UserName", connect);
da.SelectCommand.Parameters.AddWithValue("@UserName", UserNameTextBox.Text);
da.SelectCommand.CommandTimeout = 0;
da.Fill(dt);
if (dt.Rows.Count == 0)
{
}
I want know how to make 3 Layer Architecture for this code
I dont know how can I da.Fill(dt) using Data Layer and Business Layer ?
thanks . can you learn it me.?
rezaeti
19-Sep-17 13:05pm
View
Deleted
I dont know how can I da.Fill(dt) using Data Layer and Business Layer ?
thanks . can you learn it me.?
rezaeti
19-Sep-17 13:02pm
View
Hi Dave Kreskowiak .
In fact I had this code:
DataTable dt = new DataTable();
SqlDataAdapter da = new SqlDataAdapter("select * from UserInfo where UserName=@UserName", connect);
da.SelectCommand.Parameters.AddWithValue("@UserName", UserNameTextBox.Text);
da.SelectCommand.CommandTimeout = 0;
da.Fill(dt);
if (dt.Rows.Count == 0)
{
}
I want know how to make 3 Layer Architecture for this code
rezaeti
19-Sep-17 8:54am
View
cmd.Parameters.AddWithValue("@UserName", UserName);
da.selectDataUser(cmd);
but error in :(bl_bind()) shown.
Error : 'BLL.bllUsers.bl_bind()': not all code paths return a value
rezaeti
19-Sep-17 7:36am
View
Deleted
hi . thanks for reply. i update my code but it is not work
rezaeti
19-Sep-17 7:36am
View
hi . thanks for reply.
[code removed]
but why it does not work . the error is :
Error 1 No overload for method 'SelectDataUser' takes 1 arguments
rezaeti
19-Sep-17 7:36am
View
Deleted
hi . thanks for reply. i update my code but it is not work
rezaeti
1-May-16 14:07pm
View
the problem is that value does not show on label
rezaeti
27-Apr-16 15:35pm
View
hi Richard Deeming thanks for reply
how can i filter my query to load only 50,000 records or less
rezaeti
27-Apr-16 11:53am
View
hi thanks I set adp.SelectCommand.CommandTimeout = 0
and set findcmd.CommandTimeout = 0;
and all things is ok and error solved
so thanks
rezaeti
27-Apr-16 11:09am
View
I mention that all things is ok, but when I dont run for about 30 seconds and then run , this error display
rezaeti
27-Apr-16 11:07am
View
hierror yet remaind but shift to this line :
SqlDataReader dr = findcmd.ExecuteReader();
rezaeti
27-Apr-16 10:53am
View
thanks for reply
I check and then coming
rezaeti
16-Apr-16 11:57am
View
hi thanks
I use sqldatasource
i find this code for total number of rows in grid:
int totalRows = e.AffectedRows;
but yet question 1 is remaind without solution
rezaeti
13-Apr-16 13:38pm
View
thanks
rezaeti
13-Apr-16 13:32pm
View
hi thanks for reply
but when I add sh_ghab to GROUP BY list all records display
I want to display last record of each group
rezaeti
13-Apr-16 13:03pm
View
hi thanks for reply
i have this query:
Use mydatabase
Select emp_num,group_num,edit_num,id=MAX(id)
From tbl_child
Group By emp_num,group_num,edit_num
it make group my detail table(child) successfully and show last record but only display 3 columns when I add other column to SELECT error show:
Column 'tbl_child.sh_ghab' is invalid in the select list because it is not contained in either an aggregate function or the GROUP BY clause.
rezaeti
12-Apr-16 13:56pm
View
id field is identity
rezaeti
12-Apr-16 13:53pm
View
hi thnaks for reply
yes I use sql server 2008
i mean last record that insert in table naturally i think the last record has highest ID
rezaeti
7-Apr-16 22:00pm
View
thanks.
rezaeti
7-Apr-16 22:00pm
View
thanks.
rezaeti
5-Apr-16 9:40am
View
I have a question about stimulsoft do you can help me
rezaeti
5-Apr-16 9:39am
View
I have a question about stimulsoft do you can help me
rezaeti
5-Apr-16 9:37am
View
very thanks
rezaeti
5-Apr-16 9:37am
View
so thanks it work
rezaeti
5-Apr-16 9:26am
View
hi thanks
I try but code dont work
if (e.Row.RowType == DataControlRowType.DataRow)
{
e.Row.Cells[4].Text = String.Format((e.Row.Cells[4].Text), "#,##0.00");
}
rezaeti
1-Apr-16 9:27am
View
i check and sure the txt_egample is exist in my page and Text5 also exist in my report
rezaeti
1-Apr-16 9:25am
View
thanks Jochen Arndt dont work
the error :
Object reference not set to an instance of an object.
rezaeti
1-Apr-16 9:12am
View
txt_egample is not null
but txt.Text is null
i dont know what is wrong in here?
rezaeti
1-Apr-16 9:11am
View
thanks for reply i try it.
but my problem is remaind yet.
rezaeti
1-Apr-16 8:43am
View
excuse me
this line is correct
txt.Text = txt_egample.Text;
rezaeti
1-Apr-16 8:42am
View
thanks for reply
can you help me?
rezaeti
1-Apr-16 8:42am
View
txt.Text = txt_date.Text;
rezaeti
4-Dec-15 3:40am
View
the above code is good but it is not answer for my question
rezaeti
4-Dec-15 3:35am
View
hi I find that answer by search in google
rezaeti
28-Nov-15 6:45am
View
Hi Richard Deeming Thanks for your attention you are true and I edit my code
thanks again
rezaeti
16-Nov-15 21:44pm
View
is there any one to answer me ?
rezaeti
16-Nov-15 13:26pm
View
yes my above code is code behind.how to solve my problem?
rezaeti
16-Nov-15 10:53am
View
please help me!
rezaeti
16-Nov-15 10:42am
View
all of ddl work correctly but one of item for all ddl does not selected
rezaeti
16-Nov-15 10:31am
View
hi thanks for reply
viewstate enabled for all the ddls is true.
my question is:
suppose that my ddl items are:
2012
2013
2014
2015
when I select 2013 the ddl item does not select and item 2012 be selected. but for other items work correctly
rezaeti
19-Oct-15 12:27pm
View
thanks richard MacCutchan
rezaeti
16-Oct-15 13:25pm
View
I cant do that
rezaeti
16-Oct-15 13:25pm
View
can you say how to use tryparse in here?
rezaeti
16-Oct-15 8:42am
View
when I set initial value of lbl's = 1 the error solved but I want to handled basically
rezaeti
16-Oct-15 8:40am
View
ok I improve the first one
could you help me
rezaeti
16-Oct-15 8:18am
View
hi I edit my code as above but yet does not work:
rezaeti
15-Oct-15 15:53pm
View
the value of labels are not equal zero .the values of them loads from db by dropdownlist.selectedvalues.
please say what do i do?
rezaeti
15-Oct-15 15:49pm
View
what changes do i do in my code?the value of labels are values of database that load by dropdownlist selectedvalues
rezaeti
12-Oct-15 15:54pm
View
hi thanks for reply
how diplay record to gridview?
rezaeti
12-Oct-15 15:44pm
View
the error :
An expression of non-boolean type specified in a context where a condition is expected, near ','.
rezaeti
6-Oct-15 17:20pm
View
Is there any one to help?
rezaeti
6-Oct-15 16:50pm
View
thanks it work
rezaeti
6-Oct-15 16:50pm
View
thanks it work
rezaeti
5-Oct-15 15:18pm
View
???
rezaeti
5-Oct-15 15:08pm
View
I cant solved it I wrap column names in brackets
SqlCommand cmd = new SqlCommand("select * from shakhes where [month]=" + ddlEmpRecord.Text + " ", con);
rezaeti
5-Oct-15 15:04pm
View
oh yes
rezaeti
5-Oct-15 15:00pm
View
oh yes my english is bad
rezaeti
5-Oct-15 14:50pm
View
hwo do i use brackets for columns?
e.g (month)?
rezaeti
5-Oct-15 14:48pm
View
hi thanks for replay
there is no error at runtime
I dont know how to use a parameterized query rather than trying to use string concatenation to form your query.
I am a amateur
pleas help
rezaeti
5-Oct-15 14:43pm
View
this code does not work:
SqlCommand cmd = new SqlCommand("select * from shakhes where month=" + ddlEmpRecord.Text + " ", con);
but this work when change month with year:
SqlCommand cmd = new SqlCommand("select * from shakhes where year=" + ddlEmpRecord.Text + " ", con);
rezaeti
5-Oct-15 13:40pm
View
by the way when I replace "month" with "year" field this code work goodly why does not work when I use month in dropdownlist as text??!
rezaeti
5-Oct-15 13:25pm
View
I edit my code
I want when select text of dropdownlist ( a month) then the year and month and salary text display in labels and gridview
rezaeti
5-Oct-15 13:23pm
View
yse of cource
rezaeti
5-Oct-15 13:06pm
View
I need to solve this problem please help me.
rezaeti
5-Oct-15 13:05pm
View
Hi thanks for reply
I try this from ddlEmpRecord_SelectedIndexChanged and page_load but does not work
rezaeti
2-Oct-15 17:16pm
View
10. now I want do same thing for asp.net but my problem is that gridview dose not have same property e.g
i = ShakhesDataGridView.CurrentRow.Index
TextBoxX2.Text = ShakhesDataGridView.Item(2, i).Value
11.by the way i know about asp.net and c# a liitle and i am an amateur
rezaeti
30-Sep-15 17:13pm
View
very very very thanks! I learned from you ManasKumarM
rezaeti
29-Sep-15 12:36pm
View
when i click on edit button on gridview following error shown how to solve error?
'DropDownList1' has a SelectedValue which is invalid because it does not exist in the list of items.
Parameter name: value
rezaeti
19-Sep-15 12:31pm
View
I can do by set property of checkbox (autopostBack)
Is this ok ?
rezaeti
19-Sep-15 12:30pm
View
I can do by set property of checkbox (autopostBack)
Is this ok ?
rezaeti
19-Sep-15 12:30pm
View
I can do by set property of checkbox (autopostBack)
Is this ok ?
rezaeti
19-Sep-15 12:30pm
View
I can do by set property of checkbox (autopostBack)
Is this ok ?
rezaeti
18-Sep-15 14:56pm
View
I solved by set auto post back true
is this correct? or may be create an erorr
rezaeti
18-Sep-15 13:36pm
View
in my windows app vb.net this code work successfully but in asp.net web form with vb.net not work why?
rezaeti
18-Sep-15 13:34pm
View
hi thanks but I use six check boxes in my web form and I want use chekbox for all to be same how can make two checkbox Mutually Exclusive
rezaeti
2-Sep-15 11:56am
View
by the way in my pc when I stop sql express app work yet
rezaeti
2-Sep-15 11:54am
View
excuse me ths is last question :
when I install app on another pc this error display :
SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified
I search on internet about this error and I found this error is related to stoping sql express on another pc
I install sql express on it but sql exoress is not runing and my tring for runinig it was not successful
what i do ?
rezaeti
2-Sep-15 11:35am
View
is this connection work for any windows for example windows 8 or 7 or xp or ...?
and is this connection work for 64 bit and 32 bit ?
does it matter the type of sharing for example local or net or LAN or any thing else?
rezaeti
2-Sep-15 10:53am
View
by the way i have code that write and read xml file to create dynamic connection string that replace txt.servername.text with myservername and so on
rezaeti
28-Aug-15 6:10am
View
thanks
rezaeti
18-Aug-15 10:42am
View
my database is sql server
rezaeti
18-Aug-15 10:41am
View
mt database is sql server
rezaeti
17-Aug-15 8:42am
View
it is solved
rezaeti
17-Aug-15 8:36am
View
hi Afzaal Ahmad Zeeshan
i edit my code so and work successfully
Public Sub add_data()
cn.Open()
Dim dr As SqlDataReader
Dim cmd As SqlCommand
cmd = New SqlCommand("select * from shakhes where sal_tadieh='" & TextBoxX1.Text & "' and mah_tadieh='" & ComboBox1.SelectedItem & "'", cn)
dr = cmd.ExecuteReader
If dr.Read() Then
MessageBox.Show(" تاریخ مورد نظر تکراری است ", " خطا ", MessageBoxButtons.OK, MessageBoxIcon.Error)
cn.Close()
Else
dr.Close()
cmd = New SqlCommand("insert into shakhes(sal_tadieh,mah_tadieh,tadieh_shakhes) values ('" & TextBoxX1.Text & "','" & ComboBox1.SelectedItem & "','" & TextBoxX2.Text & "')", cn)
cmd.ExecuteNonQuery()
cn.Close()
display_data()
End If
display_data()
End Sub
rezaeti
16-Aug-15 8:48am
View
really excuse me if you have not time i come tomarrow i feel you will reply
rezaeti
16-Aug-15 8:47am
View
excuse me beacase you say i come here
rezaeti
16-Aug-15 8:41am
View
ok my firend
rezaeti
16-Aug-15 8:33am
View
thanks
rezaeti
16-Aug-15 8:33am
View
but if you reply this question it will be last question
rezaeti
16-Aug-15 8:32am
View
excuse me i forget that it is sunday beacuse in my country friday is HOLIDAY then I ask my question tomarrow
rezaeti
16-Aug-15 8:17am
View
is there any one?
rezaeti
16-Aug-15 7:18am
View
thanks
rezaeti
15-Aug-15 22:02pm
View
it's solved
rezaeti
15-Aug-15 22:02pm
View
so math thanks
rezaeti
15-Aug-15 21:53pm
View
is there any one to help me!
rezaeti
15-Aug-15 21:52pm
View
please help!
rezaeti
15-Aug-15 21:19pm
View
thanks solved
rezaeti
15-Aug-15 21:16pm
View
an missing (
rezaeti
15-Aug-15 21:02pm
View
please help !
rezaeti
7-Aug-15 14:56pm
View
Richard Deeming thanks
rezaeti
7-Aug-15 14:55pm
View
really thanks my friend you make me INDEBTED
rezaeti
7-Aug-15 14:54pm
View
very very very thanks
rezaeti
7-Aug-15 14:48pm
View
i change place of function but this error thrown
The ReadElementContentAsString method is not supported on node type None. Line 9, position 14.
thanks for reply
please help me my friend
rezaeti
7-Aug-15 14:19pm
View
I don't know how and where use MyDStr function
rezaeti
7-Aug-15 14:07pm
View
reader.ReadToFollowing(MyDStr("pwd"))
i think this statement is invalid
rezaeti
7-Aug-15 14:03pm
View
how solve that error
rezaeti
7-Aug-15 14:03pm
View
hi thanks for reply
i cant speak english very good
That's where it's caught; not where it's thrown.(what means this reply)
rezaeti
7-Aug-15 13:56pm
View
my deer PIEBALDconsult
thanks for reply my error is :
Invalid length for a Base-64 char array.
rezaeti
7-Aug-15 13:53pm
View
this line:
Catch ex As Exception
Throw ex
error is :
Invalid length for a Base-64 char array.
rezaeti
7-Aug-15 13:13pm
View
my friends!
pleas help me
i must propose my project tomarrow
Show More