Click here to Skip to main content
16,004,854 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionIs it impossible?? Pin
innocent731-May-06 19:18
innocent731-May-06 19:18 
AnswerRe: Is it impossible?? Pin
NeverHeardOfMe2-May-06 1:05
NeverHeardOfMe2-May-06 1:05 
GeneralRe: Is it impossible?? Pin
innocent732-May-06 4:51
innocent732-May-06 4:51 
QuestionHow to compress files in ASP.Net? Pin
naveedmazhar1-May-06 18:58
naveedmazhar1-May-06 18:58 
AnswerRe: How to compress files in ASP.Net? Pin
CWIZO1-May-06 21:28
CWIZO1-May-06 21:28 
QuestionPrint a disclaimer. Pin
rlorusso1-May-06 17:10
rlorusso1-May-06 17:10 
AnswerRe: Print a disclaimer. Pin
goyal manish2-May-06 23:27
goyal manish2-May-06 23:27 
QuestionimageButton in datagrid Pin
janetb991-May-06 10:32
janetb991-May-06 10:32 
Learning as I go and having trouble with a datagrid. Using images, and need to delete a selected record if the image is pushed or send to another page if it's edit. No errors, but don't think things are getting passed. Trying to plagarize from a help article on the web and haven't got something just right. Any help, please?

Private Sub dgCourseListItemCommand(ByVal sender As Object, ByVal e As
DataGridCommandEventArgs)
if e.CommandName="Edit" then
'do a redirect with e.item.cells(0).text as url parameter
'url=http://www.servername.com/adminEcoursePageEdit.aspx?pageID= &
e.item.cells(0).text
End if
if e.CommandName="Delete" then
Dim cmdp as new sqlClient.SqlCommand("sp_eCoursePageDel",cn)
cmdp.CommandType = CommandType.StoredProcedure
Dim p_pg as SQLParameter = new SQLParameter("@pageID", SqlDbType.Int, 4)
p_pg.Value = e.item.cells(0).text
cmdp.Parameters.Add(p_pg)
cmdp.ExecuteNonQuery()
lblMsg.text=e.commandName & ", " & e.item.cells(0).text
End if
End Sub

<asp:DataGrid id="dgCourseList" OnItemCommand="dgCourseListItemCommand"
runat="server" autogenerateColumns="False">
<Columns>
<asp:BoundColumn DataField="pageID_pk" Visible="False"></asp:BoundColumn>
<asp:boundcolumn HeaderText="Navigation Title" DataField="navTitle"
Visible="True"></asp:boundcolumn>
<ASP:TemplateColumn HeaderText="Action">
<ItemTemplate>
<ASP:ImageButton id="btnDel" Runat="server" AlternateText="Delete"
ImageUrl="../images/boxX.gif" CommandArgument='<%#
DataBinder.Eval(Container,"DataItem.pageID_pk")%>' CommandName="Delete" />
<ASP:ImageButton id="btnEdit" Runat="server" AlternateText="Edit"
ImageUrl="../images/boxCheck.gif" CommandArgument='<%#
DataBinder.Eval(Container,"DataItem.pageID_pk")%>' CommandName="Edit" />
</ItemTemplate>
</ASP:TemplateColumn>
</Columns>
</asp:DataGrid>

AnswerRe: imageButton in datagrid Pin
minhpc_bk1-May-06 13:41
minhpc_bk1-May-06 13:41 
GeneralRe: imageButton in datagrid Pin
janetb992-May-06 3:18
janetb992-May-06 3:18 
QuestionHow to create a photo album using Asp.net Pin
boombabyy1-May-06 9:05
boombabyy1-May-06 9:05 
AnswerRe: How to create a photo album using Asp.net Pin
minhpc_bk1-May-06 13:43
minhpc_bk1-May-06 13:43 
AnswerRe: How to create a photo album using Asp.net Pin
OmegaCD1-May-06 16:06
OmegaCD1-May-06 16:06 
GeneralRe: How to create a photo album using Asp.net Pin
boombabyy4-May-06 7:30
boombabyy4-May-06 7:30 
AnswerRe: How to create a photo album using Asp.net Pin
J4amieC1-May-06 22:19
J4amieC1-May-06 22:19 
QuestionNested DataLists and SqlDataSources Pin
dtrickett1-May-06 8:07
dtrickett1-May-06 8:07 
AnswerRe: Nested DataLists and SqlDataSources Pin
minhpc_bk1-May-06 13:46
minhpc_bk1-May-06 13:46 
GeneralRe: Nested DataLists and SqlDataSources Pin
dtrickett2-May-06 3:19
dtrickett2-May-06 3:19 
QuestionTreeView Component and XML string Pin
aliserdarilter1-May-06 6:06
aliserdarilter1-May-06 6:06 
AnswerRe: TreeView Component and XML string Pin
minhpc_bk1-May-06 13:46
minhpc_bk1-May-06 13:46 
GeneralRe: TreeView Component and XML string Pin
aliserdarilter1-May-06 22:40
aliserdarilter1-May-06 22:40 
AnswerRe: TreeView Component and XML string Pin
OmegaCD1-May-06 16:08
OmegaCD1-May-06 16:08 
GeneralRe: TreeView Component and XML string Pin
aliserdarilter1-May-06 22:41
aliserdarilter1-May-06 22:41 
Questionhelp need in asp german plz Pin
icsvoice1-May-06 5:32
icsvoice1-May-06 5:32 
AnswerRe: help need in asp german plz Pin
Guffa1-May-06 6:24
Guffa1-May-06 6:24 

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.