Click here to Skip to main content
15,920,673 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: NEED HELP: Runing proces using the process.start() Pin
SeMartens27-Oct-08 2:30
SeMartens27-Oct-08 2:30 
GeneralRe: NEED HELP: Runing proces using the process.start() Pin
sSupergirl27-Oct-08 5:54
sSupergirl27-Oct-08 5:54 
QuestionQuery String Pin
srinivaskonijeti27-Oct-08 2:00
srinivaskonijeti27-Oct-08 2:00 
AnswerRe: Query String Pin
Kannan Ar27-Oct-08 3:44
professionalKannan Ar27-Oct-08 3:44 
GeneralRe: Query String Pin
Ridge Howison27-Oct-08 11:30
Ridge Howison27-Oct-08 11:30 
QuestionGetting dataitems from a LinqDatasource/ListView in code Pin
AntoonHzn27-Oct-08 1:36
AntoonHzn27-Oct-08 1:36 
QuestionHow this is to be done Pin
Krazy Programmer27-Oct-08 1:19
Krazy Programmer27-Oct-08 1:19 
QuestionPls Help Me..CommandName value not accessible inside ItemCommand Handler event.. Pin
Sameer-The Performer27-Oct-08 1:05
Sameer-The Performer27-Oct-08 1:05 
Pls Help me in the following issues..
I have programattically created link buttons inside the datagrid header and items as described below:-
*******
Sub DGDoc_ItemCreated(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.DataGridItemEventArgs) Handles DGDoc.ItemCreated
Try
If e.Item.ItemType = ListItemType.Header Then

Dim DelLink As New LinkButton()

DelLink.Text = "Delete"
DelLink.Attributes.Add("runat", "server")
DelLink.Attributes.Add("id", "OnDelete")
DelLink.Attributes.Add("CommandName", "OnDelete")
DelLink.Attributes.Add("CommandArgument", "OnDelete")
'AddHandler DelLink.Command, AddressOf Dg_ItemDatabound
e.Item.Cells(8).Controls.Add(DelLink)

Dim EditLink As New LinkButton()
EditLink.Text = "Disp.Order/Edit"
EditLink.Attributes.Add("runat", "server")
EditLink.Attributes.Add("id", "OnEdit")
EditLink.Attributes.Add("CommandName", "OnEdit")
EditLink.Attributes.Add("CommandArgument", "OnEdit")

e.Item.Cells(7).Controls.Add(EditLink)
ElseIf e.Item.ItemType = ListItemType.Item Or e.Item.ItemType = ListItemType.AlternatingItem Then
Dim DownLink As New LinkButton()
DownLink.Text = "Download"
DownLink.Attributes.Add("runat", "server")
DownLink.Attributes.Add("id", "OnDownload")
DownLink.Attributes.Add("CommandName", "OnDownload")
DownLink.Attributes.Add("CommandArgument", "OnDownload")
e.Item.Cells(5).Controls.Add(DownLink)
End If
Catch ex As Exception
Response.Write("Error :" & ex.Message)
End Try



End Sub
********

And clicking on to the link buttons created following code is to be executed

***
Sub Dg_ItemCommand(ByVal source As Object, ByVal e As System.Web.UI.WebControls.DataGridCommandEventArgs) Handles DGDoc.ItemCommand

Try
Select Case e.CommandName
Case "OnDownload"
---
Case "OnEdit"
---
Case "OnDelete"
---
End Select

Catch ex As Exception
Response.Write("Error :" & ex.Message)
End Try
End Sub
***

But my problem is i'm not getting the value of "e.CommandName"

Pls help me in resolving these issues
AnswerRe: Pls Help Me..CommandName value not accessible inside ItemCommand Handler event.. Pin
Kannan Ar27-Oct-08 3:47
professionalKannan Ar27-Oct-08 3:47 
QuestionRe: Pls Help Me..CommandName value not accessible inside ItemCommand Handler event.. Pin
Sameer-The Performer28-Oct-08 18:53
Sameer-The Performer28-Oct-08 18:53 
QuestionFlash Video Component And Spyware Control for Uploaded Contents Pin
Sosyopat26-Oct-08 23:38
Sosyopat26-Oct-08 23:38 
AnswerRe: Flash Video Component And Spyware Control for Uploaded Contents Pin
Kannan Ar27-Oct-08 1:02
professionalKannan Ar27-Oct-08 1:02 
GeneralRe: Flash Video Component And Spyware Control for Uploaded Contents Pin
Sosyopat27-Oct-08 1:49
Sosyopat27-Oct-08 1:49 
Questioniis 5.1 give error for asp.net 3.5 applicatoin Pin
mr_muskurahat26-Oct-08 23:25
mr_muskurahat26-Oct-08 23:25 
AnswerRe: iis 5.1 give error for asp.net 3.5 applicatoin Pin
Guffa27-Oct-08 0:53
Guffa27-Oct-08 0:53 
GeneralRe: iis 5.1 give error for asp.net 3.5 applicatoin Pin
mr_muskurahat27-Oct-08 1:09
mr_muskurahat27-Oct-08 1:09 
QuestionCursor Wait Pin
omlac26-Oct-08 22:50
omlac26-Oct-08 22:50 
AnswerRe: Cursor Wait Pin
Kannan Ar27-Oct-08 0:24
professionalKannan Ar27-Oct-08 0:24 
GeneralRe: Cursor Wait Pin
omlac27-Oct-08 0:53
omlac27-Oct-08 0:53 
QuestionI Am New at this Pin
Conquistador149226-Oct-08 22:41
Conquistador149226-Oct-08 22:41 
GeneralRe: I Am New at this Pin
Guffa26-Oct-08 23:28
Guffa26-Oct-08 23:28 
QuestionNEED HELP!!!!! Pin
Conquistador149226-Oct-08 22:37
Conquistador149226-Oct-08 22:37 
AnswerRe: NEED HELP!!!!! Pin
NeverHeardOfMe26-Oct-08 22:54
NeverHeardOfMe26-Oct-08 22:54 
GeneralRe: NEED HELP!!!!! Pin
Paul Conrad27-Oct-08 6:17
professionalPaul Conrad27-Oct-08 6:17 
Questionhow to upload given url file. Pin
Rajeesrivastava26-Oct-08 22:15
Rajeesrivastava26-Oct-08 22: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.