|
i want to sum columns as
customer sales1 sales2 sales3 sales4 total
john 100 150 100 200 550
Maya 200 100 100 300 700
i want to display the column "total" in the gridview
how can i do it with code
|
|
|
|
|
there are a number of ways you can do this. Here is very good http://www.asp.net/learn/data-access/tutorial-11-cs.aspx[^] that shows you different cases
Yusuf
Oh didn't you notice, analogous to square roots, they recently introduced rectangular, circular, and diamond roots to determine the size of the corresponding shapes when given the area. Luc Pattyn[^]
|
|
|
|
|
You can just use this sql:
select sales1,sales2,sales3,sales4,sales1+sales2+sales3+sales4 as total from customer
|
|
|
|
|
hi evryone ............ i downloaded a web application and online community and when i host a website in localhost there is BLAZE APPS versioning to it ........... I WANT TO REMOVE IT ...........THE DESIGN PART OT PROJ DOESNT SHOW THESE pls hlp ........... the appl runs in vb.net2005 and db is optional for mysql and mssql .............. urgent
i can understand that my query intially looks lik to steal someones credits but cant help it
the design view doesnt show the contents
help me to view it atleast
n i heard the designing might have been done in html so that only it appears while running it only is it true??
|
|
|
|
|
nilleshkumar wrote: i downloaded a web application and online community and when i host a website in localhost there is BLAZE APPS versioning to it ........... I WANT TO REMOVE IT
Give me one good reason why you want to remove it.
nilleshkumar wrote: THE DESIGN PART OT PROJ DOESNT SHOW THESE pls hlp
Of course it want show you. Why should they?
nilleshkumar wrote: urgent
not to me
nilleshkumar wrote: i can understand that my query intially looks lik to steal someones credits but cant help it
you cant help it? [note: using your words] Are you saying your can not help it, but steal some ones code? What is wrong if you show their logo? After all they not you, have wrote the code. How do you plan to give them credit.
nilleshkumar wrote: help me to view it atleast
There is one thing I can help you. If it is a free code, download it, then use it to learn something. Then wrote your own application based on what you have learnt from scratch. That way you got to learn something and you end up writing your own code. How is that for starters?
Otherwise, if you want to use their code you need
1. Understand their licencing scheme
2. Give credit where credit is due
if you can not do any of those, then step back and leave the space for someone else.
Yusuf
Oh didn't you notice, analogous to square roots, they recently introduced rectangular, circular, and diamond roots to determine the size of the corresponding shapes when given the area. Luc Pattyn[^]
|
|
|
|
|
c f0r learning purpose i need the design side na
|
|
|
|
|
so for learning purposes why remove it?
I sense more hidden agenda beyond learning. Stop you thief!
Yusuf
Oh didn't you notice, analogous to square roots, they recently introduced rectangular, circular, and diamond roots to determine the size of the corresponding shapes when given the area. Luc Pattyn[^]
|
|
|
|
|
This guy is a clown. He's asked this several times already. I expect he's downloaded some free code and hopes to onsell it as his own,
Christian Graus
Driven to the arms of OSX by Vista.
"I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )
|
|
|
|
|
You are an ignorant retard. Stop asking this question. Stop trying to steal from the people who have made their code available so clueless people like you can get the result you want for free.
Christian Graus
Driven to the arms of OSX by Vista.
"I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )
|
|
|
|
|
hi friends..i have 10 textboxes on my web form.so i want to refresh first textbox only....plzzz help me..
txs in advance..
|
|
|
|
|
what do you mean by refresh? you can use partial page update using AJAX [^]
Yusuf
Oh didn't you notice, analogous to square roots, they recently introduced rectangular, circular, and diamond roots to determine the size of the corresponding shapes when given the area. Luc Pattyn[^]
|
|
|
|
|
|
Hi,
In a page when user does an action(e.g. click a button) and some code executes, agian when user refreshes the page that event happens.
How can I disable this feature?
I don't want to transfer user to another page after click, he/she should stay in the page after click.
Best wishes
|
|
|
|
|
define your problem and code exactly.
what you have to do when click event fire.
describe u r question in brief and paste code here
|
|
|
|
|
I have a Asp.Net page on my form, In click event of it, I've inserted something in DB.
when user clicks the button the insertion happens and when he refreshes the page the insertion happens again.
Best wishes
|
|
|
|
|
this is because of postback.when you refresh the page
the last event (in your case click will be) fired.
here you have to manualy check the data when you fire the insert query.
when the data will insert in database check if the entry is allready
exist then not allow to insert.
this is only way to resubmitting the data.
regards
keyur satyadev
|
|
|
|
|
In Page_Load use IsPostBack to check if it is a post back
Yusuf
Oh didn't you notice, analogous to square roots, they recently introduced rectangular, circular, and diamond roots to determine the size of the corresponding shapes when given the area. Luc Pattyn[^]
|
|
|
|
|
And what should I do if it's post back ?
The event automatically fires again.
Best wishes
|
|
|
|
|
mehrdadc48 wrote: And what should I do if it's post back ?
Well, that is for your to decide. normally you do
if(!IsPostBack)
{
}
mehrdadc48 wrote: The event automatically fires again.
what event?
Yusuf
Oh didn't you notice, analogous to square roots, they recently introduced rectangular, circular, and diamond roots to determine the size of the corresponding shapes when given the area. Luc Pattyn[^]
|
|
|
|
|
try that but your problem is not solve although bcos
last event automatically handle when page refresh.
try it if its work reply me with code
|
|
|
|
|
Hi, I need to connect to a specified Report Server and get list of reports on it (via code). How can I do this?
Best wishes
|
|
|
|
|
Rent a coder.
Sathesh.
Blessed is the season which engages the whole world in a conspiracy of love.
|
|
|
|
|
I need just some guidelines...
Best wishes
|
|
|
|
|
Did you google it?
Sathesh.
Blessed is the season which engages the whole world in a conspiracy of love.
|
|
|
|
|
Yes, I've googled it, but I didn't find anything...
Best wishes
|
|
|
|