Click here to Skip to main content
15,888,610 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: About Web Service Pin
N a v a n e e t h6-Jul-09 20:14
N a v a n e e t h6-Jul-09 20:14 
GeneralRe: About Web Service Pin
Deepak the Cool6-Jul-09 20:52
Deepak the Cool6-Jul-09 20:52 
Questionhow can i reset list box selected index after button click event in asp.net? Pin
anish27patel6-Jul-09 19:44
anish27patel6-Jul-09 19:44 
QuestionDeleting is not supported by data source 'SqlDataSource1' unless DeleteCommand is specified. Pin
haleemasher6-Jul-09 19:38
haleemasher6-Jul-09 19:38 
AnswerRe: Deleting is not supported by data source 'SqlDataSource1' unless DeleteCommand is specified. Pin
Abhijit Jana6-Jul-09 20:09
professionalAbhijit Jana6-Jul-09 20:09 
GeneralRe: Deleting is not supported by data source 'SqlDataSource1' unless DeleteCommand is specified. Pin
haleemasher6-Jul-09 20:33
haleemasher6-Jul-09 20:33 
GeneralRe: Deleting is not supported by data source 'SqlDataSource1' unless DeleteCommand is specified. Pin
J4amieC6-Jul-09 23:43
J4amieC6-Jul-09 23:43 
AnswerRe: Deleting is not supported by data source 'SqlDataSource1' unless DeleteCommand is specified. Pin
Licky Nguyen22-Jul-09 1:02
Licky Nguyen22-Jul-09 1:02 
Solution:

U should make a bit changes at:

<asp:LinkButton runat="server" ID="lnkDelete" CommandName="Delete" Text="Delete" > </asp:LinkButton>

*1st: don't use default CommandName="delete" , i choosed CommandName="xoa"

*2nd: use RowCommand event instead of Delete event
eg:
protected void GridView1_RowCommand(object sender, GridViewCommandEventArgs e)
{
try
{
switch (e.CommandName)
{
case "xoa":
(new Report()).DeleteBy(e.CommandArgument.ToString());
RefreshList();
break;
case "sua":
//Report _rpt = Report.GetReportById(e.CommandArgument.ToString());
break;
}
}
catch (System.Exception ex)
{
ShowWarningMessage(ex.Message);
}
}
-------END----
QuestionAnchror tag probelm Pin
indian1436-Jul-09 19:17
indian1436-Jul-09 19:17 
Questiondynamically added checkbox doesn't fire the event. Pin
prasadbuddhika6-Jul-09 19:06
prasadbuddhika6-Jul-09 19:06 
AnswerRe: dynamically added checkbox doesn't fire the event. Pin
N a v a n e e t h6-Jul-09 20:21
N a v a n e e t h6-Jul-09 20:21 
Questiondetect bluetooth device Pin
nithydurai6-Jul-09 19:04
nithydurai6-Jul-09 19:04 
AnswerRe: detect bluetooth device Pin
Abhijit Jana6-Jul-09 19:10
professionalAbhijit Jana6-Jul-09 19:10 
QuestionS/MIME Emails Pin
g00fyman6-Jul-09 18:37
g00fyman6-Jul-09 18:37 
QuestionIIS7 with ASP.NET + Response.OutputStream.Write does not work in IE7 and IE8 Pin
kent856-Jul-09 15:46
kent856-Jul-09 15:46 
Questionbuttonfield, onclick (change text) Pin
mark_me6-Jul-09 13:22
mark_me6-Jul-09 13:22 
Questionhelp upload file problem Pin
my30name6-Jul-09 11:43
my30name6-Jul-09 11:43 
Questionhow can I create custom dropdownlist ( inherited from standard dropdownlist) with 4 default items? Pin
mehran.asg6-Jul-09 8:38
mehran.asg6-Jul-09 8:38 
AnswerRe: how can I create custom dropdownlist ( inherited from standard dropdownlist) with 4 default items? Pin
Manas Bhardwaj6-Jul-09 10:23
professionalManas Bhardwaj6-Jul-09 10:23 
GeneralRe: how can I create custom dropdownlist ( inherited from standard dropdownlist) with 4 default items? Pin
mehran.asg6-Jul-09 19:08
mehran.asg6-Jul-09 19:08 
GeneralRe: how can I create custom dropdownlist ( inherited from standard dropdownlist) with 4 default items? Pin
mehran.asg6-Jul-09 19:09
mehran.asg6-Jul-09 19:09 
Questionwant some help on my website Pin
Abdulhafeezo6-Jul-09 7:27
Abdulhafeezo6-Jul-09 7:27 
AnswerRe: want some help on my website Pin
Sandeep Akhare6-Jul-09 8:04
Sandeep Akhare6-Jul-09 8:04 
JokeRe: want some help on my website Pin
Abhijit Jana6-Jul-09 8:21
professionalAbhijit Jana6-Jul-09 8:21 
AnswerRe: want some help on my website Pin
Manas Bhardwaj6-Jul-09 10:24
professionalManas Bhardwaj6-Jul-09 10: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.