16,019,055 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 Visual Basic questions
View Javascript 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 Dhanashree Dive (Top 17 by date)
Dhanashree Dive
4-Apr-13 2:31am
View
I m getting output as :
2002:7643:f87b::7643:f87b
I want out in format as example 123.16.76.01
Dhanashree Dive
1-Apr-13 2:25am
View
ok.. thank you..
Dhanashree Dive
1-Apr-13 2:20am
View
so can I put headertext as my database value ?
Dhanashree Dive
25-Feb-13 5:01am
View
Ok shubh Agrahari.. thank u for you time.. Actually I m running my code in chrome only.
Dhanashree Dive
25-Feb-13 4:30am
View
Yaa.. I have tried that too.. but not working.
Dhanashree Dive
25-Feb-13 4:14am
View
no error.. but doesnot showing any effect.
Dhanashree Dive
25-Feb-13 4:09am
View
It is not working .. I want button blink.
Dhanashree Dive
19-Feb-13 0:39am
View
I have not created radio button list. And so I m getting problem in firing any event. please tell me how should I write four radio buttons in radiobuttonlist.
Dhanashree Dive
19-Feb-13 0:33am
View
protected void lbtnsubmit_Click(object sender, EventArgs e)
{
for (int i = 0; i < GridView1.Rows.Count; i++)
{
RadioButton rb = (GridView1.Rows[i].FindControl("answer")) as RadioButton;
if (rb.Checked == true)
{
asnw.Text =GridView1.Rows[i].Cells[1].Text;
}
}
}
This is the code which I m have written on button click. But I also have one doubt. Do I need to write all radio button as listItem in radiobuttonList? and if I write radiobuttonlist then i m binding four radio button as ->
<asp:listitem text='<#eval('column1')>'<asp:listitem>
ans so on. please help me.
Dhanashree Dive
18-Feb-13 8:02am
View
why do we need to stop timer? and yes what does stop permanently means for? if i stop the timer permanently then how it will display the time?
Dhanashree Dive
18-Feb-13 7:44am
View
To use command event we have to set command name for radio button. but commandname property is not supporting.
Dhanashree Dive
13-Feb-13 3:09am
View
this is the code which I have tried
Dhanashree Dive
12-Feb-13 23:49pm
View
It is working now.
Thank you for your help.
Dhanashree Dive
12-Feb-13 23:24pm
View
Gridview.
Dhanashree Dive
12-Feb-13 23:20pm
View
Error 40 The name 'RowType' does not exist in the current context
now this error is coming. Please hepl me out.
Dhanashree Dive
12-Feb-13 8:32am
View
foreach (GridViewRow row in griduser.Rows)
{
Button BTN = (Button)row.FindControl("lnkstatus");
ClassConnection csc = new ClassConnection();
SqlConnection con = new SqlConnection(csc.connmethod());
SqlDataReader dr;
string sstr = "Select flag from Registration";
SqlCommand cmd = new SqlCommand(sstr, con);
con.Open();
dr = cmd.ExecuteReader();
if (dr.HasRows)
{
while (dr.Read())
{
string flag = dr[0].ToString();
if (flag == "1")
{
BTN.BackColor = System.Drawing.Color.Green;
}
else
{
BTN.BackColor = System.Drawing.Color.Red;
}
}
}
dr.Close();
con.Close();
}
By this code it is coloring all buttons with same color. I want to color buttons according to database value
Dhanashree Dive
12-Feb-13 8:13am
View
protected void griduser_DataBound(object sender, EventArgs e)
{
if(e.Row.RowType == RowType.DataRow)
{
Button btn = (Button)e.Row.FindControl("btn");
Label lbl = (Label)e.Row.FindControl("lblStatus");
if(Convert.ToBoolean(lbl.Text))
{
btn.BackColor = System.Drawing.Color.Gray;
}
else
{
btn.BackColor = System.Drawing.Color.Green;
}
}
Thank you for your reply. But I am getting these two errors.
Error 39 'System.EventArgs' does not contain a definition for 'Row' and no extension method 'Row' accepting a first argument of type 'System.EventArgs' could be found (are you missing a using directive or an assembly reference?)
Error 40 The name 'RowType' does not exist in the current context
Show More