Click here to Skip to main content
15,922,145 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: HOW CAN I ACCESS THE BUTTON CONTROL FROM ASPX IN ASPX.CS? Pin
Albert8330-Dec-07 18:43
Albert8330-Dec-07 18:43 
GeneralRe: HOW CAN I ACCESS THE BUTTON CONTROL FROM ASPX IN ASPX.CS? Pin
Albert8330-Dec-07 18:45
Albert8330-Dec-07 18:45 
QuestionHow to use SSRS ? Pin
mehrdadc4830-Dec-07 6:00
mehrdadc4830-Dec-07 6:00 
AnswerRe: How to use SSRS ? Pin
Michael Sync30-Dec-07 6:40
Michael Sync30-Dec-07 6:40 
GeneralReading files from server and displaying links Pin
CodeBase2530-Dec-07 5:08
CodeBase2530-Dec-07 5:08 
GeneralRe: New Project, please advise!! Pin
Michael Sync30-Dec-07 6:35
Michael Sync30-Dec-07 6:35 
GeneralRe: New Project, please advise!! Pin
CodeBase2530-Dec-07 12:21
CodeBase2530-Dec-07 12:21 
QuestionObjectDatasource Edit/Delete problem Pin
arefkarimi29-Dec-07 23:47
arefkarimi29-Dec-07 23:47 
Hi,
I want to work with some data with an ObjectDataSource. The data comes from a DB table which have two fields: ID (primary key) and Title.

I have created such a class:

[System.ComponentModel.ObjectData(true)]
class Biz
{
public Biz() {}

[System.ComponentModel.ObjectMethod(Select)]
public DataSet FetchAll() { ... }

[System.ComponentModel.ObjectMethod(Update)]
public void Update(int Serial, string Title) {...}

}

I have assigned this class to my ObjectDatasource. And I show the records with a Gridview control. Since ID field is PK it must not be update. so I make Id field Invisible or Readonly. Then when updating the records, only Title field is edditable. Afterwards, in Update method, Serial parameter is always 0 (becasue Id was not editted) and only Title field has a correct value. I need Serial field's value to update the Table because more than one person may have the same name. I have written a code in GridView's RowUpdating event and bypassed the Biz.Update method but I am quite sure it is a wrong job.

Please let me know what to do to make the ObjectDataSource update records by itself.

Thanks

Aref

QuestionProblem updating database Pin
David Kalkwarf29-Dec-07 12:11
David Kalkwarf29-Dec-07 12:11 
GeneralRe: Problem updating database Pin
Michael Sync30-Dec-07 5:40
Michael Sync30-Dec-07 5:40 
GeneralUnable to work with IIS server Pin
Roney29-Dec-07 7:21
Roney29-Dec-07 7:21 
GeneralRe: Unable to work with IIS server Pin
Michael Sync29-Dec-07 7:51
Michael Sync29-Dec-07 7:51 
QuestionLocal CSS returns a 404? Pin
Mustafa Ismail Mustafa29-Dec-07 6:43
Mustafa Ismail Mustafa29-Dec-07 6:43 
AnswerRe: Local CSS returns a 404? Pin
Paul Conrad29-Dec-07 7:09
professionalPaul Conrad29-Dec-07 7:09 
GeneralRe: Local CSS returns a 404? Pin
Mustafa Ismail Mustafa29-Dec-07 9:32
Mustafa Ismail Mustafa29-Dec-07 9:32 
AnswerRe: Local CSS returns a 404? Pin
Michael Sync29-Dec-07 7:53
Michael Sync29-Dec-07 7:53 
GeneraljQuery & ASP.NET Pin
Mustafa Ismail Mustafa29-Dec-07 3:46
Mustafa Ismail Mustafa29-Dec-07 3:46 
GeneralRe: jQuery & ASP.NET Pin
Michael Sync29-Dec-07 7:56
Michael Sync29-Dec-07 7:56 
GeneralRe: jQuery & ASP.NET Pin
Mustafa Ismail Mustafa29-Dec-07 9:37
Mustafa Ismail Mustafa29-Dec-07 9:37 
GeneralRe: jQuery & ASP.NET Pin
Michael Sync29-Dec-07 17:35
Michael Sync29-Dec-07 17:35 
GeneralRe: jQuery & ASP.NET Pin
Mustafa Ismail Mustafa29-Dec-07 18:57
Mustafa Ismail Mustafa29-Dec-07 18:57 
Questionhow i can hide a row in a grid view Pin
jagan12329-Dec-07 2:54
jagan12329-Dec-07 2:54 
AnswerRe: how i can hide a row in a grid view Pin
rahul.net1129-Dec-07 3:39
rahul.net1129-Dec-07 3:39 
Generalconfig error---------- Pin
smileschandu29-Dec-07 0:59
smileschandu29-Dec-07 0:59 
AnswerRe: config error---------- Pin
Guffa29-Dec-07 3:34
Guffa29-Dec-07 3:34 

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.