Click here to Skip to main content
15,887,214 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: How to convert DRM protected audio files to unprotected audio files Pin
Balakrish6-Mar-07 23:34
Balakrish6-Mar-07 23:34 
QuestionLogout and back button problem Pin
Vipin.d5-Mar-07 19:30
Vipin.d5-Mar-07 19:30 
AnswerRe: Logout and back button problem Pin
Vsree5-Mar-07 20:16
Vsree5-Mar-07 20:16 
AnswerRe: Logout and back button problem Pin
badgrs5-Mar-07 23:01
badgrs5-Mar-07 23:01 
AnswerRe: Logout and back button problem Pin
Vasudevan Deepak Kumar6-Mar-07 9:29
Vasudevan Deepak Kumar6-Mar-07 9:29 
QuestionDTS Pin
kirthikirthi5-Mar-07 19:03
kirthikirthi5-Mar-07 19:03 
AnswerRe: DTS Pin
Vasudevan Deepak Kumar6-Mar-07 9:30
Vasudevan Deepak Kumar6-Mar-07 9:30 
QuestionGrid View - Insert Row - ASP.NET 2.0 Pin
Rajaraman Soundararajan5-Mar-07 18:32
Rajaraman Soundararajan5-Mar-07 18:32 
I am trying to implement Insert, Edit, Delete feature in Grid View in ASP.NET 2.0 using GridView & ObjectDataSource.

'*********The GridView*******
<asp:GridView ID="GridViewCategories" Runat="server" DataSourceID="GoalCategorySource" DataKeyNames="CategoryID" OnRowCommand="GridViewCategories_RowCommand" ShowFooter="true">

'*****ObjectDataSource*******
The Grid View is bound to an ObjectDataSource below, where
GetCategories, UpdateCategory, DeleteCategory are methods of a .NET assembly, BizRules.GoalCategories

<asp:ObjectDataSource ID="GoalCategorySource" runat="server" TypeName="BizRules.GoalCategories" DataObjectTypeName="GoalCategoryEntity"
SelectMethod="GetCategories" UpdateMethod="UpdateCategory" DeleteMethod="DeleteCategory"
OnInserting="GoalCategorySource_Inserting" OnDeleting="GoalCategorySource_Deleting" OnUpdating="GoalCategorySource_Updating">

<InsertParameters>
<asp:Parameter Name="InsertCategoryName" Type="String">
<InsertParameters>
<UpdateParameters>
asp:Parameter Name="UpdateCategoryName" Type="String"
<UpdateParameters>

I was able to catch the Command Events from the GridView using GridViewCategories_RowCommand by using


protected void GridViewCategories_RowCommand(object sender, GridViewCommandEventArgs e)
{
switch (e.CommandName)
{
case "EditUpdate" :
Response.Write("Edit Update");
break;
case "EditCancel":
Response.Write("Edit Cancel");
break;
case "InsertNew":
Response.Write("Insert New");
break;
case "InsertUpdate":
Response.Write("Insert Update");
break;
case "InsertCancel":
Response.Write("Insert Cancel");
break;
case "Delete":
Response.Write("Delete");
break;

}

'*********Section of GridView***************8
<asp:TemplateField ShowHeader="false">
<<itemtemplate&gt;>
<<asp:linkbutton id="lbEdit" runat="server" causesvalidation="False" commandname="Edit" text="Edit" &gt;="">
<<asp:linkbutton id="lbDelete" runat="server" causesvalidation="False" commandname="Delete" text="Delete" &gt;="">
<
<
Questionhow to put a form in a form < need help!! Pin
neodeaths5-Mar-07 18:32
neodeaths5-Mar-07 18:32 
AnswerRe: how to put a form in a form < need help!! Pin
badgrs5-Mar-07 23:03
badgrs5-Mar-07 23:03 
GeneralRe: how to put a form in a form < need help!! Pin
neodeaths6-Mar-07 15:07
neodeaths6-Mar-07 15:07 
AnswerRe: how to put a form in a form < need help!! Pin
Vasudevan Deepak Kumar6-Mar-07 9:30
Vasudevan Deepak Kumar6-Mar-07 9:30 
GeneralRe: how to put a form in a form < need help!! Pin
neodeaths6-Mar-07 15:02
neodeaths6-Mar-07 15:02 
GeneralRe: how to put a form in a form < need help!! Pin
neodeaths8-Mar-07 14:22
neodeaths8-Mar-07 14:22 
QuestionImage upload problem Pin
dasumohan5-Mar-07 17:50
dasumohan5-Mar-07 17:50 
AnswerRe: Image upload problem Pin
Vasudevan Deepak Kumar6-Mar-07 9:31
Vasudevan Deepak Kumar6-Mar-07 9:31 
GeneralRe: Image upload problem Pin
dasumohan6-Mar-07 9:46
dasumohan6-Mar-07 9:46 
QuestionDBO access to ASPNET_ tables Pin
dasumohan5-Mar-07 17:41
dasumohan5-Mar-07 17:41 
Questionserial communication Pin
wnaiza5-Mar-07 17:36
wnaiza5-Mar-07 17:36 
AnswerRe: serial communication Pin
badgrs5-Mar-07 23:21
badgrs5-Mar-07 23:21 
GeneralRe: serial communication Pin
wnaiza6-Mar-07 15:50
wnaiza6-Mar-07 15:50 
QuestionError in remoting urgent help Pin
nikhil12345-Mar-07 17:24
nikhil12345-Mar-07 17:24 
Questioncall up current page using response.redirect or server.transfer Pin
dasumohan5-Mar-07 17:20
dasumohan5-Mar-07 17:20 
AnswerRe: call up current page using response.redirect or server.transfer Pin
Spunky Coder5-Mar-07 21:37
Spunky Coder5-Mar-07 21:37 
Question"Not all code paths return a value" - Error Message Pin
harni.a5-Mar-07 14:15
harni.a5-Mar-07 14: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.