Click here to Skip to main content
15,898,222 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionHow to called server side function on onblur event of textbox Pin
rahul.net1128-Jun-07 5:58
rahul.net1128-Jun-07 5:58 
AnswerRe: How to called server side function on onblur event of textbox Pin
kubben28-Jun-07 9:01
kubben28-Jun-07 9:01 
AnswerRe: How to called server side function on onblur event of textbox Pin
Schatak24-May-11 1:14
professionalSchatak24-May-11 1:14 
QuestionASP Menu Item Pin
gavthegenius28-Jun-07 5:48
gavthegenius28-Jun-07 5:48 
AnswerRe: ASP Menu Item Pin
martin_hughes28-Jun-07 7:29
martin_hughes28-Jun-07 7:29 
QuestionSystem Information Pin
oskardiazdeleon28-Jun-07 5:41
oskardiazdeleon28-Jun-07 5:41 
QuestionnLog Help needed Pin
Ridge Howison28-Jun-07 5:26
Ridge Howison28-Jun-07 5:26 
Questiondelete confirm in datagrid with vb asp.net Pin
DonVBguy28-Jun-07 4:56
DonVBguy28-Jun-07 4:56 
Please Help!!

I an working on a VB application with a datagrid. In the datagrid, i have create a ButtonColumn with "Delete" Command. I also create OnItemCreated="dgProgram_ItemCreated" for the datagrid. I want to confirm the user before delete a row from datagrid. I also want to pass an Object value of that row to client side (example: "are you sure to delete the row number with that name bluh bluh?"). I don't understand why the javascipt always fired before the ItemCreated (dgProgram_ItemCreated function). That's why i can't get the value to pass to javascript.

Please Help. Thanks in Advance!!!

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 with vb asp.net Pin
Fred_Smith28-Jun-07 7:42
Fred_Smith28-Jun-07 7:42 
GeneralRe: delete confirm in datagrid with vb asp.net Pin
DonVBguy28-Jun-07 10:21
DonVBguy28-Jun-07 10:21 
GeneralRe: delete confirm in datagrid with vb asp.net Pin
Fred_Smith28-Jun-07 10:46
Fred_Smith28-Jun-07 10:46 
Questionon focus out event for asp:textbox Pin
rahul.net1128-Jun-07 3:59
rahul.net1128-Jun-07 3:59 
AnswerRe: on focus out event for asp:textbox Pin
Senseicads28-Jun-07 4:55
Senseicads28-Jun-07 4:55 
GeneralRe: on focus out event for asp:textbox Pin
rahul.net1128-Jun-07 6:00
rahul.net1128-Jun-07 6:00 
GeneralRe: on focus out event for asp:textbox Pin
Senseicads28-Jun-07 6:02
Senseicads28-Jun-07 6:02 
GeneralRe: on focus out event for asp:textbox Pin
rahul.net1128-Jun-07 6:24
rahul.net1128-Jun-07 6:24 
GeneralRe: on focus out event for asp:textbox Pin
Senseicads28-Jun-07 6:44
Senseicads28-Jun-07 6:44 
GeneralRe: on focus out event for asp:textbox Pin
rahul.net1128-Jun-07 7:15
rahul.net1128-Jun-07 7:15 
QuestionRegular Expression for Date Pin
Khan.Bangash28-Jun-07 3:38
Khan.Bangash28-Jun-07 3:38 
AnswerRe: Regular Expression for Date Pin
Sathesh Sakthivel28-Jun-07 3:41
Sathesh Sakthivel28-Jun-07 3:41 
GeneralRe: Regular Expression for Date Pin
Khan.Bangash28-Jun-07 3:46
Khan.Bangash28-Jun-07 3:46 
GeneralRe: Regular Expression for Date Pin
Sathesh Sakthivel28-Jun-07 3:52
Sathesh Sakthivel28-Jun-07 3:52 
GeneralRe: Regular Expression for Date Pin
Khan.Bangash28-Jun-07 3:57
Khan.Bangash28-Jun-07 3:57 
GeneralRe: Regular Expression for Date Pin
Sathesh Sakthivel28-Jun-07 3:59
Sathesh Sakthivel28-Jun-07 3:59 
GeneralRe: Regular Expression for Date Pin
Khan.Bangash28-Jun-07 4:23
Khan.Bangash28-Jun-07 4:23 

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.