Click here to Skip to main content
15,912,756 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionSharepoint Pin
vimalkumarsinghal22-Nov-09 5:22
vimalkumarsinghal22-Nov-09 5:22 
AnswerRe: Sharepoint Pin
Abhishek Sur22-Nov-09 5:24
professionalAbhishek Sur22-Nov-09 5:24 
Questionhow to programatically click on LINK Pin
Muhammad Nauman Yousuf22-Nov-09 4:23
Muhammad Nauman Yousuf22-Nov-09 4:23 
AnswerRe: how to programatically click on LINK Pin
N a v a n e e t h22-Nov-09 4:25
N a v a n e e t h22-Nov-09 4:25 
GeneralRe: how to programatically click on LINK Pin
Muhammad Nauman Yousuf22-Nov-09 4:36
Muhammad Nauman Yousuf22-Nov-09 4:36 
AnswerRe: how to programatically click on LINK Pin
Muhammad Nauman Yousuf22-Nov-09 20:22
Muhammad Nauman Yousuf22-Nov-09 20:22 
QuestionUnable to Bind Vlaues to GridView Control.... Pin
Anil Kumar.Arvapalli22-Nov-09 2:13
Anil Kumar.Arvapalli22-Nov-09 2:13 
AnswerRe: Unable to Bind Vlaues to GridView Control.... Pin
N a v a n e e t h22-Nov-09 3:48
N a v a n e e t h22-Nov-09 3:48 
Pardhu2 wrote:
nable to bind values to Grid Control.


What do you mean by that? Getting any errors? Are you closing the connection before assigning to GridView? Reader requires connection to be active. Also it is good to wrap the connection, command and reader in using block. It ensures resources are released properly.
using(SqlConnection con = new SqlConnection(DB.ConnectionString))
using(SqlCommand cmd = new SqlCommand("Select * from FB Employees where Empid=101 ",con)) {
     con.Open();
     using(SqlDataReader reader = cmd.ExecuteReader()){          
          GridView1.DataSource = reader;
          GridView1.DataBind();
     }
}
The above code is likely to work. Smile | :)

Best wishes,
Navaneeth

AnswerRe: Unable to Bind Vlaues to GridView Control.... Pin
Amit Patel198522-Nov-09 19:08
Amit Patel198522-Nov-09 19:08 
AnswerRe: Unable to Bind Vlaues to GridView Control.... Pin
April Fans24-Nov-09 0:50
April Fans24-Nov-09 0:50 
AnswerRe: Unable to Bind Vlaues to GridView Control.... Pin
April Fans24-Nov-09 0:58
April Fans24-Nov-09 0:58 
QuestionShare me the ideas how i apprach the below Pin
Rameez Raja21-Nov-09 23:59
Rameez Raja21-Nov-09 23:59 
AnswerRe: Share me the ideas how i apprach the below Pin
Abhijit Jana22-Nov-09 0:12
professionalAbhijit Jana22-Nov-09 0:12 
GeneralRe: Share me the ideas how i apprach the below Pin
Rameez Raja22-Nov-09 0:23
Rameez Raja22-Nov-09 0:23 
QuestionIam stuck in the below task of validation Pin
Rameez Raja21-Nov-09 23:58
Rameez Raja21-Nov-09 23:58 
AnswerRe: Iam stuck in the below task of validation Pin
Abhishek Sur22-Nov-09 9:59
professionalAbhishek Sur22-Nov-09 9:59 
Questionadd textbox to image Pin
mehrnoosh21-Nov-09 18:31
mehrnoosh21-Nov-09 18:31 
AnswerRe: add textbox to image Pin
saini arun21-Nov-09 19:52
saini arun21-Nov-09 19:52 
GeneralRe: add textbox to image Pin
mehrnoosh21-Nov-09 20:21
mehrnoosh21-Nov-09 20:21 
AnswerRe: add textbox to image Pin
Abhijit Jana21-Nov-09 19:54
professionalAbhijit Jana21-Nov-09 19:54 
AnswerRe: add textbox to image Pin
April Fans24-Nov-09 0:56
April Fans24-Nov-09 0:56 
GeneralRe: add textbox to image Pin
mehrnoosh24-Nov-09 21:43
mehrnoosh24-Nov-09 21:43 
QuestionMaxlength property in Textbox does not work Pin
nour12321-Nov-09 4:15
nour12321-Nov-09 4:15 
AnswerRe: Maxlength property in Textbox does not work Pin
Abhishek Sur21-Nov-09 5:49
professionalAbhishek Sur21-Nov-09 5:49 
GeneralRe: Maxlength property in Textbox does not work Pin
nour12321-Nov-09 23:08
nour12321-Nov-09 23:08 

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.