Click here to Skip to main content
15,897,273 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Redirect from https to http Pin
Prakash_Mishra28-Oct-07 22:10
Prakash_Mishra28-Oct-07 22:10 
AnswerRe: Redirect from https to http Pin
Ghazi H. Wadi28-Oct-07 21:19
Ghazi H. Wadi28-Oct-07 21:19 
GeneralRe: Redirect from https to http Pin
Prakash_Mishra28-Oct-07 22:09
Prakash_Mishra28-Oct-07 22:09 
Questiondatagrid doubt Pin
saravanan0528-Oct-07 20:49
saravanan0528-Oct-07 20:49 
AnswerRe: datagrid doubt Pin
soni uma28-Oct-07 20:58
soni uma28-Oct-07 20:58 
AnswerRe: datagrid doubt Pin
N a v a n e e t h28-Oct-07 20:58
N a v a n e e t h28-Oct-07 20:58 
AnswerRe: datagrid doubt Pin
Lijo Rajan28-Oct-07 20:59
Lijo Rajan28-Oct-07 20:59 
GeneralRe: datagrid doubt Pin
saravanan0528-Oct-07 21:15
saravanan0528-Oct-07 21:15 
hi friends

this is my code:
<asp:datagrid id="DataGrid1" runat="server"
="" height="210px" width="276px" backcolor="White" bordercolor="White" gridlines="None">



<columns>



<asp:templatecolumn>
<itemtemplate>





<asp:templatecolumn headertext="">
<itemtemplate>

<%# DataBinder.Eval(Container.DataItem,"comment")%>'











string ConStr = ConfigurationManager.AppSettings["ConnectionString"].ToString();
SqlConnection conn = new SqlConnection(ConStr);
conn.Open();

//SqlDataAdapter adap = new SqlDataAdapter("select rowid,Fromname,Toname,Comments,Imagename,mailid,Type,sflag,Datess from tbl_bday ",con);
SqlDataAdapter adap = new SqlDataAdapter("select image,comment from tbl_registration", conn);
DataSet ds = new DataSet();
adap.Fill(ds);


//DataGrid1.Columns[1].ItemStyle.Width = 10;
DataGrid1.Columns[0].ItemStyle.Width= 12;



DataGrid1.DataSource = ds;

DataGrid1.DataBind();


i tried but not working

can u help me?

regards
saravanan

Known Is Drop.Unknown Is Ocean

GeneralRe: datagrid doubt Pin
Lijo Rajan28-Oct-07 21:25
Lijo Rajan28-Oct-07 21:25 
QuestionDatabase support for a website Pin
niting8528-Oct-07 20:44
niting8528-Oct-07 20:44 
AnswerRe: Database support for a website Pin
John-ph28-Oct-07 21:46
John-ph28-Oct-07 21:46 
AnswerRe: Database support for a website Pin
Braulio Dez29-Oct-07 4:22
Braulio Dez29-Oct-07 4:22 
QuestionCombo Box A-Z Validation Pin
kunal_gct28-Oct-07 20:33
kunal_gct28-Oct-07 20:33 
QuestionMail sending problem Pin
Lijo Rajan28-Oct-07 20:25
Lijo Rajan28-Oct-07 20:25 
AnswerRe: Mail sending problem Pin
Ghazi H. Wadi28-Oct-07 21:07
Ghazi H. Wadi28-Oct-07 21:07 
GeneralRe: Mail sending problem Pin
Lijo Rajan28-Oct-07 21:20
Lijo Rajan28-Oct-07 21:20 
GeneralRe: Mail sending problem Pin
Braulio Dez29-Oct-07 4:26
Braulio Dez29-Oct-07 4:26 
GeneralRe: Mail sending problem Pin
Ghazi H. Wadi29-Oct-07 10:43
Ghazi H. Wadi29-Oct-07 10:43 
QuestionRegarding Layers Pin
Satish_S28-Oct-07 19:53
Satish_S28-Oct-07 19:53 
AnswerRe: Regarding Layers Pin
N a v a n e e t h28-Oct-07 20:21
N a v a n e e t h28-Oct-07 20:21 
GeneralRe: Regarding Layers Pin
Satish_S28-Oct-07 20:41
Satish_S28-Oct-07 20:41 
GeneralRe: Regarding Layers Pin
N a v a n e e t h28-Oct-07 20:56
N a v a n e e t h28-Oct-07 20:56 
GeneralRe: Regarding Layers Pin
Satish_S28-Oct-07 21:09
Satish_S28-Oct-07 21:09 
GeneralRe: Regarding Layers Pin
N a v a n e e t h28-Oct-07 21:12
N a v a n e e t h28-Oct-07 21:12 
GeneralRe: Regarding Layers Pin
Satish_S29-Oct-07 2:26
Satish_S29-Oct-07 2:26 

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.