|
I'm creating a .NET crystal report sales report that lists the total # of each item sold and the percentage of total sales that the item contributed towards however, before I can calculate the percentage for each row, I need to know the total qty of the report, which I don't know how to retrieve.
So a sample report of 500 items sold may look like this:
-----------------------------------------------------------
Category | Qty Sold | Percentage
-----------------------------------------------------------
Electronics | 200 | 40%
Books | 100 | 20%
Movies | 150 | 30%
Games | 50 | 10%
-----------------------------------------------------------
Total | 500 | 100%
-----------------------------------------------------------
How can I calculate a percentage for something like this?
Thanks.
-Goalie35
|
|
|
|
|
i've been working with ASP.NET for the last 2 years. But the problem is that i've never had any strategy for designing. I'm the only ASP.NET programmer in my office and b/c of that i never bothered to follow any of the design framework. Eventhough i know uml & OOAD, i would just create a few UML diagrams and then jump right into programming. I was wondering if anybody could recommend any books or articles that would enlighten me on how to create an ASP.net application by walking through each of the design, analysis & testing steps. Please help me with your advise. Would greatly appreciate your help.
|
|
|
|
|
Well, i guess i can help u with this i have pdf's and many examples about UML diagrams.
Requirements, Analysis, Design, Implementation, and testing.
Estarta
|
|
|
|
|
Hi,
I would also like to have a look at the PDF's.
Can you please share the same with me too..
Thanks in advance
Renu.K
Renu.K
|
|
|
|
|
|
okay i used Speedyshare you can download the files using these links
http://www.speedyshare.com/273390375.html
http://www.speedyshare.com/833568875.html
http://www.speedyshare.com/474971886.html
http://www.speedyshare.com/868601417.html
hopefully this is what you looking for.
Regards
Estarta
|
|
|
|
|
"Someone has asked me to put this question in asp.net Forum. So, please make sure this is NOT DOUBLE Posting"
Hi all. I have a textbox in which i will add "Comments" on aspx page along with an Add button. On this page , i have a gridview as well. The problem is,
When i enter value in TEXTBOX and press ADD button, the value in textbox should have to be populated in Gridview without PAGE REFRESH. Please make sure the current scenario.
I have a table ABC with a column Comments. I have to pull Data from ABC table in Gridview. so, when i add value in Textbox and press add button, basically it will save first in ABC table and then refresh the gridview behind the scene. Please let me know How I can achieve it. Thanks for your consideration
|
|
|
|
|
Your best bet would be to use some AJAX framework. We have purchased the telerik controls, so that is a piece of cake. You could probably accomplish this with ASPNet AJAX which is free.
|
|
|
|
|
You can implement ICallbackEventHandler interface in your webpage and use client-callbacks to call the server when the Add button is pushed sending the text to be added as a param.
You'll find the details on how to accomplish that here: http://msdn2.microsoft.com/en-US/library/system.web.ui.icallbackeventhandler.aspx
Then, on the server side in the RaiseCallbackEvent method, add the text to the grid and render the grid to a StringWriter like this:
StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture);
HtmlTextWriter htmlWriter = new HtmlTextWriter(stringWriter);
yourGrid.RenderControl(htmlWriter);
htmlWriter.Flush();
htmlWriter.Close();
string result = stringWriter.ToString();
You have to send back the result to the client side where you have to replace the outerHTML of the grid with the data you recive from the server. Your javascript function that recives the callback result and does the replacement should look something like this:
function __onServerCallback(result, gridID)
{
else if (result.length)
{
// set the resulted data to the grid
var grid = document.getElementById(gridID);
grid.outerHTML = result;
}
}
I hope this will help and I'm sure you will find good articles related to this subject on codeproject. Just search for ICallbackEventHandler.
Sebastian M.
|
|
|
|
|
How can we know that Excel is installed on a PC using ASP.NET 2.0??
Thanking you in advance..
Zyaad
|
|
|
|
|
In ASP.NET 2.0, you can add a reference to the "Microsoft Office 11.0 Control Library" dll.
There may be something within that object that can achieve what you're looking to do. The only catch is I believe it's only compatible with ms office 2003 or higher.
-Goalie35
|
|
|
|
|
Hello
I am new with asp 2.0.
I created a question.aspx page with a formview control. Then I inserted a TextBox1 in the formview Item Template.
My Problem:
How can I write a Value to the TextBox1 in the Formview Item Template?
If I write the following code in the question.aspx.vb page:
Partial Class question
Inherits System.Web.UI.Page
Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs)
TextBox1.text = "hello"
End Sub
End Class
then I'm receiving an error message: TextBox1 is not declare.
If I put the TextBox1 Control outside the formview then I can write a value in the TextBox1.
Do you have a tip or could you recommend me some tutorials to solve the problem?
plz help
ullk
|
|
|
|
|
I have never used the formview control. But I guess it would be
dim txt as textbox = formview1.findcontrol("TextBox1")
|
|
|
|
|
It solve the problem. But I do not know , why it is necessary.
Thank you.
|
|
|
|
|
Hi,
The application's configuration files must contain 'trust' section.
I am getting this error on building the project.
Can anybody help me in finding the solution for this error.
|
|
|
|
|
|
how to open a particular file which is in any location in my machine from an asp.net page.my application is asp.net2003 with code behind c#.
thanks
|
|
|
|
|
Click Help>Index>
Filter by C#
Look for the IO namespace. Read help files.
|
|
|
|
|
|
ToddHileHoffer wrote: Click Help>Index>
Filter by C#
Look for the IO namespace. Read help files.
Or find this truly mystical and magical tool, that the gurus like to call google.
the last thing I want to see is some pasty-faced geek with skin so pale that it's almost translucent trying to bump parts with a partner - John Simmons / outlaw programmer
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
Help is a mystical and magical tool, unknown to most here.
|
|
|
|
|
Dear All,
Client is accessing Weblogic server.While seeing log on server we have seen that client is accessing a file but the file doesnt resides on server.
The file name is
%C2%A2.gif .
We only want that we palce any gif file with this name so that server dont generate 404 ERROR (FILE NOT FOUND).
But when we place this file %c2%a2.gif in desired directory the server doesnt able to recognize this.
Please suggest me which file name can be used for dauging server and for avoiding error log.
|
|
|
|
|
Don't use stupid filenames.
|
|
|
|
|
ednrgc wrote: Don't use stupid filenames.
Scored a 5. I didn't even want to waste my time replying to the original post. But you are correct.
|
|
|
|
|
You can not use url encoded file names on the server and expect them to match the url encoded url. You have to decode the url to determine the file name.
The file name that the client is trying to access is probably:
¢.gif
---
It's amazing to see how much work some people will go through just to avoid a little bit of work.
|
|
|
|