why to make this process that much complex....?
you better do as following:-
try to get the command argument field with common name from both tables...
(using alias in select query).
select catid, catname, cast(catid as varchar(10)) + ':CAT' as commandID from tblcategory
select itemid, itemname, cast(itemid as varchar(10)) + ':ITEM' as commandID from tblitems
assign the function name & command argument at design time.
in the code-behind, check for commandargument,
split it and check for CAT or ITEM and then do the needfull.
i am making a web application in which i am using cms (content management system), i want to display body text in a textbox
which is store in html format in data base,when retriving it its as a string not in html format
and i want to display this data in html format
and on other hand user can update and store data in html format
If you use that editor in your project. Then you can provide the functionality of modifying the html content and surely you can save that html content into the database. That will exactly work as normal textbox control despite it will also give you the independence to use html content in addition to the normal content with some more functionality.
hi friends i m using empty grid with one row has two dropdown and six textbox
In the grid first column i have two imagebutton ADD and Delete
now when i click on add new row is added
but i want that on click on delete one row is deleted
i m using update panel.
thanks for reply
but i m using grid with update panel and i m adding row on page load because whaen i add new row on click event function it will lost all dat from the past rows as well as don't show the grid...
so my problem is when i click on delete button then also one new row is generated...
means whenever page is postback the new row is created..
i just wanna display a message box before a delete record....that message box should contain...YES/NO function ...if we press Yes ..following record will be deleted...other wise ...we can escape from dat options...how to this...send me the code...its very urgent.....i am using C#,asp.net