Click here to Skip to main content
15,908,254 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionJavaScipt variables Pin
jonhbt26-Mar-08 22:15
jonhbt26-Mar-08 22:15 
GeneralRe: JavaScipt variables Pin
Christian Graus26-Mar-08 22:24
protectorChristian Graus26-Mar-08 22:24 
GeneralRe: JavaScipt variables Pin
CooperWu26-Mar-08 23:00
CooperWu26-Mar-08 23:00 
QuestionUpdate panel and button [modified] Pin
Soumini Ramakrishnan26-Mar-08 21:40
Soumini Ramakrishnan26-Mar-08 21:40 
GeneralRe: Update panel and button Pin
Christian Graus26-Mar-08 22:01
protectorChristian Graus26-Mar-08 22:01 
GeneralRe: Update panel and button Pin
eyeseetee26-Mar-08 22:45
eyeseetee26-Mar-08 22:45 
GeneralRe: Update panel and button Pin
Sandeep Akhare26-Mar-08 22:58
Sandeep Akhare26-Mar-08 22:58 
GeneralRe: Update panel and button Pin
Soumini Ramakrishnan26-Mar-08 23:22
Soumini Ramakrishnan26-Mar-08 23:22 
<asp:datalist id="MyDataList" runat="server" datakeyfield="Photoid" onitemcommand="MyDataList_ItemCommand" ondeletecommand="MyDataList_DeleteCommand" repeatcolumns="3" repeatdirection="Horizontal" height="307px" width="547px" bordercolor="Gray" borderstyle="Solid" borderwidth="1px">
<itemtemplate>
<asp:imagebutton id="ImgBtn1" runat="server" width="80px" height="80px" imageurl=""><#databinder.eval(container.dataitem, )%="">'/>

<asp:updatepanel id="UpdatePanel1" runat="server">
<contenttemplate>
<asp:label id="title" runat="server" text="">]]>' Font-Names ="Verdana" Font-Size ="8pt" >
<asp:textbox id="TextBox1" runat="server" font-names="Verdana" font-size="8pt" visible="false" text="">]]>' >

<asp:button id="EditBtn" runat="server" text="Edit" font-names="Verdana" font-size="8pt" commandname="Edit">
<asp:button id="Button1" runat="server" text="Delete" font-names="Verdana" font-size="8pt" commandname="Delete">






The above is the aspx page. And in code behind page

protected void MyDataList_ItemCommand(object source, DataListCommandEventArgs e)
{
string id = e.CommandName.ToString ();
if (e.CommandName == "Delete")
{
DBLibrary ob = new DBLibrary();
ob.path1 = Server.MapPath("Database/BlogSiteData.mdb");
string uid = Session["user"].ToString();
string photoid = MyDataList.DataKeys[(int)(e.Item.ItemIndex)].ToString();
System.IO.File.Delete(Server.MapPath("Albums/" + uid + "/" + photoid + ".jpg"));
string sqldel = "Delete from Albums where Userid='"+uid+"' and Photoid=" + int.Parse(photoid) + " ";
ob.ExecuteNonQuery(sqldel);
BuildGrid();
}
}
GeneralRe: Update panel and button Pin
eyeseetee26-Mar-08 23:46
eyeseetee26-Mar-08 23:46 
GeneralRe: Update panel and button Pin
Sandeep Akhare26-Mar-08 23:47
Sandeep Akhare26-Mar-08 23:47 
Generallink Pin
trilokharry26-Mar-08 21:35
trilokharry26-Mar-08 21:35 
GeneralRe: link Pin
~V~26-Mar-08 21:52
~V~26-Mar-08 21:52 
GeneralAlert Function In asp.net Pin
~V~26-Mar-08 21:15
~V~26-Mar-08 21:15 
GeneralRe: Alert Function In asp.net Pin
rajanandal26-Mar-08 21:26
rajanandal26-Mar-08 21:26 
GeneralRe: Alert Function In asp.net Pin
~V~26-Mar-08 21:40
~V~26-Mar-08 21:40 
GeneralRe: Alert Function In asp.net Pin
rajanandal26-Mar-08 22:02
rajanandal26-Mar-08 22:02 
GeneralRe: Alert Function In asp.net Pin
~V~26-Mar-08 22:08
~V~26-Mar-08 22:08 
GeneralRe: Alert Function In asp.net Pin
Christian Graus26-Mar-08 22:04
protectorChristian Graus26-Mar-08 22:04 
GeneralRe: Alert Function In asp.net Pin
~V~26-Mar-08 22:11
~V~26-Mar-08 22:11 
GeneralRe: Alert Function In asp.net Pin
Christian Graus26-Mar-08 22:22
protectorChristian Graus26-Mar-08 22:22 
GeneralRe: Alert Function In asp.net Pin
~V~26-Mar-08 23:18
~V~26-Mar-08 23:18 
GeneralRe: Alert Function In asp.net PinPopular
Christian Graus26-Mar-08 23:45
protectorChristian Graus26-Mar-08 23:45 
GeneralRe: Alert Function In asp.net Pin
J4amieC27-Mar-08 0:17
J4amieC27-Mar-08 0:17 
GeneralRe: Alert Function In asp.net Pin
Christian Graus27-Mar-08 10:21
protectorChristian Graus27-Mar-08 10:21 
GeneralRe: Alert Function In asp.net Pin
~V~27-Mar-08 20:07
~V~27-Mar-08 20:07 

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.