|
This won't work, it needs to be recursive. And no, there's no better way.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
My application uses the ReorderList to allow people to reorder NFL players on a fantasy football cheat sheet. The problem I'm having is that in IE6, when you're dragging players around, the entire contents of the <itemtemplate> are shown, even those controls that I explicitly want to hide via css.
This problem is arising because I have a 'note' area that allows people to add notes on players, but in order for me to fix all of that functionality into a small area, I have to show/hide numerous controls. But, when you reorder the players ALL of the controls (including the ones I'm hiding) get shown and thus break the layout when dragging.
Follow this link, then click on 'My Player Rankings':
http://www.cheatsheetwarroom.com
I'd love to hear some suggestions. Remember the problem is only in IE6.
|
|
|
|
|
Hello Everybody
I have a order_Details table into SQL SERVER 2005 and cloumns are below
OrderID, ItemID, Notes, Quantity, TotalPrice, and query is
SELECT ItemID, Notes, Quantity, TotalPrice FROM OrderDetails WHERE OrderID=1000
I want to design my gridView like
IF NOTES IS NOT NULL THEN
Row should be
ITEM01 2 £10
(NOTES should be in next line same row)
ITEM02 3 £30
(NOTES should be in next line same row)
ELSE
ITEM05 3 £15
ITEM06 4 £12
END IF
How can I do it
Thanks
Sarfarj Ahmed
|
|
|
|
|
Create a loop and apply your data to a datasource then populate your grid from there
We are not a Code Charity
|
|
|
|
|
thank you
if u have any example please send me
Sarfarj Ahmed
|
|
|
|
|
I'm trying to have a button inside dot net nuke that when clicked will launch an outside form. (A hosted order page) to be exact, it is for credit card processing. The button has been created in VS 2005 and I can launch it fine from there, however I do not know how to create a button anywhere inside DNN. Another hiccup is that the code embedds some signatures (price, currency, authorization) so i don't know how that will weffect things either.
|
|
|
|
|
I have 2 button (1) Select All (2)DeSelect All button. Select All button should select all the checkboxes in the GridView...Importantly when the paging is allowed...
The problem is, when paging is allowed, the checkbox is checked only in the first page not on the second page and the subsequent ones. The following code shows the code.
How can I get every check boxes selected? how to do with Javascript? If possible, can we do without Javascript.. with C#.
Please help.
protected void Select_Click(object sender, EventArgs e)<br />
{ <br />
<br />
foreach (GridViewRow row in GridView1.Rows)<br />
{<br />
CheckBox chk = row.FindControl("chkSelect") as CheckBox;<br />
<br />
if (chk.Checked == false)<br />
{<br />
chk.Checked = true;<br />
}<br />
}<br />
<br />
}
Sanjeev
|
|
|
|
|
This is one way you could do it (this is without javascript. you could do the same thing with javascript and probably faster too)
[This will work if you are using client side paging (i.e. when the select method returns, it returns all the possible records, not just the page - which is know as server side paging)]
1. Create a map of the records. The key would be the unique id of the record, the value would represent the checked value. This now becomes your model for manipulating the records when the checkbox value is used.
2. When the data is loaded, their values would have to be inserted (if not already present) or updated.
3. When the select all button is fired, simply update all the values in the map. [note: you should give feedback to your user that all the records have been selected. Something like "All 375 records have been selected"]
4. Set the checkbox property AutoPostback to true and update the map every time a checkbox is updated.
When actions are being executed that rely on the check box value (for example, delete selected), use the Map to determine which records are selected.
|
|
|
|
|
|
I'm a beginner in ASP.NET and want to know how to use webclient class and using it how to get data from any website.
I want to build a module which fetches all the url given on any website's page and then store those url in a database.
For doing so i need to crawl the whole page and check for url in the page and then store it in a database.
Please help me with this..
which stream i need to use openread or openwrite...??
Paritosh Tripathi
B.Tech. (C.S.)
|
|
|
|
|
What do you want to do with this data? It sounds malicious in nature to me.
|
|
|
|
|
Hi,
Pls how do I link my web application to receive input from a bar code reader.
I want to read serial numbers of items in stock then display it and store it inside my sqldatabase.
Thank you.
SPC Nigeria
Thanks.
|
|
|
|
|
What kind of reader do you have? is it a symbol device for isntance a MC9090?
|
|
|
|
|
I don't have a particular type of reader in mind.Please you guide on the type you mentioned MC9090 or any other type you know. Thanks
SPC Nigeria
Thanks.
|
|
|
|
|
Hi All,
I have developed a web service, there are few methods which mostly take the xml string as input and gives the XML string as out put. I would like to check the functionality of the web method. By giving some sample xml strings in it.
Please can any body help me how to check a web method of .Net Webservice.
Thanks,
Aleem Mohammad.
S/W Engineer
Akebono Soft Technologies
aleem_abdul@akebonosoft.com.
|
|
|
|
|
|
I have a gridview that is being dynamically bound to a generic list. To add a blank row I am re-querying the DB and inserting a new, empty, generic object to the list. Now, once I have the new blank row displayed in the gridview, how do I allow for users to add data to the new row?
Thanks,
Steve
|
|
|
|
|
How would I best handle errors in a basic data capture and viewing web application? I'm looking at using different View objects, and if an error occurs when, e.g. inserting a new record, I activate the 'error view', and display and error message. If the insert succeeds, I activate the 'confirm view', and show a success message, etc.
Is there an established pattern for such error handling in ASP.NET?
|
|
|
|
|
I used to create a HTTP handler and handle Application_Error. It works pretty well here.
|
|
|
|
|
for showing tr block:
document.getElementById("ctl00_ContentMiddle_gvUserDetails_ctl0"+btn+"_trOther").style.display="block";
for showing tr block:
document.getElementById("ctl00_ContentMiddle_gvUserDetails_ctl0"+btn+"_trOther").style.display="none";
to assign value into label lblFirstName:
document.getElementById("ctl00_ContentMiddle_gvUserDetails_ctl0"+btn+"_lblFirstName").innerText= values[0];
when going to next page in grid view through paging then above not working.
thanks
You get the best out of others when you give the best of yourself.
|
|
|
|
|
I have a gridview bound to a generic list of Products. Now, when the user selects the Insert button, I want to add a blank row to the beginning of the gridview. What is the best way?
Thanks,
Steve
|
|
|
|
|
|
How can I assign value in label(asp.net control) which is inside grid view
using javascript function
thanks
You get the best out of others when you give the best of yourself.
|
|
|
|
|
Use findcontrol method
We are not a Code Charity
|
|
|
|
|
It's in DataGrid <container.itemindex+1>
In GridView <container.dataitemindex+1>
how can I get this value
in Java Script function
thanks a lot
You get the best out of others when you give the best of yourself.
|
|
|
|