Click here to Skip to main content
15,740,865 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Questionproblem in gridview Pin
Amit Spadez29-Mar-10 3:09
professionalAmit Spadez29-Mar-10 3:09 
AnswerRe: problem in gridview Pin
Brij29-Mar-10 3:22
mentorBrij29-Mar-10 3:22 
GeneralRe: problem in gridview Pin
PSK_29-Mar-10 3:27
PSK_29-Mar-10 3:27 
GeneralRe: problem in gridview Pin
Amit Spadez29-Mar-10 19:04
professionalAmit Spadez29-Mar-10 19:04 
AnswerRe: problem in gridview Pin
PSK_29-Mar-10 3:29
PSK_29-Mar-10 3:29 
GeneralRe: problem in gridview Pin
Amit Spadez29-Mar-10 19:03
professionalAmit Spadez29-Mar-10 19:03 
AnswerRe: problem in gridview Pin
Abhijit Jana29-Mar-10 6:23
professionalAbhijit Jana29-Mar-10 6:23 
GeneralRe: problem in gridview Pin
Amit Spadez29-Mar-10 19:01
professionalAmit Spadez29-Mar-10 19:01 
I'm sending you the code.In this, when we refresh the page, "gvQA.Rows.Count" shows 0 rows.


Here's code:

protected void Page_Load(object sender, EventArgs e)
{
if (Page.IsPostBack == false)
{
gvQA.DataSource = null;
gvQA.DataBind();
BindQues();
}
}
#region Methods
public void BindQues()
{
try
{
if (Session["BindData"] == null)
{
ds = new DataSet();
ds = objGet.GetData(Request["JT"].ToString());
litMsg.Text = "Online Test";
if (ds != null)
{
if (ds.Tables[0].Rows.Count > 0)
{
gvQA.Visible = true;
gvQA.DataSource = ds;
gvQA.DataBind();
Session["BindData"] = ds;
}
else
{
gvQA.Visible = false;
}
}
}
else
{
ds =(DataSet)Session["BindData"];
gvQA.Visible = true;
gvQA.DataSource = ds;
gvQA.DataBind();
}
}
catch (Exception ex)
{
Response.Write(ex.Message);
}
}
Questionimplement error handling in webproject and logging errrors Pin
Hemant Thaker29-Mar-10 3:05
Hemant Thaker29-Mar-10 3:05 
AnswerRe: implement error handling in webproject and logging errrors Pin
PSK_29-Mar-10 3:25
PSK_29-Mar-10 3:25 
AnswerRe: implement error handling in webproject and logging errrors Pin
Abhijit Jana29-Mar-10 17:34
professionalAbhijit Jana29-Mar-10 17:34 
Questionadd splitbutton in asp.net page Pin
Abdul Rahman Hamidy29-Mar-10 1:28
Abdul Rahman Hamidy29-Mar-10 1:28 
QuestionAccess another computer through C#.net Pin
BK Komal28-Mar-10 23:03
BK Komal28-Mar-10 23:03 
AnswerI need urgent help. Pin
Not Active29-Mar-10 1:43
mentorNot Active29-Mar-10 1:43 
Questionviewstate of dynamic text boxs Pin
test-0928-Mar-10 22:39
test-0928-Mar-10 22:39 
AnswerRe: viewstate of dynamic text boxs Pin
Arun Jacob28-Mar-10 22:57
Arun Jacob28-Mar-10 22:57 
GeneralRe: viewstate of dynamic text boxs Pin
test-0928-Mar-10 23:03
test-0928-Mar-10 23:03 
GeneralRe: viewstate of dynamic text boxs Pin
Arun Jacob28-Mar-10 23:05
Arun Jacob28-Mar-10 23:05 
Questionhow to insert empty values from text boxes to database Pin
developerit28-Mar-10 22:13
developerit28-Mar-10 22:13 
AnswerRe: how to insert empty values from text boxes to database Pin
Vimalsoft(Pty) Ltd28-Mar-10 22:15
professionalVimalsoft(Pty) Ltd28-Mar-10 22:15 
AnswerRe: how to insert empty values from text boxes to database Pin
Amit Patel198528-Mar-10 22:16
Amit Patel198528-Mar-10 22:16 
AnswerRe: how to insert empty values from text boxes to database Pin
R. Giskard Reventlov28-Mar-10 22:27
R. Giskard Reventlov28-Mar-10 22:27 
AnswerRe: how to insert empty values from text boxes to database Pin
Arun Jacob28-Mar-10 23:10
Arun Jacob28-Mar-10 23:10 
GeneralRe: how to insert empty values from text boxes to database Pin
developerit29-Mar-10 1:49
developerit29-Mar-10 1:49 
GeneralRe: how to insert empty values from text boxes to database Pin
Sneha Bisht29-Mar-10 2:04
Sneha Bisht29-Mar-10 2:04 

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.