Click here to Skip to main content
15,894,896 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Questionhow to transfer data between pages with Hyperlink ? Pin
hdv2123-May-07 22:18
hdv2123-May-07 22:18 
AnswerRe: how to transfer data between pages with Hyperlink ? Pin
Chetan Ranpariya3-May-07 22:28
Chetan Ranpariya3-May-07 22:28 
AnswerRe: how to transfer data between pages with Hyperlink ? Pin
Arun.Immanuel3-May-07 22:30
Arun.Immanuel3-May-07 22:30 
GeneralRe: how to transfer data between pages with Hyperlink ? Pin
hdv2124-May-07 0:03
hdv2124-May-07 0:03 
GeneralRe: how to transfer data between pages with Hyperlink ? Pin
Arun.Immanuel4-May-07 1:05
Arun.Immanuel4-May-07 1:05 
Questionusing difference between the two methods in code-behind Pin
surya3kiran3-May-07 22:00
surya3kiran3-May-07 22:00 
AnswerRe: using difference between the two methods in code-behind Pin
Sandeep Akhare3-May-07 22:15
Sandeep Akhare3-May-07 22:15 
Questiondoubt about ds.Tables[0].DefaultView Pin
saravanan053-May-07 21:45
saravanan053-May-07 21:45 
SqlConnection myConnection =
new SqlConnection(connstring );
SqlDataAdapter myAdapter =
new SqlDataAdapter(
"SELECT ProductID, ProductName, QuantityPerUnit, UnitPrice FROM Products",
myConnection);
//Fill the DataSet
DataSet ds = new DataSet();
myAdapter.Fill(ds,"Products");
//DataBind the Repeater
// MyRepeater.DataSource = ds.Tables["Products"].DefaultView;
// MyRepeater.DataBind();

// Populate the repeater control with the Items DataSet
PagedDataSource objPds = new PagedDataSource();
objPds.DataSource = ds.Tables[0].DefaultView;
objPds.AllowPaging = true;
objPds.PageSize =10;
objPds.CurrentPageIndex = CurrentPage;

lblCurrentPage.Text = "Page: " + (CurrentPage + 1).ToString() + " of "
+ objPds.PageCount.ToString();

// Disable Prev or Next buttons if necessary
cmdPrev.Enabled = !objPds.IsFirstPage;
cmdNext.Enabled = !objPds.IsLastPage;

MyRepeater.DataSource=objPds;
MyRepeater.DataBind();

this is my code what is the use of( ds.Tables[0].DefaultView)this;

can u explain me??



regards
saravananCry | :((
AnswerRe: doubt about ds.Tables[0].DefaultView Pin
Spunky Coder3-May-07 22:40
Spunky Coder3-May-07 22:40 
AnswerRe: doubt about ds.Tables[0].DefaultView Pin
rujuc#3-May-07 22:46
rujuc#3-May-07 22:46 
Questionjavascript visiblity and hidden Pin
yesu prakash3-May-07 21:23
yesu prakash3-May-07 21:23 
AnswerRe: javascript visiblity and hidden Pin
Sandeep Akhare3-May-07 21:32
Sandeep Akhare3-May-07 21:32 
AnswerRe: javascript visiblity and hidden Pin
Sandeep Kumar3-May-07 22:21
Sandeep Kumar3-May-07 22:21 
Questiononline exam Pin
yesu prakash3-May-07 20:45
yesu prakash3-May-07 20:45 
AnswerRe: online exam Pin
rujuc#3-May-07 20:57
rujuc#3-May-07 20:57 
QuestionRemember Username and Password Pin
Socheat.Net3-May-07 20:42
Socheat.Net3-May-07 20:42 
AnswerRe: Remember Username and Password Pin
Chetan Ranpariya3-May-07 20:55
Chetan Ranpariya3-May-07 20:55 
GeneralRe: Remember Username and Password Pin
Socheat.Net3-May-07 21:26
Socheat.Net3-May-07 21:26 
JokeRe: Remember Username and Password Pin
Sandeep Akhare3-May-07 20:56
Sandeep Akhare3-May-07 20:56 
GeneralRe: Remember Username and Password Pin
Socheat.Net3-May-07 21:21
Socheat.Net3-May-07 21:21 
GeneralRe: Remember Username and Password Pin
Sandeep Akhare3-May-07 21:47
Sandeep Akhare3-May-07 21:47 
GeneralRe: Remember Username and Password Pin
Socheat.Net3-May-07 22:47
Socheat.Net3-May-07 22:47 
AnswerRe: Remember Username and Password Pin
rujuc#3-May-07 21:04
rujuc#3-May-07 21:04 
AnswerRe: Remember Username and Password Pin
Sathesh Sakthivel3-May-07 21:05
Sathesh Sakthivel3-May-07 21:05 
GeneralRe: Remember Username and Password Pin
Socheat.Net3-May-07 21:20
Socheat.Net3-May-07 21:20 

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.