16,011,542 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 Member 11698441 (Top 25 by date)
Member 11698441
2-Aug-16 0:25am
View
Can't this be Done through C# or vb.net.Is it only possible through javascript/server side?
Member 11698441
17-Mar-16 1:36am
View
Im a newbie to this.could you please explain what is interop? and I want to do it without any 3rd party api
Member 11698441
5-Oct-15 3:15am
View
its show and the style is getting implemented but it gets strike down.... I dont know why this happens i found this in inspect element
Member 11698441
5-Oct-15 2:23am
View
Still the style is not been implemented
Member 11698441
5-Oct-15 2:12am
View
I placed the style in masterpage and when i call the class in javascript its not working.. Should I place the style in javascript page or in aspx page?
Member 11698441
5-Oct-15 2:08am
View
No i tried and its not working.
Member 11698441
15-Jul-15 23:57pm
View
Yes I used tempdata in controller.
Member 11698441
1-Jun-15 4:35am
View
yes i wanna know how to enter data through vector and map
Member 11698441
25-May-15 6:59am
View
i want output like total time of working hours for a individual employee instance and it should be above 9 hrs if less wanna know how much he is deficit this to be done fr each day
Member 11698441
25-May-15 6:58am
View
ill say the colums fr u id,card_id, time_out,time_in,transaction_date, update_date,update_user, employeeinstance
Member 11698441
25-May-15 6:54am
View
502 NULL 2013-12-01 08:00:00.000 2013-12-01 13:00:00.000 2013-12-01 00:00:00.000 NULL NULL 244
514 NULL 2013-12-16 08:00:00.000 2013-12-16 18:00:00.000 2013-12-16 00:00:00.000 NULL NULL 326
516 NULL 2013-12-05 09:00:00.000 2013-12-05 19:00:00.000 2013-12-05 00:00:00.000 NULL NULL 256
517 NULL 2013-12-06 07:00:00.000 2013-12-06 17:00:00.000 2013-12-06 00:00:00.000 NULL NULL 256
520 NULL 2013-12-09 09:00:00.000 2013-12-09 19:00:00.000 2013-12-09 00:00:00.000 NULL NULL 326
521 NULL 2013-12-10 08:30:00.000 2013-12-10 18:00:00.000 2013-12-10 00:00:00.000 NULL NULL 326
525 NULL 2013-12-17 07:50:00.000 2013-12-17 18:07:00.000 2013-12-17 00:00:00.000 NULL NULL 244
526 NULL 2013-12-18 08:18:00.000 2013-12-18 19:07:00.000 2013-12-18 00:00:00.000 NULL NULL 244
527 NULL 2013-12-19 09:00:00.000 2013-12-19 20:00:00.000 2013-12-19 00:00:00.000 NULL NULL 244
529 NULL 2013-12-04 08:00:00.000 2013-12-04 18:00:00.000 2013-12-04 00:00:00.000 NULL NULL 262
530 NULL 2013-12-05 08:30:00.000 2013-12-05 17:30:00.000 2013-12-05 00:00:00.000 NULL NULL 262
532 NULL 2013-11-05 08:00:00.000 2013-11-05 18:00:00.000 2013-11-05 00:00:00.000 NULL NULL 262
Member 11698441
25-May-15 4:19am
View
ok fine i'll say to u in a detailed manner... there is a list of datas in table with employeeinstance,date, in time and outime i wanna find the total working hours of each employee and also should find the break hours he took and also should check the condition whether he has worked for 9 hrs or not. if he worked less hw much hours he is deficit by this is my situation
Member 11698441
25-May-15 4:01am
View
there are multiple dates and i have to select for individual date
Member 11698441
25-May-15 3:29am
View
the problem is like per day there may be multiple entrys and out i wanna group it and add everything per day
Member 11698441
25-May-15 3:15am
View
no while hardcoding the date its given but how to give fr column in table wer to giv FROM<tablename>
Member 11698441
21-May-15 23:07pm
View
Thanks man i got it :)
Member 11698441
21-May-15 4:40am
View
protected void GridView2_RowUpdating(object sender, GridViewUpdateEventArgs e)
{
Label lblupdateid = (Label)GridView2.Rows[e.RowIndex].FindControl("slnoLabel");
DropDownList DropDown = (DropDownList)GridView2.Rows[e.RowIndex].FindControl("DropDownList1");
DropDownList drp = (DropDownList)sender;
GridViewRow gv = (GridViewRow)drp.NamingContainer;
DropDownList lstuserName = (DropDownList)gv.FindControl("DropDownList1");
Response.Write("Selected Value : " + lstuserName.SelectedValue + " " + "Selected Item : " + lstuserName.SelectedItem.Text);
string query = "update leaveforum set status1='" + lstuserName.SelectedItem.Text + "' where sl_no ='" + lblupdateid.ToString() + "'";
GridView2.EditIndex = -1;
conn.Open();
//SqlCommand cmd = new SqlCommand("SELECT * FROM webdesign", conn);
SqlCommand cmd = new SqlCommand(query, conn);
cmd.ExecuteNonQuery();
conn.Close();
gvbind1();
// GridView2.DataBind();
}
Member 11698441
21-May-15 4:37am
View
i could get the selected value of dropdown inside this function but fr loading into gridview its not getting the index of the row number inside this function in the same way in inside gridview i could get index but dropdown is not working
Member 11698441
21-May-15 3:26am
View
yes
Member 11698441
21-May-15 1:19am
View
ohhhh ok gt it will i be able to use protected void DropDownList1_SelectedIndexChanged(object sender, GridViewUpdateEventArgs e)
Member 11698441
21-May-15 1:18am
View
yes exactly is it possible?
Member 11698441
21-May-15 1:17am
View
Dropdown list is inside the gridview i changed it to protected void GridView2_RowUpdating(object sender, GridViewUpdateEventArgs e)
Member 11698441
21-May-15 0:49am
View
my requirement is like its a leave forum and its entered into db by one user and another user accepts it so a drop down is placed in grid now i want this selected text from dropdown to be posted in the db
Member 11698441
21-May-15 0:42am
View
protected void DropDownList1_SelectedIndexChanged(object sender, EventArgs e)
{
Label lblupdateid = (Label)GridView2.Rows[e.RowIndex].FindControl("slnoLabel");
DropDownList drp = (DropDownList)sender;
GridViewRow gv = (GridViewRow)drp.NamingContainer;
DropDownList lstuserName = (DropDownList)gv.FindControl("DropDownList1");
Response.Write("Selected Value : " + lstuserName.SelectedValue + " " + "Selected Item : " + lstuserName.SelectedItem.Text);
string query = "update leaveforum set status1=" + lstuserName.SelectedItem.Text where SL_No =" + lblupdateid.Text;
GridView2.EditIndex = -1;
conn.Open();
SqlCommand cmd = new SqlCommand(query, conn);
cmd.ExecuteNonQuery();
conn.Close();
gvbind1();
}
this is drop down table should i give like this but its throwing errror at e.RowIndex and it couldnt seperate as string query = "update leaveforum set status1=" + lstuserName.SelectedItem.Text where SL_No =" + lblupdateid.Text;
Member 11698441
21-May-15 0:20am
View
Thanks, May i know the function where this C# code to be added?
Show More