|
Please choose the right forum for this.
|
|
|
|
|
i want to add pop up calender in grid view.
could anyone find suggestions for it.
with regards,
N.Priya.
priya
|
|
|
|
|
Please see my answer to your post below.
|
|
|
|
|
Next time, try an appropriate forum.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
Here the problem is iam not able to capture the checked check boxes for every checked checked boxes i get checked value as false.
here is the asp .net code
<asp:gridview runat="server" id="gridview1" visible="true">
AutoGenerateColumns="false"
Font-Bold="true"
ForeColor="#003300" OnRowDataBound="gridview1_RowDataBound"
Width="186px" OnSelectedIndexChanged="gridview1_SelectedIndexChanged" OnRowCreated="gridview1_RowCreated">
<columns> <asp:commandfield showselectbutton="True">
<asp:boundfield datafield="Name" headertext="Name">
InsertVisible="False" ReadOnly="True" SortExpression="Name" >
<asp:boundfield datafield="ID" headertext="ID">
SortExpression="ID" />
<asp:templatefield headertext="select">
<itemtemplate>
<asp:checkbox id="chk1" runat="server">
<asp:button id="Button1" runat="server" onclick="Button1_Click">
this id the code behind
protected void Button1_Click(object sender, EventArgs e)
{
foreach (GridViewRow row in gridview1.Rows)
{
DataTable dt=new DataTable();
dt.Columns.Add(new DataColumn("Name", typeof(string)));
dt.Columns.Add(new DataColumn("ID", typeof(string)));
CheckBox Check = (CheckBox)row.Cells[3].FindControl("chk1");
if (Check.Checked)
{
dt.Rows.Add();
dt.Rows.Add(row);
}
}
}
plz find a solution for this at the earliest .
with regards,
N.Priya.
priya
|
|
|
|
|
Can I suggest that you try the ASP.NET forum instead? That's a much better place to get an answer to ASP.NET questions.
|
|
|
|
|
Hi Everyone,
I am working with corel draw. I want to change some settings while opening the Corel Draw(Means I want to disable some tool bars and command bars).I think it is posiible in OnLoad Event.
Where can i found that Onload Event for Corel Draw. If any one have any idea on this. Please help me.
~ Raja Baireddy
|
|
|
|
|
I'm planning on releasing some articles that implement a series of option pricing methods for financial calculations. There are essentially three different methods that will be involved. I'm looking for advice on whether I should write three separate articles or combine all three methods into the same article.
The reason I ask is that the methods are inherently different and I wonder if it would be better suited to keep them in separate articles so that the code would basically be self-contained for each method.
Ideas anyone?
|
|
|
|
|
This depends on the size of each article. But seems that making it an article series will be good.
|
|
|
|
|
It depends on how in-depth you want to go with the article. Is the code complex? How much explanation is needed? Which way will make a better quality article? Will the functions be used together or do they solve two different (three different in this case) problems.
Regards,
Thomas Stockwell
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
Visit my homepage Oracle Studios
Discounted or Free Software for Students:
DreamSpark - downloads.channel8.msdn.com
MSDN Academic Alliance - www.msdnaa.com
|
|
|
|
|
I have been looking for weeks now to solve this problem without any luck.
I work with a small IT department that handles about 100 pcs. There has been a recent concern brought up that the Network administrator and myself have been asked to provide a solution for. The issue is people using USB devices to take data off the network.
All I can really find on the matter is on WndProc. The only problem is that only allows me to detect if it connects or not. I need to have the ability to see the device details and based on that decide if it can be mounted or not. In the long run we want to make it so the network admin recieves a popup request if the device is ok or not however thats the easy part.
The part I cant find anything on is how to intersect windows device management so as to decide if it should mount or not.
EDIT: found something that might solve the problem http://www.codeproject.com/KB/system/DriveDetector.aspx[^]
modified on Tuesday, May 13, 2008 8:16 PM
|
|
|
|
|
1)Product name ,2)Number of product 10 +more, 2.1) quqntity
3)Prod Price :Each 2200+ ,4)select prod quantity 1 =no discount but
4)select any 3 product then get discount .85%
Asp code
|
|
|
|
|
OK - I don't believe we have a specific maths section on the site for articles, but you may want to consider writing your article to do this for WCF - this was an article idea wasn't it?
|
|
|
|
|
influxsam wrote: 1)Product name ,2)Number of product 10 +more, 2.1) quqntity
3)Prod Price :Each 2200+ ,4)select prod quantity 1 =no discount but
4)select any 3 product then get discount .85%
Asp code
You forgot to say: "plzzzzz urgntt !!!11". Too bad, you almost got the worst post of the day award... Try better next time.
|
|
|
|
|
I own a Dell XPS and have been playing with the Dell QuickSet application which allows the user to change the LED colors of the laptop from windows. Would it be worth an article to discuss how th change the LED colors on the XPS? It's pretty specific to Dell XPS notebooks, but there is a lot that could be done with an application that utilizes the LED lights.
Would it make a good article despite the hardware focus?
Broken Bokken
You can't carry out a ninja-style assasination dressed as an astronaut. It's the luminous fabric; too visible. - Tripod
http://www.brokenbokken.com
|
|
|
|
|
hi!
i have a question. that is we have ha a problem "which one is smaller n pow 2, 1000 pow n, n pow n, n pow 1000 , when n value is nearer to infinite" plz also give reason along with answer
Best Regards,
Huma Satti
|
|
|
|
|
Could I suggest that you invest in a maths book or two (or choose a better, more appropriate forum)?
|
|
|
|
|
Pete O'Hanlon wrote: a maths book or two (or choose a better, more appropriate forum)
See, you can't make up your mind either.
|
|
|
|
|
Im currently learning several coding languages and something i have come across a lot, is that i can learn how to do something easily enough, i can figgure out a way to implement what i want into my project, but this isn't necessarily the best way to do things.
I am aware that there are usually multiple ways to do things, and they can also boil down to either good, simple, readable code, or terribly messy code, that takes way to long to do anything, is possibly a waste of time, and cannot be read by anyone other than the coder.
In an attempt to learn to code proper, ledgable scripts, it would be particularly handy to know the things that people do to make their work "good". For example, sure, you could rewrite that four lines of code a hundred times over each time you want to use it, but you could turn it into a method, saving space and readability.
I think it would be particularly useful to learn these "tips" early. There are many things that books teach us, but they rarely get into how something could have been done better, and WHY its better to do that.
Just an idea
|
|
|
|
|
Grubious wrote: I think it would be particularly useful to learn these "tips" early. There are many things that books teach us, but they rarely get into how something could have been done better, and WHY its better to do that.
Oh boy - that's a tough idea, as this basically comes down to instinct and experience. A lot of times it comes down to doing something wrong and learning from it - and experienced programmers do this just as much as newbies. This normally happens when the experienced developer moves onto a new technology - one that they are going to take some time getting up to speed in.
What I would say though is that the best piece of advice I can give to a newbie is to design a piece of software before sitting down to code it. By analysing the requirements and the possible solution, you start to see where things like patterns fit in. Then - start off by coding small segments. Improve the code incrementally. If you suddenly find yourself in an if statement, 15 layers deep then it's time to step back and look at where you've gone wrong.
|
|
|
|
|
The best advice I can give you is not to complicate things in the first place. Keep to the 'one function does 1 thing' rule, one class represents 1 concept and as soon as it's 1 and a bit things then break it down. Never be afraid to add files to the project, classes to the hierarchy or functions to the next version of the interface. Never write specific code where an instance of generic code will do the job and document just 2 things, intent and the semantics of arbitrary names. In other words always write down what it was you were intending by the code you wrote and what the semantics of int iSomeNumber are supposed to be. I've only really done medium and large scale project in BASIC and C++ but I'm sure these principles apply to whatever development platform you're using.
"The secret of happiness is freedom, and the secret of freedom, courage."
Thucydides (B.C. 460-400)
|
|
|
|
|
|
And what should one use insteads?
Greetings.
--------
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
“The First Rule of Program Optimization: Don't do it. The Second Rule of Program Optimization (for experts only!): Don't do it yet.” - Michael A. Jackson
|
|
|
|
|
Use ints whereever possible, or decimal if you are dealing with something currency.
If you ignore floating point inaccuracies, they can add up and make the result completely incorrect. Even simple calculations like x^2-y^2 can return results that are wrong in every digit.
But floats are no black magic, rounding errors are not random but completely predictable; and you can prevent them from adding up by designing your algorithms correctly (e.g. replace x^2-y^2 by (x - y)*(x + y)).
If you use floats/doubles, read this: http://docs.sun.com/source/806-3568/ncg_goldberg.html[^]
|
|
|
|
|
The best method? Read books[^]. I always find a good book more useful sometimes when trying to learn something than reading stuff on the internet. Even printing off stuff rather than reading it on screen helps because you're less likely to be distracted and more likely to completely read the information now that you've gone to the effort of printing it off.
Another thing I'm finding particularly useful is to read certain blogs, for example, many people don't agree with what Atwood at CodingHorror[^] says but I have to say that on every topic so far I've agreed with him.
Given the current climate (as in temperature) here in London I'm planning to once my exams are over either take a copy of Code Complete out of the library here at Imperial, or buy myself a copy, a book which I've always been meaning to read. Then using the two weeks I have after exams before I drive back home sit in Hyde Park every day and read through it. I know many people can't just go to the park every day for two weeks but you could set yourself an hour or so aside each day to read a book or even printed articles from this site.
When I was getting the bus to and from school each day then I used to use that hour for reading books, not always programming, so if you have a commute on public transport each day then it's a perfect time to read a bit. Even if it's only 10 minutes, as long as your sufficiently prepared and get the book out when you get on then you can do quite a bit of reading in that time.
I doubt it. If it isn't intuitive then we need to fix it. - Chris Maunder
|
|
|
|