Click here to Skip to main content
15,905,566 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionPass Value Pin
zenithmaximus30-May-06 20:47
zenithmaximus30-May-06 20:47 
AnswerRe: Pass Value Pin
_AK_30-May-06 20:54
_AK_30-May-06 20:54 
AnswerRe: Pass Value [modified] Pin
albCode30-May-06 20:55
albCode30-May-06 20:55 
GeneralRe: Pass Value [modified] Pin
zenithmaximus30-May-06 21:37
zenithmaximus30-May-06 21:37 
AnswerRe: Pass Value [modified] Pin
Guffa30-May-06 23:17
Guffa30-May-06 23:17 
QuestionHow to Bind Data to EditItemTemplate Control? Pin
Krishnaraj Barvathaya B30-May-06 19:21
Krishnaraj Barvathaya B30-May-06 19:21 
AnswerRe: How to Bind Data to EditItemTemplate Control? Pin
_AK_30-May-06 19:51
_AK_30-May-06 19:51 
GeneralRe: How to Bind Data to EditItemTemplate Control? Pin
Krishnaraj Barvathaya B30-May-06 20:06
Krishnaraj Barvathaya B30-May-06 20:06 
Hi Apurva,

Thank you for your kind response,


The code I metioned earlier is inside the Onitemdatabound and before binding I am checking the ‘ListItemType.EditItem’. I am getting problem when I try to get the reference to the control using the below code inside he event handler. Please check this below code

Dim cmb As New DropDownList
If e.Item.ItemType = ListItemType.EditItem Then
cmb = e.Item.Cells(4).FindControl("ddlCountry")
End If

In the above code ‘ddlCountry’ is the dropdown list control id. If I add this control in the Item Template instead of Edit item template I get reference to it.


Krishnaraj
GeneralRe: How to Bind Data to EditItemTemplate Control? Pin
_AK_30-May-06 20:12
_AK_30-May-06 20:12 
GeneralRe: How to Bind Data to EditItemTemplate Control? Pin
Krishnaraj Barvathaya B30-May-06 20:24
Krishnaraj Barvathaya B30-May-06 20:24 
GeneralRe: How to Bind Data to EditItemTemplate Control? Pin
_AK_30-May-06 20:33
_AK_30-May-06 20:33 
Questionerror in oledb connection string Pin
thomas_joyee30-May-06 18:48
thomas_joyee30-May-06 18:48 
AnswerRe: error in oledb connection string Pin
Steve Pullan30-May-06 19:30
Steve Pullan30-May-06 19:30 
GeneralRe: error in oledb connection string Pin
thomas_joyee30-May-06 19:43
thomas_joyee30-May-06 19:43 
GeneralRe: error in oledb connection string Pin
Steve Pullan30-May-06 20:10
Steve Pullan30-May-06 20:10 
GeneralRe: error in oledb connection string Pin
thomas_joyee30-May-06 20:21
thomas_joyee30-May-06 20:21 
GeneralRe: error in oledb connection string Pin
Steve Pullan30-May-06 20:58
Steve Pullan30-May-06 20:58 
Questionobject reference not set to instance of an object Pin
uglyeyes30-May-06 18:19
uglyeyes30-May-06 18:19 
AnswerRe: object reference not set to instance of an object Pin
Christian Graus30-May-06 18:21
protectorChristian Graus30-May-06 18:21 
AnswerRe: object reference not set to instance of an object Pin
Steve Pullan30-May-06 18:34
Steve Pullan30-May-06 18:34 
GeneralRe: object reference not set to instance of an object Pin
uglyeyes30-May-06 21:13
uglyeyes30-May-06 21:13 
GeneralRe: object reference not set to instance of an object Pin
Steve Pullan30-May-06 21:25
Steve Pullan30-May-06 21:25 
QuestionHelp Pin
zenithmaximus30-May-06 18:00
zenithmaximus30-May-06 18:00 
AnswerRe: Help Pin
Christian Graus30-May-06 18:19
protectorChristian Graus30-May-06 18:19 
QuestionHow to create batch file Pin
andylimjp30-May-06 17:15
andylimjp30-May-06 17:15 

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.