Click here to Skip to main content
Page 1 of 3
Page Size: 10 · 25 · 50


Author filtered by: Dharmenrda Kumar Singh [x]
Answer 3 May 2013   license: CPOL
if (e.Row.RowType == DataControlRowType.DataRow) { System.Web.UI.WebControls.Label lblRoleNo = (System.Web.UI.WebControls.Label)e.Row.FindControl("lblRoleId"); System.Web.UI.WebControls.Label lblSupervisorName =...
Question 2 May 2013   license: CPOL
How to bind data to itemtemplate of gridview at RowDataBound event. I am using a gridview and below is the code for that grid view.
Question 2 May 2013   license: CPOL
I am having a dataset which i am pivoting and then binding to a grid view. It is working fine when all the itemtemplates value are present in the pivoted table but in case if any of the column is not present in the pivoted table, then at the time of binding the gridview , i am getting error ....
Question 29 Apr 2013   license: CPOL
I have two temporary table #CoreUtilizationForRole1 and #RoleID2Details. I want to insert values into a third temp table using these two temp table. Below are the table Structure of both the Temp table.create table #CoreUtilizationForRole1(roleid int,SupervisorName...
Question 29 Apr 2013   license: CPOL
I am getting output for a report in SQL as mentioned below :-create table ReportCustom (RoleID int, Supervisor varchar(250),UserECode int, UserName varchar(250),TimeSpent float,Activityname varchar(250))goinsert into ReportCustom values(1,'Naveen Kumar Chitrapu',20201,'Uma Maheshwar...
Question 16 Jan 2013   license: CPOL
We have a application where users are entering their time efforts .We have two tables, Production table for entering all production tasks and NonProduction for entering all non production related tasks in the application.We also have a UserInfo table where all the user information is stored like...
Answer 11 Oct 2012   license: CPOL
protected void GVNatureOFWork_SelectedIndexChanged(object sender, EventArgs e) { int index = GVNatureOFWork.SelectedIndex; string natureofwrkid = GVNatureOFWork.DataKeys[index].Value.ToString(); Session["NOWID"] = natureofwrkid; ...
Question 10 Oct 2012   license: CPOL
How to Store SelectedRow.Cell[0] value in a session when CommandField is "Select" in a GridView. ? What the changes i will do in my code so that when a Select Command executes on my grid (By Clicking on Select Link of my grid), It will Store the NatureOfWorkID of that row in the session...
ScriptManager.RegisterStartupS... by Dharmenrda Kumar Singh
Question 16 Sep 2012   license: CPOL
How to executedocument.getElementById("").click();usingScriptManager.RegisterStartupScriptI am trying it like thisScriptManager.RegisterStartupScript(this.Page, Page.GetType(), "OpenModalDialog", "document.getElementById('
Question 13 Sep 2012   license: CPOL
I am having a table , TblUserLogin with field LoginID int ,Password varchar(50) , LoginUserName varchar(150), Designation varchar(100). My requirement is that , when ever we are using selectstatement to this table we are able to see the password which is entered (Which is a sensitive...
Question 27 Aug 2012   license: CPOL
I had written code to Enable and disable hyperlinks on master page from the content page. Every thing is working fine and the hyperlinks are getting disabled also after calling the DisableHyperlinkInMasterPage Method. When i am calling the EnableHyperlinkInMasterPage method still the hyperlinks...
Question 19 Aug 2012   license: CPOL
I am using Ajax Toolkit on my content page . I have an Javascript Code which i want to call from the code behind using ScriptManager.RegisterStartupScript.The javaScript Code is :- function disp_confirm() { var r = jConfirm("Your Shift End ! Do...
Question 15 Aug 2012   license: CPOL
I am trying to create a editable grid in ASP.Net, In my SQL table, their is a column IsCountyEnabled(datatype bit) and this i want to show as True / False in my grid (After binding the grid i am able to see it as True / False in Active Column). When the user want to update the column it...
Question 12 Aug 2012   license: CPOL
function clock(){ var d = new Date(); var h = d.getHours(); var m = d.getMinutes(); var s = d.getSeconds(); $('#clock').html(", "+h+":"+m+":"+s); // ...
Question 3 Aug 2012   license: CPOL
Does there exist a solution for this scenario?I had not used Script Manager on Masterpage as it is not required when i started developing the project so i have individual scriptmanager and Update panel for each content page .In the masterpage now i had added a label which Shows System...
Query string not working inside grid view by Dharmenrda Kumar Singh
Question 30 Jul 2012   license: CPOL
Question 29 Jul 2012   license: CPOL
Below you can find the code of my grid and every thing is working fine up to here. Now i want to add Click event on RegionProjectname so that when ever i click on the the Region project name row, the RegionProjectID of that column is stored in a session variable and a new grid will open based on...
Question 19 Jul 2012   license: CPOL
I am using ajax toolkit in my project. My project is having a master page and i am inheriting this master page in my web pages.I am using Script manager on every page but now requirement came to display a real time clock also on the master page.I had written the code using Timer to display real...
Question 19 Jul 2012   license: CPOL
I am having a web page and i applied script manager on it. On the page load i am checking some condition and showing a Javascript ShowModalDialog from code and it is working fine.int isAnyNonProdTaskActive = _nonProduction.IsAnyTaskActive(UserIDFromDB); if (isAnyNonProdTaskActive >...
Question 18 Jul 2012   license: CPOL
I am having a dataset (Dataset ds) and below you can find demo fields and data of it.Calendar DateUserIDVolume Processed07/19/201211:30AM4121207/18/201211:30PM412107/20/201201:30PM4128The Column datatype is ,Calendar date as DateTime,UserID as Int and Volume...
Question 18 Jul 2012   license: CPOL
Is there a way to get total of a column from dataset without using Linq Query?CREATE procedure St_Proc_GetUserReportforCurrentDayTask @userID int as Begin set NoCount on; ...
Get total in HH:MM format from the dataset by Dharmenrda Kumar Singh
Question 18 Jul 2012   license: CPOL
CREATE procedure St_Proc_GetUserReportforCurrentDayTask @userID int as Begin set NoCount on; DECLARE @TODAY DATE SET...
Question 18 Jul 2012   license: CPOL
I am having a table (Table Name -Production) in SQL Server.The Production table have a Column TimeSpent (Datatype- varchar(25)) and stores Number of minutes spent . Example 60,78,23 etc. I want to display TimeSpent in HH:MM Format in a select statement. for example it display 01:00 for 60, 01:18...
Answer 15 Jul 2012   license: CPOL
Query worked for me, I had just updated my table and decreased the size of TimeSpent to Varchar(25) from varchar(60) and it is fixed.select CAST((SUM (datepart(hh, convert (varchar, timespent, 108))) +(sum(datepart(mi, convert (varchar, timespent, 108)))/60) ) AS VARCHAR(2))+ ':'...
Question 15 Jul 2012   license: CPOL
I have a table(production) which is having a column with name TimeSpent, the datatype of this column is varchar and it stores data in HH:MM format example 10:23,14:59,11:00 etc.I want to write a query in sql which will sum this and give me a total in HH:MM Format only. I tried some thing like...
Question 15 Jul 2012   license: CPOL
Hi,I want to restrict the user that he cant enter more than 6 characters in a text box.As a user start entering in the text box and reach to the max limit and try entering 7th character, the text box will not allow him to do so and alert him that max size reached.How i achieve this?I had...
Question 13 Jul 2012   license: CPOL
create procedure St_Proc_GetUserReportforCurrentDayTask @userID int as Begin set NoCount on; DECLARE @TODAY DATE SET @TODAY = CONVERT(VARCHAR(10),...
Question 12 Jul 2012   license: CPOL
I need the regular expression which matches all positive non decimal integers only range from 0 to 999999. It will not accept any decimal, alphabets or any special character and range should be in between 0 to 999999.
Answer 11 Jul 2012   license: CPOL
Changed the Code and I used below code to fulfill my requirements.Hope this will help to those who have similar requirements:- ...
Answer 11 Jul 2012   license: CPOL
I Had Used:-ScriptManager.RegisterStartupScript(Page, GetType(), "CLOSE", "window.close();", true);in Place ofResponse.Write("window.close();"); Response.End()and this helps me to fix the error.
Question 11 Jul 2012   license: CPOL
I am opening a ShowModalDialog on a button OnClientClick event and the javascript for it is:- function openmodalWinLunch() { var variable1 = "Lunch"; window.showModalDialog("ClockPopUP.aspx?code=" +...
Question 10 Jul 2012   license: CPOL
How to get value from a hidden field from javascript.I m using the below code to do this but getting error:-var digiclock = document.getElementById("").value;I m getting this error message : Unable to get value of the property 'value': object is null or...
Answer 10 Jul 2012   license: CPOL
I used the below line to open ShowModalDialog of javascript from asp.net code behind.Page page = HttpContext.Current.CurrentHandler as Page; ScriptManager.RegisterStartupScript(page, page.GetType(), "OpenModalDialog", "
Answer 10 Jul 2012   license: CPOL
I had added to the head section of the clock.aspx page and then it works fine for me.
Question 10 Jul 2012   license: CPOL
i m opening an Webpage(Clock.aspx) from window.showModalDialog of javascript.In the Clock.aspx i have a button and i want that when the user click on that button the Clock.aspx page will be closed. I dont want to use onClientClick() method of javascript as some server side database insertion is...
Question 10 Jul 2012   license: CPOL
How to open ShowModalDialog of Javascript from asp.net code behind (C#).
Question 2 Jul 2012   license: CPOL
i m not able to add button on my master page:-Employee Quotient
Sys.WebForms.PageRequestManage... by Dharmenrda Kumar Singh
Question 26 Jun 2012   license: CPOL
I have a grid view on my page and i want to export it to the Excel Sheet, Below is the code i had written to do this task, here i am already passing the dataset to the method to bind the grid and btnExcelExport is the button which will export the Grid Content in to Excel Sheet :-private void...
Answer 26 Jun 2012   license: CPOL
alter procedure St_Proc_GetTimeEntryID @userID int, @timeEntryID int output as begin set nocount on; SET @timeEntryID=0 DECLARE @TEMP INT SET @TEMP=0 SELECT @TEMP=ProductionTimeEntryID FROM ...
Question 26 Jun 2012   license: CPOL
I have a stored procedure :-CREATE procedure St_Proc_GetTimeEntryID @userID int, @timeEntryID int output as begin set nocount on; SET @timeEntryID=0 DECLARE @TEMP INT SET @TEMP=0 SELECT...
Answer 25 Jun 2012   license: CPOL
I had fixed it as i the text box is inside an ajax update panel and that's why the event is not firing.I had added a trigger in the update panel for that text box and it worked fine.
Question 25 Jun 2012   license: CPOL
I have a text box which i m filling of date from the calendar extendar and the code is as below:-Date
HH:MM Format in SQL Server by Dharmenrda Kumar Singh
Question 22 Jun 2012   license: CPOL
I m using a stored procedure and there i m having a column Name timespent which i want to show like HH:MM format only, the procedure is working fine but the only problem is that currently the time spent is coming as hh:mm:ss format. Guide me how i ll get time spent in HH:MM format and correct my...
Question 22 Jun 2012   license: CPOL
I am storing Datetime in a session as mentioned below:-Session["LoggedInTime"] = System.DateTime.Now;Then i m retrieving this value on a page load like this:-DateTime _loggedInTime = Convert.ToDateTime(Session["LoggedInTime"]);I debug the above code code and find that up to here the...
Remove second from timestamp in Sql Server by Dharmenrda Kumar Singh
Question 21 Jun 2012   license: CPOL
I m storing datetime from a calendar extendar and storing it in the database.The Format of the datetime is Format="dddd, MMMM dd, yyyy". Then i m displaying this Datetime with other field in a grid view and naming this field as 'CalendarDate'. Currently the CalendarDate in the grid is displaying...
Question 19 Jun 2012   license: CPOL
I have a stored procedure which update a table based on such calculation and the calculation is done as Column Name (Calendatedate) -( Current System Date Time) and update this information to a column (TimeSpent) and display the value in Hh:Mm:SS:Msec Format. The Query is working fine but i want...

Page 1 of 3
1 2 3


Advertise | Privacy | Mobile
Web04 | 2.6.130513.1 | Last Updated 14 May 2013
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid