Click here to Skip to main content
16,018,419 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Questionpath of user config files of mozilla browser in the windows Registry Pin
abrab18-Jul-06 19:45
abrab18-Jul-06 19:45 
QuestionHow to get data from database.. Pin
ypsyong18-Jul-06 19:30
ypsyong18-Jul-06 19:30 
AnswerRe: How to get data from database.. Pin
_AK_18-Jul-06 19:41
_AK_18-Jul-06 19:41 
GeneralRe: How to get data from database.. Pin
ypsyong18-Jul-06 19:58
ypsyong18-Jul-06 19:58 
GeneralRe: How to get data from database.. Pin
_AK_18-Jul-06 20:14
_AK_18-Jul-06 20:14 
GeneralRe: How to get data from database.. Pin
ypsyong18-Jul-06 20:25
ypsyong18-Jul-06 20:25 
GeneralRe: How to get data from database.. Pin
_AK_18-Jul-06 20:30
_AK_18-Jul-06 20:30 
QuestionTable problem in vb.net1.1 Pin
amaneet18-Jul-06 18:58
amaneet18-Jul-06 18:58 
I am posting this question third time and i will continue posting this question until i get the answer.

Sir,
I have a datagrid and problem lies into the edititemtemplate of datagrid.
I have a datagrid in the following format
--------------------------------------------------
Column1 Column2 Column2
abc1 EditImage Delete Image
abc2 EditImage Delete Image
abc3 EditImage Delete Image
-------------------------------------------------
Now when i click at the particular editimage then the control goes to the the edititemtemplate where i am using a function to construct a table in that particular row of the datagrid in which i clicked at the editimage .In the edititemtemplate i am calling a function in the following format.
------------------------------------------------

<%#LoadTable(Container.DataItem(0).ToString())%>

--------------------------------------------------
Now the table is not comming into that row but a message is being displayed in that row and the message is
System.Web.Ui.HtmlControls.HtmlTable
But i want the structure of the table instead of this message .
------------------------=---------------
I am using the following code in the LoadTable
function
----------------------------------------
Public function LoadTable(Byval str as string)as Sysytem.Web.Ui.HtmlControls.Table
dim con as new oledbconnection("connectionstring")
con.open
cmd=new oledbcommand("select * from abc where id=" & str , con)
cmd.executereader
dim dr as oledbdatareader
dr=cmd.executereader

dim t as new system.web.ui.htmlcontrol.table
dim drow as System.Web.UI.HtmlControls.HtmlTableRow
dim dcell(1) as New System.Web.UI.HtmlControls.HtmlTableCell
--------------------------------------------------------
while(dr.read)

drow = New System.Web.UI.HtmlControls.HtmlTableRow
dcell(0) = New System.Web.UI.HtmlControls.HtmlTableCell
dcell(0).Width = "30%"
dcell(1) = New System.Web.UI.HtmlControls.HtmlTableCell
dcell(1).Width = "70%"
dcell(0).InnerText = dr.Item(0)
dcell(1).InnerText = dr.Item(1)
drow.Cells.Add(dcell(0))
drow.Cells.Add(dcell(1))
t.Rows.Add(drow)
end while
----------------------------------------------------------
End Sub

please help me to construct the table in the datagrid row at edititem template of datagrid
AnswerRe: Table problem in vb.net1.1 Pin
minhpc_bk18-Jul-06 20:52
minhpc_bk18-Jul-06 20:52 
GeneralRe: Table problem in vb.net1.1 Pin
amaneet19-Jul-06 1:26
amaneet19-Jul-06 1:26 
QuestionHow to get Error message using Error No When Sql Exception is raised Pin
kiranchandu618-Jul-06 18:49
kiranchandu618-Jul-06 18:49 
AnswerRe: How to get Error message using Error No When Sql Exception is raised Pin
_AK_18-Jul-06 19:01
_AK_18-Jul-06 19:01 
GeneralRe: How to get Error message using Error No When Sql Exception is raised Pin
kiranchandu618-Jul-06 20:56
kiranchandu618-Jul-06 20:56 
Questiondatagrid to database connection [modified] Pin
ultracrap18-Jul-06 18:23
ultracrap18-Jul-06 18:23 
AnswerRe: datagrid to database connection Pin
minhpc_bk18-Jul-06 21:01
minhpc_bk18-Jul-06 21:01 
QuestionADO.NET [modified] Pin
nisha261218-Jul-06 18:15
nisha261218-Jul-06 18:15 
AnswerRe: ADO.NET Pin
Colin Angus Mackay18-Jul-06 20:16
Colin Angus Mackay18-Jul-06 20:16 
QuestionA question about Asyn-communicating by using UdpClient of .NET. [modified] Pin
weiyuw18-Jul-06 12:04
weiyuw18-Jul-06 12:04 
Questionadrotator Pin
kjosh18-Jul-06 11:40
kjosh18-Jul-06 11:40 
AnswerRe: adrotator Pin
Sushant Duggal18-Jul-06 18:08
Sushant Duggal18-Jul-06 18:08 
Questionmedia player stops when expand or collapse a tree node Pin
3nbar, A7mad A18-Jul-06 10:13
3nbar, A7mad A18-Jul-06 10:13 
AnswerRe: media player stops when expand or collapse a tree node Pin
RichardGrimmer21-Jul-06 3:52
RichardGrimmer21-Jul-06 3:52 
Questionexpand/collapse images in TreeView control Pin
3nbar, A7mad A18-Jul-06 9:30
3nbar, A7mad A18-Jul-06 9:30 
AnswerRe: expand/collapse images in TreeView control Pin
Not Active18-Jul-06 9:32
mentorNot Active18-Jul-06 9:32 
Questionrotating images in Adrotator Pin
ravindradonkada18-Jul-06 7:30
ravindradonkada18-Jul-06 7:30 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.