Click here to Skip to main content
15,892,643 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: upload image to sql server Pin
Michael Bookatz29-Oct-08 1:52
Michael Bookatz29-Oct-08 1:52 
QuestionWhich windows vista version is better for .net developer Pin
VenkataRamana.Gali28-Oct-08 23:02
VenkataRamana.Gali28-Oct-08 23:02 
AnswerRe: Which windows vista version is better for .net developer Pin
eyeseetee28-Oct-08 23:13
eyeseetee28-Oct-08 23:13 
GeneralRe: Which windows vista version is better for .net developer Pin
VenkataRamana.Gali28-Oct-08 23:16
VenkataRamana.Gali28-Oct-08 23:16 
GeneralRe: Which windows vista version is better for .net developer Pin
eyeseetee28-Oct-08 23:30
eyeseetee28-Oct-08 23:30 
AnswerRe: Which windows vista version is better for .net developer Pin
#realJSOP29-Oct-08 0:56
mve#realJSOP29-Oct-08 0:56 
AnswerRe: Which windows vista version is better for .net developer Pin
Paul Conrad29-Oct-08 10:34
professionalPaul Conrad29-Oct-08 10:34 
QuestionError while exporting data to Excel sheet Pin
Satish - Developer28-Oct-08 22:35
Satish - Developer28-Oct-08 22:35 
Hi, when i am exporting gridview data to excel file, i am facing following error.. can any one give idea..why it so like this?

"Control 'GVExcel' of type 'GridView' must be placed inside a form tag with runat=server."

My code is as follows
mypage.aspx

<body> <form id="form1" runat="server"> <div> <asp:GridView ID="GVExcel" runat="server"> </asp:GridView> <asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="Button" /></div> </form></body>


Mypage.aspx.cs

string connstr = "Data Source=ORG33;Initial Catalog=MYDatabase;User ID=sa;Password=miller";
SqlConnection sqlcon = new SqlConnection(connstr);
sqlcon.Open();

string cmdcnt = "Select top 10 * from ORG_TBL_INDSEEDFirst";
SqlDataAdapter sqlda = new SqlDataAdapter(cmdcnt, sqlcon);
sqlda.Fill(ds);
dt = ds.Tables[0];

GVExcel.DataSource = dt;
GVExcel.DataBind();

StringWriter stringWrite = new StringWriter();
HtmlTextWriter htmlWrite = new HtmlTextWriter(stringWrite);
GVExcel.RenderControl(htmlWrite); ---Getting Error here

sqlcon.Close();

G. Satish

AnswerRe: Error while exporting data to Excel sheet Pin
meeram39528-Oct-08 23:09
meeram39528-Oct-08 23:09 
Questionproblem in check box [modified] Pin
susan_15161528-Oct-08 21:27
susan_15161528-Oct-08 21:27 
AnswerRe: problem in check box Pin
Christian Graus28-Oct-08 22:17
protectorChristian Graus28-Oct-08 22:17 
GeneralRe: problem in check box Pin
susan_15161528-Oct-08 22:40
susan_15161528-Oct-08 22:40 
AnswerRe: problem in check box Pin
Guffa28-Oct-08 22:54
Guffa28-Oct-08 22:54 
GeneralRe: problem in check box Pin
susan_15161528-Oct-08 22:59
susan_15161528-Oct-08 22:59 
GeneralRe: problem in check box Pin
Guffa29-Oct-08 9:17
Guffa29-Oct-08 9:17 
GeneralRe: problem in check box Pin
susan_15161529-Oct-08 20:01
susan_15161529-Oct-08 20:01 
GeneralRe: problem in check box Pin
Guffa29-Oct-08 21:15
Guffa29-Oct-08 21:15 
GeneralRe: problem in check box Pin
susan_1516152-Nov-08 17:33
susan_1516152-Nov-08 17:33 
AnswerRe: problem in check box Pin
eyeseetee28-Oct-08 23:11
eyeseetee28-Oct-08 23:11 
AnswerRe: problem in check box Pin
sharath0729-Oct-08 1:21
sharath0729-Oct-08 1:21 
GeneralRe: problem in check box Pin
susan_15161529-Oct-08 19:58
susan_15161529-Oct-08 19:58 
Questioncategory tree like structure Pin
S.Dhanasekaran28-Oct-08 21:14
S.Dhanasekaran28-Oct-08 21:14 
Questionhow to issue STARTTLS command Pin
raghvendrapanda28-Oct-08 21:04
raghvendrapanda28-Oct-08 21:04 
AnswerRe: mail sending problem Pin
GDMFSOB28-Oct-08 21:12
GDMFSOB28-Oct-08 21:12 
GeneralRe: mail sending problem Pin
raghvendrapanda28-Oct-08 21:26
raghvendrapanda28-Oct-08 21: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.