|
Hi, I'm trying to make a hierarchy table by using the repeater. I've created a loop that checked the items in my data base one-by-one if they have sub items so that they can be placed underneath the main item just like a hierarchy form. But when I tried to insert the item into the repeater one-by-one I encountered a error saying.
"ITEM_NAME is neither a DataColumn nor a DataRelation for table Table."
Can you teach me how to make a much more easier way to arrange my items in a hierarchy form?
thanks.
|
|
|
|
|
meki_2118 wrote: "ITEM_NAME is neither a DataColumn nor a DataRelation for table Table."
No-one can solve this without seeing the code.
A heirarchical table is going to involve nested repeaters. Do you have a fixed depth your heirarchy can go to ? Then you can just set up your data and databind.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
DS = DAL.Get_Data_BE(txtCcNo.Text)
n = DS.Tables(0).Rows.Count
Do Until n <= 0
i = i + 1
contItemName = DS.Tables(0).Rows(DS.Tables(0).Rows.Count() - i).Item("ITEM_NAME")
contPCode = DS.Tables(0).Rows(DS.Tables(0).Rows.Count() - i).Item("P_CODE")
DS = DAL.Get_Level_BE(contPCode)
j = DS.Tables(0).Rows.Count
k = 0
Do Until j <= 0
k = k + 1
PrimCont = DS.Tables(0).Rows(DS.Tables(0).Rows.Count() - k).Item("PRIM_KEY")
DSL = DAL.Get_ItemName_BE(PrimCont)
ItemCont = DSL.Tables(0).Rows(DS.Tables(0).Rows.Count() = 0).Item("ITEM_NAME")
ItemRepeater.DataSource = DS
j = j - 1
Loop
DS = DAL.Get_Data_BE(txtCcNo.Text)
ItemRepeater.DataBind()
n = n - 1
Loop
Here's the loop that I've created. And the hierarchy will consist of up to 5 sub items. that's what I've been planning.
|
|
|
|
|
Can you provide your code?
Cheers!!
Brij
|
|
|
|
|
DS = DAL.Get_Data_BE(txtCcNo.Text)
n = DS.Tables(0).Rows.Count
Do Until n <= 0
i = i + 1
contItemName = DS.Tables(0).Rows(DS.Tables(0).Rows.Count() - i).Item("ITEM_NAME")
contPCode = DS.Tables(0).Rows(DS.Tables(0).Rows.Count() - i).Item("P_CODE")
DS = DAL.Get_Level_BE(contPCode)
j = DS.Tables(0).Rows.Count
k = 0
Do Until j <= 0
k = k + 1
PrimCont = DS.Tables(0).Rows(DS.Tables(0).Rows.Count() - k).Item("PRIM_KEY")
DSL = DAL.Get_ItemName_BE(PrimCont)
ItemCont = DSL.Tables(0).Rows(DS.Tables(0).Rows.Count() = 0).Item("ITEM_NAME")
ItemRepeater.DataSource = DS
j = j - 1
Loop
DS = DAL.Get_Data_BE(txtCcNo.Text)
ItemRepeater.DataBind()
n = n - 1
Loop
Here's the code.
|
|
|
|
|
I have a web service which has a method that takes in some parameters. When I view that in browser, I get textboxes to provide input for the webmethod. I want to remove the autocomplete feature from those textboxes. As I cant control the properties of the textbox, either I need to disable autocomplete feature of the browser - which I dont think can be done. Is there some way I can implement this?
C isn't that hard: void (*(*f[])())() defines f as an array of unspecified size, of pointers to functions that return pointers to functions that return void
"Always program as if the person who will be maintaining your program is a violent psychopath that knows where you live." - Martin Golding
|
|
|
|
|
I don't think it can be done, because the browser is doing it, and I don't know that you have any control over the code that is generating the page. It's really for testing purposes only, you shouldn't have people actually using it as a form of access.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
i need code for GridView RowUpdating in asp.net
|
|
|
|
|
I know this is only your sixth post, but surely that's enough to know to post a meaningful header, and to try google before asking the most basic of 101 questions ?
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Is your subject right?Have you gone through the rules of posting a question in CP.
sanddepnamburi wrote: i need code for GridView RowUpdating in asp.net
Check the link below
[^]">
Cheers!!
Brij
|
|
|
|
|
sir,
I need help about "voice Recoding" through Asp.net application.
|
|
|
|
|
naagrjuna wrote: sir,
I need help about "voice Recoding" through Asp.net application.
Sorry About this post. This is just done by mistake.
cheers,
Abhijit
|
|
|
|
|
naagrjuna wrote: sir,
I need help about "voice Recoding" through Asp.net application.
In Last 1.8 years , you have posted 4 Question and 3 of them are same question . You have got the answer on your previous post also, that , this is nothing related with asp.net.
So, please Stop Spaming in CP.
cheers,
Abhijit
|
|
|
|
|
Oh, I see, you're retarded. I'm sorry. Ask one of the people whose job it is to help you go to the toilet, etc, to view the replies to all the other times you asked this question, and then see if they can explain it to you.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Not possible through ASP.NET
Cheers!!
Brij
|
|
|
|
|
hello,
when i am trying to write data to xml file, what is the code for appending data to xml file in asp.net
i am writing below code
ds.WriteXml(AppDomain.CurrentDomain.BaseDirectory & "\XML\XMLfile.xml")
Thanks
Pinna
|
|
|
|
|
you can't append to an XML file with another xml file, because an XML file can have only one root. You'd have to use the XmlDocument class to load the old xml and insert the new nodes.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
ok...i want to append the new nodes to already created xml file.what is the code for appending nodes in already created xml file
Thanks
Pinna
|
|
|
|
|
1 - Load it to XMLDocument using XMLDocument.Load
2 - Find the node under which you want the new node to be inserted
3 - Use AddChild method on that node.
|
|
|
|
|
Thanks you very much...
Pinna
|
|
|
|
|
To update an XML file you need xmldocument object
Check the link
[^]">
Cheers!!
Brij
|
|
|
|
|
http://www.codeproject.com/KB/install/msicustomaction.aspx
Please Go Through The Above Link and send in the Web Setup Project using c#
Thanks
Shavil
|
|
|
|
|
You want us to go to that link, and follow the directions to get something to work for YOUR project... Explain to me how that will work.
Why can't you do it yourself?
The best way to accelerate a Macintosh is at 9.8m/sec² - Marcus Dolengo
|
|
|
|
|
|
have you tried by yourself?What is the error you found?
Cheers!!
Brij
|
|
|
|