-
Oct 31st, 2012, 01:42 AM
#1
Thread Starter
Hyperactive Member
Adding Data from another webpage
hi
i am developing a web application (ASP.net 2010, VB)
in the sale invoice i need the user to select the item from a combobox, rate, qty and calculate the amt. there.
now i have a datatable which is as below.
HTML Code:
dTableData = New DataTable
dTableData.Columns.Add(New DataColumn("Item", GetType(String)))
dTableData.Columns.Add(New DataColumn("Qty", GetType(Double)))
dTableData.Columns.Add(New DataColumn("Rate", GetType(Double)))
dTableData.Columns.Add(New DataColumn("Amount", GetType(Double)))
dTableData.Columns.Add(New DataColumn("Category", GetType(String)))
dTableData.Columns.Add(New DataColumn("CatCode", GetType(String)))
dTableData.Columns.Add(New DataColumn("ItemCode", GetType(String)))
dTableData.Columns.Add(New DataColumn("myID", GetType(Integer)))
i am using a panel to enter the data. the panel is hidden which contains the combobox and the textboxes and when the user presses add item, i unhide the panel and get the data.
this is working fine.
but what i was needing is (as i have seen from a webpage)
when the user presses add item, a new, small, webpage opens which contains the combobox and textboxes and when the user enteres the data the same is updated to the above data and then the grid is filled with the added record.
i hope i am making myself clear abt the need.
pls. help.
thankx
Kuldev
The only time you run out of chances is when you stop taking them.
The mind is like a parachute.
It doesn’t work unless it’s open.
-
Oct 31st, 2012, 08:52 PM
#2
Re: Adding Data from another webpage
From what you say, this sounds like a pop up window.Have a look here:
http://www.asp.net/ajaxLibrary/AjaxC...odalPopup.aspx
ἄνδρα μοι ἔννεπε, μοῦσα, πολύτροπον, ὃς μάλα πολλὰ
πλάγχθη, ἐπεὶ Τροίης ἱερὸν πτολίεθρον ἔπερσεν·
-
Oct 31st, 2012, 10:39 PM
#3
Thread Starter
Hyperactive Member
Re: Adding Data from another webpage
Thankx Sapator, thats what i need...but the difference is i need the entire row to be returned. and also how i add the row into the table and re-fill the gridview.
can u help me out in that pls ?
thankx
Kuldev
The only time you run out of chances is when you stop taking them.
The mind is like a parachute.
It doesn’t work unless it’s open.
-
Nov 1st, 2012, 12:49 AM
#4
Re: Adding Data from another webpage
Hi.What you do is add a function that raise when you click on the "ok" or whatever you name it, button of the popup extender.After that it's simple using the function.There are tons of tutorials if you google.
ἄνδρα μοι ἔννεπε, μοῦσα, πολύτροπον, ὃς μάλα πολλὰ
πλάγχθη, ἐπεὶ Τροίης ἱερὸν πτολίεθρον ἔπερσεν·
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|