Click here to Skip to main content
15,892,809 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Questionmouseover event on reapeater control. Pin
Amit Agarrwal17-Jul-06 22:40
Amit Agarrwal17-Jul-06 22:40 
QuestionHow to make tablecell's width fixed Pin
Xiaoming Qian17-Jul-06 22:13
Xiaoming Qian17-Jul-06 22:13 
AnswerRe: How to make tablecell's width fixed Pin
Khawar Abbas117-Jul-06 22:45
Khawar Abbas117-Jul-06 22:45 
Questionsnitz forum Pin
elaangovan17-Jul-06 20:29
elaangovan17-Jul-06 20:29 
AnswerRe: snitz forum Pin
Paddy Boyd17-Jul-06 23:52
Paddy Boyd17-Jul-06 23:52 
QuestionMaster Detail Grid. Pin
deepaks317-Jul-06 20:06
deepaks317-Jul-06 20:06 
AnswerRe: Plz help on calendar control Pin
Wesley Samuel17-Jul-06 20:37
Wesley Samuel17-Jul-06 20:37 
QuestionTable in vb.net vb.net 1.1 Pin
amaneet17-Jul-06 19:04
amaneet17-Jul-06 19:04 
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())%>

--------------------------------------------------
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
QuestionAdvice wanted re: sizing datagrid optimally Pin
Member 9617-Jul-06 18:57
Member 9617-Jul-06 18:57 
QuestionRestrict the page from redirecting to another page Pin
venkatasivaramaprasad17-Jul-06 18:51
venkatasivaramaprasad17-Jul-06 18:51 
QuestionError while calling web service Pin
Sathiyaraj Ganesan17-Jul-06 17:54
Sathiyaraj Ganesan17-Jul-06 17:54 
AnswerRe: Error while calling web service Pin
Swapnil Piparia23-Jul-06 22:48
Swapnil Piparia23-Jul-06 22:48 
Questiondatagrid count Pin
dansoft17-Jul-06 17:51
dansoft17-Jul-06 17:51 
AnswerRe: datagrid count Pin
postmaster@programmingknowledge.com17-Jul-06 18:29
postmaster@programmingknowledge.com17-Jul-06 18:29 
AnswerRe: datagrid count Pin
Pradipta Basu17-Jul-06 22:24
Pradipta Basu17-Jul-06 22:24 
QuestionData Binding to textbox Pin
For_IT17-Jul-06 12:22
For_IT17-Jul-06 12:22 
AnswerRe: Data Binding to textbox Pin
minhpc_bk17-Jul-06 15:42
minhpc_bk17-Jul-06 15:42 
AnswerRe: Data Binding to textbox Pin
postmaster@programmingknowledge.com17-Jul-06 16:02
postmaster@programmingknowledge.com17-Jul-06 16:02 
QuestionMail sending problum Pin
kirthikirthi17-Jul-06 10:17
kirthikirthi17-Jul-06 10:17 
AnswerRe: Mail sending problum Pin
fistiki17-Jul-06 10:32
fistiki17-Jul-06 10:32 
Questioncaching [modified] Pin
kjosh17-Jul-06 8:43
kjosh17-Jul-06 8:43 
AnswerRe: caching Pin
Not Active17-Jul-06 8:48
mentorNot Active17-Jul-06 8:48 
GeneralRe: caching Pin
kjosh17-Jul-06 9:54
kjosh17-Jul-06 9:54 
GeneralRe: caching Pin
Not Active17-Jul-06 12:47
mentorNot Active17-Jul-06 12:47 
QuestionBold / Italic (Urgent) Pin
kirthikirthi17-Jul-06 8:05
kirthikirthi17-Jul-06 8:05 

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.