Click here to Skip to main content
15,901,426 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Functions of URLMON.DLL Pin
Dave Kreskowiak4-Jul-07 4:51
mveDave Kreskowiak4-Jul-07 4:51 
QuestionSubtracting workdays in Excel Pin
leckey3-Jul-07 9:45
leckey3-Jul-07 9:45 
AnswerRe: Subtracting workdays in Excel Pin
Dave Kreskowiak3-Jul-07 9:58
mveDave Kreskowiak3-Jul-07 9:58 
GeneralRe: Subtracting workdays in Excel Pin
leckey3-Jul-07 10:14
leckey3-Jul-07 10:14 
GeneralRe: Subtracting workdays in Excel Pin
ChandraRam4-Jul-07 1:12
ChandraRam4-Jul-07 1:12 
Questionneed please a free site for graphics interface Pin
sal213-Jul-07 8:35
sal213-Jul-07 8:35 
AnswerRe: need please a free site for graphics interface Pin
Dave Kreskowiak3-Jul-07 9:37
mveDave Kreskowiak3-Jul-07 9:37 
Questiondelete confirm in datagrid Pin
DonVBguy3-Jul-07 6:01
DonVBguy3-Jul-07 6:01 
Please Help with VB.NET!

I have a datagrid, and it has ButtonColumn . I have the function ItemCreated for this Button. I want to pass the value of the cell of that row in the datagrid to clientside javascript. I want to confirm the user with the information of the row before they delete that row. It seems like the Javacript of the "onclick" event always fired before the ItemCreated event, that is why i can not get the the value of the row at all. I've tried many different way but i could not get it. Please help me with this. I really appreciate your help very much.

Sub dgProgram_ItemCreated(ByVal sender As Object, ByVal e As DataGridItemEventArgs)

If e.Item.ItemType = ListItemType.Item OrElse e.Item.ItemType = ListItemType.AlternatingItem Then
Dim lbl As New Label
lbl = CType(e.Item.FindControl("lblProgram"), Label)
//program is a hidden field
Me.program.Value = CType(lbl.Text, String)

Dim btn As Button
btn = CType(e.Item.Cells(14).Controls(0), Button)
btn.Attributes.Add("onclick", "return deleteconfirm(program)")
End If

End Sub

function deleteconfirm(v)
{
return confirm('Are you sure to delete this program: '+ v.value);
}

AnswerRe: delete confirm in datagrid Pin
Dave Kreskowiak3-Jul-07 6:27
mveDave Kreskowiak3-Jul-07 6:27 
GeneralExcept that... Pin
leckey3-Jul-07 8:16
leckey3-Jul-07 8:16 
AnswerRe: delete confirm in datagrid Pin
Urs Enzler3-Jul-07 7:06
Urs Enzler3-Jul-07 7:06 
QuestionMySQL Connection string Pin
vichammer3-Jul-07 4:04
vichammer3-Jul-07 4:04 
AnswerRe: MySQL Connection string Pin
originSH3-Jul-07 4:10
originSH3-Jul-07 4:10 
QuestionDrop down list not displaying items Pin
Brendan Vogt3-Jul-07 2:05
Brendan Vogt3-Jul-07 2:05 
AnswerRe: Drop down list not displaying items Pin
PrakashBhaskar3-Jul-07 2:49
PrakashBhaskar3-Jul-07 2:49 
QuestionRe: Drop down list not displaying items Pin
Brendan Vogt3-Jul-07 3:07
Brendan Vogt3-Jul-07 3:07 
AnswerRe: Drop down list not displaying items Pin
Dave Kreskowiak3-Jul-07 5:13
mveDave Kreskowiak3-Jul-07 5:13 
QuestionReading email address from outlook into vb.net Pin
Arunacss3-Jul-07 0:59
Arunacss3-Jul-07 0:59 
AnswerRe: Reading email address from outlook into vb.net Pin
Dave Kreskowiak3-Jul-07 5:07
mveDave Kreskowiak3-Jul-07 5:07 
GeneralRe: Reading email address from outlook into vb.net Pin
Arunacss3-Jul-07 18:57
Arunacss3-Jul-07 18:57 
GeneralRe: Reading email address from outlook into vb.net Pin
Dave Kreskowiak5-Jul-07 4:28
mveDave Kreskowiak5-Jul-07 4:28 
QuestionSystem information Pin
rajmohan19763-Jul-07 0:20
rajmohan19763-Jul-07 0:20 
AnswerRe: System information Pin
originSH3-Jul-07 1:23
originSH3-Jul-07 1:23 
AnswerRe: System information Pin
Luc Pattyn3-Jul-07 4:12
sitebuilderLuc Pattyn3-Jul-07 4:12 
AnswerRe: System information Pin
koolprasad20033-Jul-07 23:09
professionalkoolprasad20033-Jul-07 23:09 

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.