16,012,821 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 tastini (Top 72 by date)
tastini
17-Aug-18 11:22am
View
contframe is a iframe it is in masterpage.
tastini
17-Aug-18 11:21am
View
Deleted
contframe is a iframe it is in masterpage.
tastini
17-Aug-18 5:25am
View
yes you are right cpframe is null ... this is the wrong line "var cpframe = top.document.getElementById('contframe');"?
tastini
1-Apr-18 6:09am
View
SELECT @@SERVERNAME When i am running its showing different name than my instance name/server. but the @servername which showing i applied but return the error wrong server.
point 3 i tried here there except my procedure everything is running good.
tastini
1-Apr-18 5:03am
View
1. I tried with simple query work perfect.
2. From instance i did not receive any error , incase i change to something else its showing error.
3.did not understand this point.
tastini
1-Apr-18 3:37am
View
No only one set, second line returns @returnvalue 0 as normal procedure.
tastini
21-Dec-15 1:26am
View
please check the question now.. i changed the result.
tastini
20-Dec-15 7:38am
View
can you help me please ...
tastini
20-Dec-15 6:54am
View
if i use distinct , it will remove second one , my question something like pivot table.
tastini
16-Dec-15 2:01am
View
i agree you are 100% correct. i use only excel but not macro not all the people knows macros and if we dont know macro we cant ask doubts?, somebody can help me from here to solve this issue, even i have no idea about coding in excel. I am sorry if i am in wrong place.
tastini
16-Dec-15 1:58am
View
I try to run this code... i can see it is working but dont know how to use it properly. Really thanks for this help. i will try to figure it out how to run in my scenario.
tastini
15-Dec-15 10:05am
View
really sorry , i never use vba code with excel. there is no other option that i can apply it will be really helpful.
tastini
15-Dec-15 10:04am
View
i am using excel ,i am sorry i dont understand what you meant by code?
tastini
15-Dec-15 10:03am
View
can you help me , how i can do it with macro?
tastini
15-Dec-15 10:02am
View
not for one time use , doing it each 4days or something.
tastini
21-Sep-15 5:52am
View
please check what i try to write as per your suggestion i try the pivot table. this is what i try now. if i give the location name directly its returns report, but my case lacation table is master so it will change,i cannot hard type the names. please check the query what i did the wrong here in this.
Select BrandName,Location
From
(
Select BrandName,Location,SLID From Sales) as BaseTable
Pivot
(
Count(SLID) For Location in (Select Name from MasterLocation)
) as PivotTable
tastini
27-Jul-15 5:47am
View
can you give me sample code. it will help for me. Thanks
tastini
26-Jul-15 10:47am
View
please check now.
tastini
22-Jul-15 14:24pm
View
No requirements , and this one is connecting to finger machine its a sdk. There is one dll file to run. The sad thing is i dont have much idea about it. Just want to know what is FAE ? atleast. I am sorry still i am not give you proper idea about my doubt.
tastini
13-Jun-15 2:33am
View
not that way, copied only design. problem is now cant go back to old running application. showing the error even remove the form that i copied.
tastini
11-Jun-15 7:54am
View
remove the obj folder(keep the obj folder only inside files remove). but no luck plus now cant build or rebuild the application. showing the same error.
tastini
11-Jun-15 7:08am
View
everything is there, i check one by one. but Package\PackageTmp\Default.aspx not exist. Not sure even its creating when publishing.
tastini
10-Jun-15 6:00am
View
You are amazing , your query is more understandable and idea is good also. last problem was data format in my asp. all now showing. Really really thanks.
tastini
10-Jun-15 5:38am
View
CheckTime and TimeNow , not showing in the result? but in your query everything mention already.
tastini
10-Jun-15 4:51am
View
this procedure returns correct data while am running from sql management studio. same procedure i am trying to call from asp.net gridview that time return only single row.
tastini
10-Jun-15 4:40am
View
please check now... i update the question
tastini
28-May-15 10:09am
View
You are totally right about this @RequestBy , am not initialize. your code look like really nice and understanding i will try this. really thanks for these codes.
tastini
28-May-15 7:27am
View
i change to this way...
DECLARE ADMX CURSOR FOR SELECT Name, EmailID FROM EmployeeMaster WHERE Active = 'Y' AND Department='HR'
OPEN ADMX
FETCH ADMX INTO @AdminName, @AdminEmail
WHILE @@fetch_status = 0
BEGIN
DECLARE SND CURSOR FOR Select TrID From TrDocumentRequest Where EmailStatus IS NULL
OPEN SND
FETCH SND INTO @EmailStatus
WHILE @@fetch_status = 0
BEGIN
SET @TrID = (Select TrID From TrDocumentRequest Where EmailStatus IS NULL And Status=2 Group By TrID)
SET @DocumentName=(Select DocumentCode From TrDocumentRequest where TrID=@TrID)
SELECT @EmpName=Name FROM EmployeeMaster WHERE EmpID = (SELECT RequestBy FROM TrDocumentRequest WHERE TrID = @TrID)
now its inserting multiple times. and same giving error.
tastini
28-May-15 7:13am
View
SET @TrID = (Select TrID From TrDocumentRequest Where EmailStatus IS NULL Group By TrID)
this line returns multiple rows. but i have to go through all the rows. and finaly i updating the the EmailStatus='Y' , give me suggession please.
tastini
5-Apr-15 10:49am
View
please check my code now , how i can use pivot to my code.
tastini
29-Mar-15 6:54am
View
Amazing, thanks really thanks... this is it. :)
tastini
10-Dec-14 3:03am
View
still , please check my doubt , I have two tables, first table having itemcode and itemname and second table having only itemcode and branch. I want to retrieve data from second table if the search matches "itemname and branch" here am not passing itemcode. what I write that's not correct procedure.
tastini
10-Dec-14 2:57am
View
But I want to pass ItemName value instead of ItemCode.
tastini
10-Dec-14 2:55am
View
Here I am going to pass the ItemCode value for @ItemCode?
tastini
9-Dec-14 6:31am
View
I have multiple branches ...
tastini
8-Dec-14 9:06am
View
where I made default value as null ? how I can change it?
tastini
8-Dec-14 9:05am
View
I am inserting Value , I pass all the parameters but Qty and totalused always inserting or updating "0" or NULL value.
tastini
20-Nov-14 4:12am
View
when I am using the row number and filter its not giving any result without that its showing the data. really I don't know where is the problem.
tastini
20-Nov-14 4:05am
View
Check this code , no errors but not return any data
strSql = "WITH TempTable AS (Select JobCode,CurrentStatus,ModelName,BrandName,ReceiptDate, ROW_NUMBER() OVER (ORDER BY " + OrderBy + ") AS 'RowNumber' FROM JobDetails WHERE 1 = 1 " + strFilter + ") SELECT * FROM TempTable WHERE RowNumber BETWEEN " + ((PageNo == 1) ? 1 : ((PageNo - 1) * RecCount) + 1).ToString() + " AND " + ((PageNo == 1) ? RecCount : (PageNo * RecCount)).ToString().ToString();"
tastini
19-Nov-14 8:53am
View
yes it is ...
tastini
19-Nov-14 7:56am
View
Please check my sql command.
tastini
19-Nov-14 7:53am
View
integer
tastini
9-Nov-14 9:41am
View
5.0958904109589036 this is the value showing if no variable use.
tastini
9-Nov-14 9:36am
View
No Column Name "NULL"
tastini
9-Nov-14 9:27am
View
i am getting null value using that query.
tastini
9-Nov-14 9:23am
View
I am sorry to ask you , what I have to change in my query? its the same query am running except one that you mention (return to select) I tried that before but I got no column message. please edit it for me. just want to learn too.
tastini
9-Nov-14 9:14am
View
I call this procedure from asp , and tried only select statement from sql
tastini
1-Nov-14 6:42am
View
can u edit the code please bcoz I tried the decimal value. like this
if (e.Row.RowType == DataControlRowType.DataRow)
{
grTotal += Convert.ToDecimal(DataBinder.Eval(e.Row.DataItem, "WORKHRS"));
}
if (e.Row.RowType == DataControlRowType.Footer)
{
e.Row.Attributes.Add("class", "tfooter");
e.Row.Cells[3].Text = "Total Hours";
e.Row.Font.Bold = true;
((Label)e.Row.Cells[4].FindControl("lblTotal")).Text = grTotal.ToString();
}
but same effect
tastini
1-Nov-14 6:28am
View
check workhrs value how its coming to grid "Datediff(n,I.CHECKTIME,O.CHECKTIME) / 60.00 AS WORKHRS"
tastini
1-Nov-14 5:51am
View
Already tried with int32 but same effect, and I tried the decimal too.
tastini
1-Nov-14 3:55am
View
this line having issue "int qty = Int32.Parse(WORKHRS.Text);"
tastini
1-Nov-14 3:15am
View
its also not working *Schatak .
tastini
31-Oct-14 16:56pm
View
I try to edit this way... but still not succeeded anybody can help me to solve it fully....
if (e.Row.RowType == DataControlRowType.DataRow)
{
grTotal += Convert.ToDecimal(DataBinder.Eval(e.Row.DataItem, "WORKHRS"));
}
if (e.Row.RowType == DataControlRowType.Footer)
{
e.Row.Attributes.Add("class", "tfooter");
e.Row.Cells[3].Text = "Total Hours";
e.Row.Font.Bold = true;
((Label)e.Row.Cells[4].FindControl("lblTotal")).Text = grTotal.ToString();
}
tastini
31-Oct-14 13:14pm
View
Its not accepting still showing the error , "Additional information: Input string was not in a correct format."
tastini
31-Oct-14 1:53am
View
Can you edit the code for me. I try to change the variables and binding values still not give me answer. Thanks.
tastini
28-Oct-14 7:53am
View
no we need to make for users...
tastini
28-Oct-14 7:50am
View
i want to make something that, my first table plus need to upload the file like pdf or word documents with it. its kind of hr program, if any user want to request for any document they will request to hr, through the system , now the hr want to upload original signed paper with the request. forget the old data.the coming request i want to upload the file with it . there is any option todo so.?
tastini
28-Oct-14 7:13am
View
users will update when they request the document
tastini
28-Oct-14 7:13am
View
I have no issues with date function there...
tastini
27-Oct-14 13:47pm
View
no I am not saying I want to store in TrID , may b you misunderstand me, this is the table of requesting some documents, I want to add signed request form with it. TrID is the key for both table. bcoz I have data already in first table, the second table is new. I can edit the second table. but how to achieve it? how I can add the request forms for all my old data. its like update the data with files.
tastini
27-Oct-14 13:32pm
View
I got it , but I am asking how I can upload under that column"TrID" you saw my second table? simply adding the one file to database there is 100 example I guess I can follow them but am getting trouble in this issue. please recheck.
tastini
14-Oct-14 9:29am
View
its running in sql , how I can pass my parameters on this sp now.
private void FillGrid()
{
grvList.PageSize = Convert.ToInt16(drpRecords.SelectedValue.ToString());
int PageNumber = Convert.ToInt32(txtPageNo.Text);
LeaveRequestList objLst = new LeaveRequestList();
string strFilter = "";
string strFilter1 = "";
strFilter1 += " AND R.RequestBy ='" + Session["empid"].ToString() + "'";
if (txtLetterType.Text != "")
{
strFilter += " AND R.LeaveCode LIKE '%" + ExpertGeneric.CleanString(txtLetterType.Text) + "%'";
}
if (txtStatus.Text != "")
{
strFilter += " AND R.Status LIKE '%" + ExpertGeneric.CleanString(txtStatus.Text) + "%'";
}
objDB.strFilter = strFilter1 + strFilter;
int cnt = objDB.Count();
lblRecordNo.Text = "Total Rows : " + cnt.ToString("#0") + " ";
int TotalPage = (cnt / grvList.PageSize) + ((cnt % grvList.PageSize) > 0 ? 1 : 0);
lblShowing.Text = " of " + TotalPage.ToString();
if (PageNumber > TotalPage)
{
txtPageNo.Text = TotalPage.ToString();
PageNumber = TotalPage;
}
DateTime dt2 = new DateTime();
Hashtable objHt = new Hashtable();
objHt.Add("@TrMode", "IE");
objHt.Add("@RequestBy", Session["empid"].ToString());
objHt.Add("@param1", grvList.PageSize);
objHt.Add("@param2", PageNumber);
DB.ExecuteSPorSQLNonQuery("Rpt_LeaveInformation", ref objHt, 1);
// objLst = objDB.GetListForGrid(grvList.PageSize, PageNumber, "RequestDate");
// objLst = objDB.GetListForGrid(Session["empid"].ToString());
grvList.DataSource = objLst;
grvList.DataBind();
foreach (GridViewRow gr in grvList.Rows)
{
if (gr.Cells[3].Text != "Requested")
{
((ImageButton)gr.FindControl("imgDelete")).Visible = false;
((ImageButton)gr.FindControl("imgEdit")).Visible = false;
}
}
}
how to do it correctly? really I am confusing.
tastini
14-Oct-14 9:25am
View
can you solve it for me, in your way. really thankful to you.
tastini
14-Oct-14 7:55am
View
Msg 102, Level 15, State 1, Procedure Rpt_LeaveInformation, Line 14
Incorrect syntax near '<'.
this is the error it shows. while executing the storeprocedure. and regarding that filter not important after its running properly I will check it. in these sp rownumber your are not mention. if you can ,pls give me note.
tastini
14-Oct-14 7:17am
View
CREATE PROCEDURE EmployeeSales
@Employee int AS
SELECT SUM([Order Subtotals].Subtotal) AS Total
FROM Employees INNER JOIN
Orders INNER JOIN
[Order Subtotals] ON Orders.OrderID = [Order Subtotals].OrderID
ON Employees.EmployeeID = Orders.EmployeeID
WHERE (Employees.EmployeeID = @Employee)
in this example they retrieving two tables , how I can make it three. and how to pass the value.
cmd.CommandText = "StoredProcedureName";
cmd.CommandType = CommandType.StoredProcedure;
cmd.Connection = sqlConnection1;
in this example I guess they are running simply select statement no search. I mean no where command in that stored procedure. how to make it.
normally I am running the code in front end. I am not use storeprocedure if you can give me one code , I can use it. you have my tables and you know what I want. please give me the stored procedure.
tastini
14-Oct-14 6:18am
View
Can you give me a stored procedure ?
tastini
14-Oct-14 5:29am
View
Yes I did.. all the first one is primary key.
tastini
6-Oct-14 9:24am
View
let me try, I am getting some other errors now, I will update you once I got run the program.
tastini
6-Oct-14 8:18am
View
<div style="clear"></div>
<asp:GridView ID="grvList" runat="server" AutoGenerateColumns="False" CssClass="gridview" GridLines="Horizontal" OnRowDataBound="grvList_RowDataBound">
<alternatingrowstyle cssclass="alternate">
<columns> <asp:BoundField HeaderText="Sl. No.">
<HeaderStyle Width="60px" />
<asp:TemplateField HeaderText="Item">
<itemtemplate>
<asp:Label ID="txtItemCode" Text='<%# Bind("ItemCode") %>' runat="server">
<asp:TemplateField HeaderText="Quantity">
<itemtemplate>
<asp:TextBox ID="txtQuantity" Width="80px" TextMode="SingleLine" Text='<%# Bind("Quantity") %>' runat="server">
<HeaderStyle Width="100px" />
<asp:TemplateField HeaderText="Price">
<itemtemplate>
<asp:TextBox ID="txtPrice" Width="80px" TextMode="SingleLine" Text='<%# Bind("Price") %>' runat="server">
<HeaderStyle Width="100px" />
<asp:TemplateField HeaderText="Total">
<itemtemplate>
<asp:TextBox ID="txttotal" Width="80px" TextMode="SingleLine" runat="server">
<HeaderStyle Width="80px" />
this is my asp code.... you can help me in this code please.
tastini
6-Oct-14 7:46am
View
sorry that my doubt is not clear. I am trying to add items into gridview, after that I save the gridview to database. my issue is when I am adding the items to gridview, I have 2 data, 1.qty 2. price, I want to show the total in third row. I mean multiple the data and qty show this data to total column. All the other data are coming except the total.
tastini
2-Oct-14 5:30am
View
thanks it works , amazing. thanks really appreciate your help.
tastini
2-Oct-14 5:26am
View
Thanks ... so instead of PID in that code want to make it ItemCode right?
Show More