Click here to Skip to main content
15,891,033 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionCreate a Floating Form Pin
mehrnoosh28-Jul-09 22:08
mehrnoosh28-Jul-09 22:08 
AnswerRe: Create a Floating Form Pin
Christian Graus28-Jul-09 22:14
protectorChristian Graus28-Jul-09 22:14 
GeneralRe: Create a Floating Form Pin
mehrnoosh28-Jul-09 22:50
mehrnoosh28-Jul-09 22:50 
AnswerRe: Create a Floating Form Pin
Abhijit Jana28-Jul-09 22:57
professionalAbhijit Jana28-Jul-09 22:57 
Questionperform custom paging in gridview on a button click Pin
smiley_jatin28-Jul-09 22:07
smiley_jatin28-Jul-09 22:07 
AnswerRe: perform custom paging in gridview on a button click Pin
Christian Graus28-Jul-09 22:15
protectorChristian Graus28-Jul-09 22:15 
GeneralRe: perform custom paging in gridview on a button click Pin
smiley_jatin29-Jul-09 0:30
smiley_jatin29-Jul-09 0:30 
QuestionCustom Paging in GridView Pin
.NET- India 28-Jul-09 21:55
.NET- India 28-Jul-09 21:55 
Hello Friends,

I'm implementing custom paging in my GridView. Paging numbering(in-built paging numbering) does not display but it brings the records are queried . Below giving my code please let me know what changes i should make in my code. But if i use in-built paging(normal paging) then that's working fine......

protected void GridView1_PageIndexChanging(object sender, GridViewPageEventArgs e)
{
GridView1.PageIndex = e.NewPageIndex;
lblMsg.Text = e.NewPageIndex.ToString();
int pageNumber=Convert.ToInt32(e.NewPageIndex);
int recordPerPage= 4;
int startRecord = (pageNumber) * recordPerPage + 1;
int maxRecord = startRecord + recordPerPage;

bindGridView1(startRecord,maxRecord);
}

public void bindGridView1(int startRecord,int maxRecord)
{
string connectionString = "server=.;database=Auto_New;uid=sa;pwd=;";

using(SqlConnection mCon = new SqlConnection(connectionString))
{
SqlCommand mDataCom = new SqlCommand();

mDataCom.Connection = mCon;

mDataCom.CommandType = CommandType.StoredProcedure;
mDataCom.CommandText = "SP_Select1";
mDataCom.Parameters.AddWithValue("@startRecord", startRecord);
mDataCom.Parameters.AddWithValue("@maxRecord", maxRecord);

SqlDataAdapter da = new SqlDataAdapter(mDataCom);
DataSet ds = new DataSet();
da.Fill(ds);

GridView1.DataSource = ds.Tables[0];
GridView1.DataBind();
}
}
Questionfixed headers Pin
indian14328-Jul-09 21:50
indian14328-Jul-09 21:50 
AnswerRe: fixed headers Pin
Ravindra Bisen28-Jul-09 23:25
Ravindra Bisen28-Jul-09 23:25 
GeneralRe: fixed headers Pin
indian14328-Jul-09 23:31
indian14328-Jul-09 23:31 
AnswerRe: fixed headers Pin
Ravindra Bisen28-Jul-09 23:54
Ravindra Bisen28-Jul-09 23:54 
GeneralRe: fixed headers Pin
indian14329-Jul-09 1:13
indian14329-Jul-09 1:13 
GeneralRe: fixed headers Pin
indian14329-Jul-09 2:59
indian14329-Jul-09 2:59 
QuestionReg: cache concept Pin
Somnath Sen28-Jul-09 21:45
Somnath Sen28-Jul-09 21:45 
AnswerRe: Reg: cache concept Pin
Abhishek Sur28-Jul-09 21:53
professionalAbhishek Sur28-Jul-09 21:53 
Questionrounded rectangle Pin
Ersan Ercek28-Jul-09 21:43
Ersan Ercek28-Jul-09 21:43 
AnswerRe: rounded rectangle Pin
Christian Graus28-Jul-09 21:44
protectorChristian Graus28-Jul-09 21:44 
QuestionI'm making a bulletin board. Pin
lsh486love28-Jul-09 21:34
lsh486love28-Jul-09 21:34 
AnswerRe: I'm making a bulletin board. Pin
Christian Graus28-Jul-09 21:38
protectorChristian Graus28-Jul-09 21:38 
AnswerRe: I'm making a bulletin board. Pin
Abhishek Sur28-Jul-09 21:50
professionalAbhishek Sur28-Jul-09 21:50 
QuestionLINQ to Dataset Conversion in asp.net with c# Pin
damubooks28-Jul-09 21:33
damubooks28-Jul-09 21:33 
AnswerRe: LINQ to Dataset Conversion in asp.net with c# Pin
talhaahmed20-Apr-10 2:33
talhaahmed20-Apr-10 2:33 
QuestionMusic player in javascript Pin
yesu prakash28-Jul-09 21:25
yesu prakash28-Jul-09 21:25 
AnswerRe: Music player in javascript Pin
Christian Graus28-Jul-09 21:36
protectorChristian Graus28-Jul-09 21:36 

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.