Click here to Skip to main content
15,914,379 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Finding Visitor's IP Problem Pin
yersay16-Jul-06 10:46
yersay16-Jul-06 10:46 
GeneralRe: Finding Visitor's IP Problem Pin
Jesse Squire21-Jul-06 3:01
Jesse Squire21-Jul-06 3:01 
GeneralRe: Finding Visitor's IP Problem Pin
yersay21-Jul-06 19:02
yersay21-Jul-06 19:02 
AnswerRe: Finding Visitor's IP Problem Pin
dansoft16-Jul-06 15:32
dansoft16-Jul-06 15:32 
GeneralRe: Finding Visitor's IP Problem Pin
yersay16-Jul-06 18:37
yersay16-Jul-06 18:37 
QuestionHow to change the ToolTip message in a calendar Pin
Mohamed El Gohary15-Jul-06 23:53
Mohamed El Gohary15-Jul-06 23:53 
AnswerRe: How to change the ToolTip message in a calendar Pin
minhpc_bk16-Jul-06 23:58
minhpc_bk16-Jul-06 23:58 
QuestionVB.net 1.1Problem [modified] Pin
amaneet15-Jul-06 21:53
amaneet15-Jul-06 21:53 
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.
------------------------------------------------
<EditItemTemplate>
<%#LoadTable(Container.DataItem(0).ToString())%>
</EditItemtemplate>
--------------------------------------------------
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

-- modified at 3:57 Sunday 16th July, 2006
QuestionRunning ASP and ASP.NET on IIS5.1 [modified] Pin
Anthony Potts15-Jul-06 8:01
Anthony Potts15-Jul-06 8:01 
AnswerRe: Running ASP and ASP.NET on IIS5.1 Pin
Jakob Farian Krarup15-Jul-06 21:24
Jakob Farian Krarup15-Jul-06 21:24 
GeneralRe: Running ASP and ASP.NET on IIS5.1 Pin
Anthony Potts16-Jul-06 18:55
Anthony Potts16-Jul-06 18:55 
Questiondiv Pin
adamoz15-Jul-06 5:41
adamoz15-Jul-06 5:41 
AnswerRe: div Pin
Mircea Grelus15-Jul-06 13:06
Mircea Grelus15-Jul-06 13:06 
Questiondisplaying html file on webpage Pin
pawanmishraji15-Jul-06 2:01
pawanmishraji15-Jul-06 2:01 
AnswerRe: displaying html file on webpage Pin
enjoycrack15-Jul-06 20:02
enjoycrack15-Jul-06 20:02 
GeneralRe: displaying html file on webpage Pin
RichardGrimmer17-Jul-06 2:57
RichardGrimmer17-Jul-06 2:57 
QuestionAllow Service to interact with Desktop Pin
Kapil Thakur15-Jul-06 1:45
Kapil Thakur15-Jul-06 1:45 
AnswerRe: Allow Service to interact with Desktop Pin
led mike15-Jul-06 16:55
led mike15-Jul-06 16:55 
AnswerRe: Allow Service to interact with Desktop Pin
stan_p21-Dec-10 0:56
stan_p21-Dec-10 0:56 
QuestionExcel Problum Pin
kirthikirthi14-Jul-06 23:30
kirthikirthi14-Jul-06 23:30 
AnswerRe: Excel Problum Pin
Mircea Grelus15-Jul-06 0:16
Mircea Grelus15-Jul-06 0:16 
Questionhow can i delete from multiple table on a single button click Pin
Amit Agarrwal14-Jul-06 23:22
Amit Agarrwal14-Jul-06 23:22 
AnswerRe: how can i delete from multiple table on a single button click Pin
Reza Raad15-Jul-06 0:20
Reza Raad15-Jul-06 0:20 
GeneralRe: how can i delete from multiple table on a single button click Pin
Amit Agarrwal15-Jul-06 0:27
Amit Agarrwal15-Jul-06 0:27 
AnswerRe: how can i delete from multiple table on a single button click Pin
Reza Raad15-Jul-06 1:30
Reza Raad15-Jul-06 1: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.