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

ASP.NET

 
AnswerRe: date query Pin
Sathesh Sakthivel22-Jul-07 19:36
Sathesh Sakthivel22-Jul-07 19:36 
GeneralRe: date query Pin
Sonia Gupta22-Jul-07 19:49
Sonia Gupta22-Jul-07 19:49 
AnswerRe: date query Pin
imranafsari22-Jul-07 19:44
imranafsari22-Jul-07 19:44 
GeneralRe: date query Pin
Sonia Gupta22-Jul-07 19:51
Sonia Gupta22-Jul-07 19:51 
GeneralRe: date query Pin
imranafsari22-Jul-07 20:27
imranafsari22-Jul-07 20:27 
GeneralRe: date query Pin
Amit.Amit.Amit...22-Jul-07 20:29
Amit.Amit.Amit...22-Jul-07 20:29 
GeneralRe: date query Pin
Sonia Gupta22-Jul-07 20:42
Sonia Gupta22-Jul-07 20:42 
Questionin my ide there is no form designer code?can u tell me how to do this? Pin
ademsandeepreddy22-Jul-07 18:41
ademsandeepreddy22-Jul-07 18:41 

<asp:gridview id="grd_details" runat="server" selectedrowstyle-backcolor="Blue" allowsorting="true" onsorting="grd_details_onsorting" autogeneratecolumns="false">
<columns>
<asp:boundfield datafield="au_id" headertext="authorid" sortexpression="au_id">
<asp:boundfield datafield="au_lname" headertext="first name" sortexpression="au_lname">
<asp:boundfield datafield="au_fname" headertext="lastname" sortexpression="au_fname">
<asp:buttonfield buttontype="Button" text="select">
<asp:templatefield>


<selectedrowstyle backcolor="Blue">



using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Data.SqlClient;

public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
SqlConnection con = new SqlConnection("Integrated Security=SSPI;Initial Catalog=pubs;server=IBM-9D721EFE7F7");
SqlDataAdapter da=new SqlDataAdapter("select au_id,au_lname,au_fname from authors",con);
DataSet ds=new DataSet();
da.Fill(ds);
grd_details.DataSource=ds;
grd_details.DataBind();
}
protected void grd_details_onsorting(object sender, System.Web.UI.WebControls.GridView e)
{
grd_details.Sorting = e.SortExpression;
}
}


in this code how to insert the delegate for onsort command.can any body tell me

AnswerRe: in my ide there is no form designer code?can u tell me how to do this? Pin
Christian Graus22-Jul-07 19:05
protectorChristian Graus22-Jul-07 19:05 
Questioncreating folder and uploading file Pin
hurrem22-Jul-07 18:38
hurrem22-Jul-07 18:38 
AnswerRe: creating folder and uploading file Pin
Amit.Amit.Amit...22-Jul-07 19:43
Amit.Amit.Amit...22-Jul-07 19:43 
GeneralRe: creating folder and uploading file Pin
hurrem22-Jul-07 21:02
hurrem22-Jul-07 21:02 
GeneralRe: creating folder and uploading file Pin
hurrem22-Jul-07 21:06
hurrem22-Jul-07 21:06 
QuestionDataset to XML to Menu ? Pin
Shaareable22-Jul-07 17:08
Shaareable22-Jul-07 17:08 
QuestionPage is not showing asp controls after Hosting Pin
Kurian_Kurian22-Jul-07 16:56
Kurian_Kurian22-Jul-07 16:56 
QuestionSingle sign on for application in different domain using different validation keys Pin
sandeep kumar pundhir22-Jul-07 16:18
sandeep kumar pundhir22-Jul-07 16:18 
Questionsend mail in asp.net Pin
mr.mohsen22-Jul-07 12:18
mr.mohsen22-Jul-07 12:18 
AnswerRe: send mail in asp.net Pin
Christian Graus22-Jul-07 12:38
protectorChristian Graus22-Jul-07 12:38 
GeneralRe: send mail in asp.net Pin
mr.mohsen22-Jul-07 12:55
mr.mohsen22-Jul-07 12:55 
GeneralRe: send mail in asp.net Pin
Christian Graus22-Jul-07 13:12
protectorChristian Graus22-Jul-07 13:12 
AnswerRe: send mail in asp.net Pin
Sandeep Kumar22-Jul-07 20:26
Sandeep Kumar22-Jul-07 20:26 
QuestionDropdownlist set without SelecteIndex Property... Pin
Amit Kumar G22-Jul-07 12:01
Amit Kumar G22-Jul-07 12:01 
AnswerRe: Dropdownlist set without SelecteIndex Property... Pin
Christian Graus22-Jul-07 12:08
protectorChristian Graus22-Jul-07 12:08 
AnswerRe: Dropdownlist set without SelecteIndex Property... Pin
mr.mohsen22-Jul-07 12:26
mr.mohsen22-Jul-07 12:26 
GeneralRe: Dropdownlist set without SelecteIndex Property... Pin
Amit Kumar G22-Jul-07 12:40
Amit Kumar G22-Jul-07 12:40 

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.