Click here to Skip to main content
15,893,266 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionProblem in Deleting the file Pin
MudkiSekhon29-Jul-06 0:46
MudkiSekhon29-Jul-06 0:46 
AnswerRe: Problem in Deleting the file Pin
MHASSANF29-Jul-06 3:27
MHASSANF29-Jul-06 3:27 
AnswerRe: Problem in Deleting the file Pin
enjoycrack29-Jul-06 5:31
enjoycrack29-Jul-06 5:31 
GeneralRe: Problem in Deleting the file Pin
MudkiSekhon31-Jul-06 23:46
MudkiSekhon31-Jul-06 23:46 
GeneralRe: Problem in Deleting the file Pin
enjoycrack3-Aug-06 2:33
enjoycrack3-Aug-06 2:33 
Questionquerystring encrypt Pin
Zapss29-Jul-06 0:30
Zapss29-Jul-06 0:30 
AnswerRe: querystring encrypt Pin
enjoycrack29-Jul-06 5:46
enjoycrack29-Jul-06 5:46 
QuestionHow to avoid duplicate entries in DataTable. Pin
VenkataRamana.Gali28-Jul-06 23:22
VenkataRamana.Gali28-Jul-06 23:22 
Hi

i am using .NET 1.1.

I am populating some data in DataTable using StoredProcedure.

DataTable dt = new DataTable();
DataRow dr;
DataSet ds = GetDataFromSP();
for (int k=0;k{
dr = dt.NewRow();
dr[0] = int.Parse(ds.Tables[0].Rows[k]["ID"].ToString());
dr[1] = ds.Tables[0].Rows[k]["COL1"].ToString()
dr[2] = ds.Tables[0].Rows[k]["COL2"].ToString()
dt.Rows.Add(dr);
}
//Binding to Grid using dt.

In this DataTable(dt) with same primary key multiple rows are returning by SP.

i want to check DataTable weather with this primary key is there any dupliate entry. if entry exists in DataTable, avoid the adding into the dt.

how to do this?
any sounds appriciated. awaiting for response.



regards
GV Ramana

AnswerRe: How to avoid duplicate entries in DataTable. Pin
goyal manish30-Jul-06 21:09
goyal manish30-Jul-06 21:09 
QuestionHow can i set a button as accept button in asp.net Pin
alialikh28-Jul-06 23:15
alialikh28-Jul-06 23:15 
AnswerRe: How can i set a button as accept button in asp.net Pin
Jay_se29-Jul-06 0:26
Jay_se29-Jul-06 0:26 
Questionabout custom validation Pin
prabhu dot net28-Jul-06 22:57
prabhu dot net28-Jul-06 22:57 
AnswerRe: about custom validation Pin
Mike Ellison3-Aug-06 3:08
Mike Ellison3-Aug-06 3:08 
QuestionCustom right click menu options Pin
Fahad Wali28-Jul-06 22:48
Fahad Wali28-Jul-06 22:48 
AnswerRe: Custom right click menu options Pin
enjoycrack29-Jul-06 5:33
enjoycrack29-Jul-06 5:33 
QuestionRe: Custom right click menu options [modified] Pin
Fahad Wali1-Aug-06 21:53
Fahad Wali1-Aug-06 21:53 
AnswerRe: Custom right click menu options Pin
enjoycrack3-Aug-06 2:29
enjoycrack3-Aug-06 2:29 
Questionmouseover and ajax Pin
Tridip Bhattacharjee28-Jul-06 22:37
professionalTridip Bhattacharjee28-Jul-06 22:37 
QuestionReplace Method in ASP.Net Pin
aaraaayen28-Jul-06 21:54
aaraaayen28-Jul-06 21:54 
AnswerRe: Replace Method in ASP.Net Pin
MHASSANF28-Jul-06 22:06
MHASSANF28-Jul-06 22:06 
QuestionHow to read master detail data by XmlTextReader Pin
Tridip Bhattacharjee28-Jul-06 21:12
professionalTridip Bhattacharjee28-Jul-06 21:12 
Questiondownload Pin
rajmani28-Jul-06 21:02
rajmani28-Jul-06 21:02 
AnswerRe: download Pin
enjoycrack29-Jul-06 5:35
enjoycrack29-Jul-06 5:35 
QuestionPage.IsPostBack Pin
MHASSANF28-Jul-06 18:53
MHASSANF28-Jul-06 18:53 
AnswerRe: Page.IsPostBack Pin
postmaster@programmingknowledge.com28-Jul-06 19:55
postmaster@programmingknowledge.com28-Jul-06 19:55 

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.