15,902,299 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 shms_rony (Top 81 by date)
shms_rony
29-Sep-20 4:24am
View
the gauges just appear on the first item only, I tried to pass parameters from DataList items , it also worked only in the first item
shms_rony
23-Aug-17 8:25am
View
I tried to download Runtime Viewer 2015
But Assemply Files ended with ( resourses ) like that
Microsoft.ReportViewer.WebForms.resources.dll
shms_rony
18-Aug-16 9:38am
View
yes I tried this way < But I have record values =0 , So If I did this Grdiview will display thr records which have values =0 and 5
But I dont want to display data with values =0 !!! :/
shms_rony
18-Aug-16 9:31am
View
No I tried this way "inside the header of gridview " But I cant do it :( I tried 3 days but it fails
Then I put Dropdownlist out the gridview in <td>
shms_rony
18-Aug-16 9:20am
View
Like Excel Filter Gridview
shms_rony
18-Aug-16 9:20am
View
If the dropdown list of the column Selected on "ALL" and the Dropdownlist of the Second Column Selected value is 5 < Gridview display All Rows Of the Column 1 which have values 5 of the column 2
For "Blank " if the dropdownlist of the column selected value is "Blank >> display in Gridview all Data which are not equal 0
shms_rony
16-Aug-16 7:11am
View
but also when I write Maria in label text and " select where name like '%'+label1.text+'%' , the same problem :/
shms_rony
16-Aug-16 7:04am
View
Not working , only numbers or space in textbox show results of execution
may be there is something error in textbox , could you help me
shms_rony
15-Aug-16 21:29pm
View
how can I use your modified answer in my sql ?
shms_rony
15-Aug-16 21:12pm
View
class method
==================
public DataTable searchname(string value)
{
string query = String.Format("Select Name from Users Where Name Like '%{0}%'", value);
return search(query);
}
in code behind
=====================
protected void ButSrch_Click(object sender, EventArgs e)
{
GridView5.DataSource = classobject.searchname(Textsrch.Text);
GridView5.DataBind();
}
shms_rony
10-Apr-15 12:43pm
View
like what ??
after save data how to redirect to user data's page with it's ID
shms_rony
10-Apr-15 12:43pm
View
and db is object of class
shms_rony
10-Apr-15 12:42pm
View
It's Run Procedure Function that Run any Procedure
public int RunProcedure(string ProcedureName, SortedList ParaValues)
{
connect(CommandType.StoredProcedure, ProcedureName);
for (int x = 0; x < ParaValues.Count; x++)
cmd.Parameters.AddWithValue(ParaValues.GetKey(x).ToString(), ParaValues.GetByIndex(x).ToString());
return ExecuteUpdation();
}
shms_rony
10-Apr-15 8:37am
View
How to save data in sessions and if you have another idea for this issue
shms_rony
29-Sep-13 9:40am
View
total column is computed column
Formula --> (([a]+[b])+[c]))
shms_rony
29-Sep-13 9:39am
View
ALTER PROCEDURE dbo.ManageLaborEval
(
@a int,
@b int,
@c int
)
AS
INSERT INTO Table1(a, b, c) VALUES (@a,@b,@c)
RETURN
shms_rony
29-Sep-13 6:44am
View
please help me
shms_rony
29-Aug-13 6:40am
View
Yesssssssssssss It's worked
Thank you very very much :)
shms_rony
29-Aug-13 6:32am
View
Deleted
erro in line
Line 52: mainRow[0] = dr[0];
Cannot find column 0.
shms_rony
29-Aug-13 6:16am
View
Deleted
please review my stored procedure
ALTER PROCEDURE dbo.Selectplanfor
(
@plandat datetime
)
As
DECLARE @fortable table (countf int)
INSERT INTO @fortable (countf)
select COUNT(formanid) as [Foreman Order]
FROM plannedfore
WHERE (plandate = @plandat )
SELECT * FROM @fortable
shms_rony
29-Aug-13 6:15am
View
Deleted
the name of coulmn
countf
shms_rony
29-Aug-13 6:15am
View
Deleted
the result displayed
//gridview1 //gidview2
14/08/2013 0
18/08/2013
but it must returned
//gridview1 //gidview2
pland countf
14/08/2013 2
18/08/2013 0
shms_rony
29-Aug-13 5:48am
View
Deleted
I don't know where is the error ??
shms_rony
29-Aug-13 5:22am
View
Deleted
Error in this line
mainGrid.Rows.Add(dr.ItemArray);
Input array is longer than the number of columns in this table.
shms_rony
29-Aug-13 5:08am
View
Deleted
public DataTable procedtogrid(string ProN,SortedList SorPara)
{
try
{
return db.proceduredb(ProN, SorPara);
}
catch
{
return new DataTable();
}
}
shms_rony
29-Aug-13 5:07am
View
Deleted
ALTER PROCEDURE dbo.Selectplanfor
(
@plandat datetime
)
As
DECLARE @fortable table (countf int)
INSERT INTO @fortable (countf)
select COUNT(formanid) as [Foreman Order]
FROM plannedfore
WHERE (plandate = @plandat )
SELECT * FROM @fortable
shms_rony
29-Aug-13 5:06am
View
Deleted
public DataTable gridshowfor()
{
ProcedureName = "Selectplanfor";
SortedList St = new SortedList();
St.Add("@plandat", plandat.ToString("MM/dd/yyyy"));
return procedtogrid(ProcedureName, St);
}
shms_rony
29-Aug-13 5:00am
View
Deleted
Done , but problem still exist :(
shms_rony
27-Aug-13 4:42am
View
That's good but it didn't work for me
the result is
//gridview1 // gridview2
pland countf
14/08/2013 0
18/08/2013
the result must be as following
pland countf
14/08/2013 2
18/08/2013 0
shms_rony
26-Aug-13 6:03am
View
grid datatable get the last value
if you have x = 0 and save 1 in x
automatically 0 deleted
this happened in datatable
i want to save each value in one row in datatable
shms_rony
24-Aug-13 7:36am
View
yes that is right :)
first code get all rows but the second code get first row only
but how can i get all rows in variable to use it in other statement ??
shms_rony
4-Aug-13 5:17am
View
Thanks , it worked for me :)
shms_rony
3-Aug-13 8:09am
View
ok thanks
shms_rony
3-Aug-13 8:00am
View
Run Procedure Worked well and datetime inserted
What's problem?
shms_rony
16-Jun-13 6:12am
View
I want automatic inserted values in the identity column
shms_rony
16-Jun-13 6:11am
View
not working :(
I did the insertion using c# class
shms_rony
29-Dec-11 5:13am
View
What do you say
You do not want to help anyone
I have a problem and you want to solve and I went to this site to answer me one of you
But you do not do you deal professionally
There are so many sites out and I put my question is answered with an open mind
If you look at the bottom you will find the solution in question is not that strange
And a person understand the question and answer it
I'm at the beginning of my work and I am having problems and I come to those who understand and help me to answer
Thank you
shms_rony
18-Dec-11 21:19pm
View
building update command
update table name set .... what ...
shms_rony
18-Dec-11 20:15pm
View
ok thanx but this is not my homework
iam learning
thank you for your help
shms_rony
18-Dec-11 19:49pm
View
your e-mail to send you my work and edit it
shms_rony
18-Dec-11 19:44pm
View
Can i contact you on your mail??
shms_rony
18-Dec-11 19:42pm
View
thanks very much for your useful answer
but i want you to write full update command and delete command because i tried but not sucessful
i have test tomorrow morning and i tired from thinking
shms_rony
18-Dec-11 19:05pm
View
thanks very much
i passed the selected table name in session and get table data
but i can't delete or update table
if you can write update command for any table of these
shms_rony
18-Dec-11 16:53pm
View
i use these functions but my gridview don't have datakeyname
shms_rony
18-Dec-11 16:00pm
View
i want to add delete button in gridview
shms_rony
16-Aug-11 6:12am
View
sorry this answer didn't solve my problem :(
shms_rony
16-Aug-11 5:23am
View
i don't understand this line
GetGlobalResourceObject("MyResource", "GlobalResourceString1");
shms_rony
13-Aug-11 23:33pm
View
i want to create form in my application (textbox and button to choose path in my pc) and button (save)
it is like back up for my project database
shms_rony
27-Jul-11 19:41pm
View
sorry ..iam not understand what do you mean
shms_rony
19-Jul-11 7:32am
View
ok...when i send message successfully but it send from the e-mail that exist here NetworkCredential("my account in gmail", "my password");
i want to send from the email the i entered in textboxfrom
shms_rony
19-Jul-11 2:52am
View
ok.. this is good but the error now is that the message sending from NetworkCredential mail to (msg.to)
i want to send from (textfrom "msg.From") to (msg.to)
shms_rony
19-Jul-11 2:31am
View
the error is this code send from me to me and not define textbox that have from email(textfrom)
shms_rony
19-Jul-11 2:31am
View
thanks
shms_rony
8-Jul-11 9:05am
View
datalist images get from path in database
shms_rony
10-Jun-11 18:54pm
View
but i don't want to do it by converting to template field ..i convert direction of table to rtl but direction of columns of detailsview not reversed
what solution??
thanks
shms_rony
10-Jun-11 17:23pm
View
i saw your upddated solution
i define my columns as TemplateFields but i can't implement the reverse direction in TemplateFields
your link not helpful
shms_rony
10-Jun-11 17:06pm
View
i do it but nothing reverse
<div dir="rtl"> <asp:DetailsView ID="DetailsView1" runat="server" Height="50px" Width="125px"> </div>
shms_rony
10-Jun-11 17:06pm
View
Deleted
shms_rony
11-Apr-11 8:38am
View
how can i call it ??
i can't put onmouseover in my above code
shms_rony
10-Apr-11 16:02pm
View
any one help me
shms_rony
10-Apr-11 15:08pm
View
Deleted
no one can help me??
shms_rony
6-Apr-11 17:38pm
View
I HAVE another problem that one user updated when global.asax out bin folder and get message (debug, close program) and worked well
what can i do for this message
shms_rony
6-Apr-11 17:22pm
View
thank you for answer
but no user updated :(
first method updated one user only but your method updated 0 user
shms_rony
6-Apr-11 16:06pm
View
thank you for this perfect answer but i still have the problem
user (1) updated and user(2) not !!!
shms_rony
5-Apr-11 19:35pm
View
I HAVE UPLOADED PDF FILE (Contract) and i want to click button in user profile to save his contract edited with user name ..how can i add alabel to pdf file to get name in this label
shms_rony
5-Apr-11 16:15pm
View
i mean that i display date from field in gridview by wizard method ...not using select statment
shms_rony
5-Apr-11 16:08pm
View
iam using wizard method :(
i want to format date in column properties if this right
shms_rony
5-Apr-11 15:26pm
View
where can i do this statment ??
shms_rony
3-Apr-11 9:34am
View
not work :(
shms_rony
3-Apr-11 9:21am
View
i replaced ExecuteScalar with a ExecuteReader
check my code
SqlDataReader dr = cmd.ExecuteReader();
if (dr.Read())
{
DateTime enddate = new DateTime();
enddate = (DateTime)dr["enddate"];
int id = Convert.ToInt32(dr["id"]);
if (DateTime.Compare(datenow, enddate) > 0)
{
string sql1 = "update users set type='Suspended Users' where users.id='" + id + "'";
SqlCommand cmd1 = new SqlCommand(sql1, con);
cmd1.ExecuteNonQuery();
shms_rony
3-Apr-11 9:12am
View
question is clear ..what do you mean!!
shms_rony
3-Apr-11 9:11am
View
what can i modify??
shms_rony
1-Apr-11 8:36am
View
when i remove static word ..another error
"TimerCallback callbackDaily = new TimerCallback(Jobs.DailyJob);"
shms_rony
1-Apr-11 8:15am
View
this is the error when i call procedure to this method
"An object reference is required for the non-static field, method, or property 'myScheduler.Jobs.con"
shms_rony
1-Apr-11 8:02am
View
sorry can you write code
shms_rony
1-Apr-11 7:51am
View
i normally writing code and work well but when i create procedure and call it ,,,give me error that this is static function
shms_rony
1-Apr-11 7:28am
View
thank you
shms_rony
1-Apr-11 7:18am
View
i have error
"must declare scalar variable @Iterator"
shms_rony
1-Apr-11 6:41am
View
i don't find what iwant in google ...so i put my question here
shms_rony
1-Apr-11 6:41am
View
i want to perform the statement using syntax of sql server 2005
shms_rony
31-Mar-11 10:11am
View
hanx all
Ratnesh N Bharos
1-i have one problem of ths code
getdate() return date with time ..i want to format it as dd/M/yyyy
because currentdate inserted as this form dd/M/yyyy without hours
2-and how to call this procedure in class
thank you
Show More