Click here to Skip to main content
15,898,134 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: How to select a range of text using java script ? Pin
Sherin Iranimose7-Jul-08 4:21
Sherin Iranimose7-Jul-08 4:21 
GeneralRe: How to select a range of text using java script ? Pin
Abhijit Jana7-Jul-08 4:45
professionalAbhijit Jana7-Jul-08 4:45 
GeneralRe: How to select a range of text using java script ? Pin
Sherin Iranimose7-Jul-08 5:05
Sherin Iranimose7-Jul-08 5:05 
QuestionCreate login page using asp.net C#? Pin
katelva7-Jul-08 1:07
katelva7-Jul-08 1:07 
AnswerRe: Create login page using asp.net C#? Pin
Domenic Denicola7-Jul-08 7:19
Domenic Denicola7-Jul-08 7:19 
QuestionCannot call multiple web service methods using ASP.NET AJAX at the same time Pin
Domenic Denicola7-Jul-08 1:06
Domenic Denicola7-Jul-08 1:06 
Questiongridview Problems Pin
Bharani_Ram7-Jul-08 0:11
Bharani_Ram7-Jul-08 0:11 
AnswerRe: gridview Problems Pin
Gayani Devapriya7-Jul-08 3:08
Gayani Devapriya7-Jul-08 3:08 
Hi,

Yes I think it’s possible.
Just a quick tip...I feel you better get the data to a DataTable and bind it directly.

For example:

Fill the data to a datatable.
string sConnection = ConfigurationManager.ConnectionStrings["TestDBConnectionString"].ConnectionString;
SqlConnection Con = new SqlConnection(sConnection);
SqlCommand cmd = new SqlCommand();
cmd.Connection = Con;
cmd.CommandType = CommandType.StoredProcedure;
cmd.CommandText = "Employee_Select";
SqlDataAdapter adp = new SqlDataAdapter(cmd);
DataTable dtValues = new DataTable();
adp.Fill(dtValues);

Bind it to gridview.
GridView1.DataSource = dtValues;
GridView1.DataBind();

In the .aspx page
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="false">
<Columns>
<asp:BoundField DataField="EmployeeNumber" HeaderText="Emp. No:" />
<asp:BoundField DataField="Name" HeaderText="Name" />
</Columns>
</asp:GridView>

Hope it solves.
Thx,
Gayani
GeneralRe: gridview Problems Pin
Bharani_Ram7-Jul-08 18:21
Bharani_Ram7-Jul-08 18:21 
Questionproblem with sessions in common methods class Pin
eyeseetee6-Jul-08 23:43
eyeseetee6-Jul-08 23:43 
AnswerRe: problem with sessions in common methods class Pin
Imran Khan Pathan6-Jul-08 23:55
Imran Khan Pathan6-Jul-08 23:55 
GeneralRe: problem with sessions in common methods class Pin
eyeseetee6-Jul-08 23:57
eyeseetee6-Jul-08 23:57 
GeneralRe: problem with sessions in common methods class Pin
N a v a n e e t h7-Jul-08 0:32
N a v a n e e t h7-Jul-08 0:32 
GeneralRe: problem with sessions in common methods class Pin
eyeseetee7-Jul-08 0:52
eyeseetee7-Jul-08 0:52 
Questionhow to disable link button ? Pin
kathyani6-Jul-08 23:40
kathyani6-Jul-08 23:40 
AnswerRe: how to disable link button ? Pin
eyeseetee6-Jul-08 23:44
eyeseetee6-Jul-08 23:44 
GeneralRe: how to disable link button ? Pin
kathyani6-Jul-08 23:55
kathyani6-Jul-08 23:55 
GeneralRe: how to disable link button ? Pin
eyeseetee6-Jul-08 23:58
eyeseetee6-Jul-08 23:58 
GeneralRe: how to disable link button ? Pin
kathyani7-Jul-08 0:02
kathyani7-Jul-08 0:02 
GeneralRe: how to disable link button ? Pin
Sherin Iranimose7-Jul-08 0:03
Sherin Iranimose7-Jul-08 0:03 
GeneralRe: how to disable link button ? Pin
kathyani7-Jul-08 0:07
kathyani7-Jul-08 0:07 
GeneralRe: how to disable link button ? Pin
Sherin Iranimose7-Jul-08 0:11
Sherin Iranimose7-Jul-08 0:11 
GeneralRe: how to disable link button ? Pin
kathyani7-Jul-08 0:14
kathyani7-Jul-08 0:14 
GeneralRe: how to disable link button ? Pin
Sherin Iranimose7-Jul-08 0:21
Sherin Iranimose7-Jul-08 0:21 
GeneralRe: how to disable link button ? Pin
kathyani7-Jul-08 0:25
kathyani7-Jul-08 0:25 

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.