Click here to Skip to main content
15,907,281 members
Home / Discussions / C#
   

C#

 
Questionusing serial port with vista??? Pin
Mir_As3-Jul-07 21:38
Mir_As3-Jul-07 21:38 
Questionpassing data Pin
Bong M.3-Jul-07 21:27
Bong M.3-Jul-07 21:27 
AnswerRe: passing data Pin
JacquesDP3-Jul-07 22:18
JacquesDP3-Jul-07 22:18 
AnswerRe: passing data Pin
wasife4-Jul-07 0:04
wasife4-Jul-07 0:04 
AnswerRe: passing data Pin
JeffPClark4-Jul-07 8:33
JeffPClark4-Jul-07 8:33 
QuestionGridview error Pin
kankeyan3-Jul-07 21:18
kankeyan3-Jul-07 21:18 
AnswerRe: Gridview error Pin
Vikram A Punathambekar3-Jul-07 22:09
Vikram A Punathambekar3-Jul-07 22:09 
GeneralHere is the code Pin
kankeyan3-Jul-07 22:19
kankeyan3-Jul-07 22:19 
protected void Page_PreRender(Object o, EventArgs e)
{
if (IsPostBack.Equals(false))
{
calFrom.SelectedDate = System.DateTime.Today;
calTo.SelectedDate = System.DateTime.Today;
}
}

protected void calFrom_SelectionChanged(object sender, EventArgs e)
{
blnCallFrom = true;
}
protected void calTo_SelectionChanged(object sender, EventArgs e)
{
blnCallTo = true;

}

protected void btnExcel_Click(object sender, EventArgs e)
{
// Set the content type to Excel
Response.ContentType = "application/vnd.ms-excel";
//Turn off the view state
this.EnableViewState = false;
//Remove the charset from the Content-Type header
Response.Charset = String.Empty;
Response.AddHeader("content-disposition", "attachment; filename=" + calFrom.SelectedDate.ToString("YYYYMMdd") + ".xls");
value is not posted in the calfrom date too

System.IO.StringWriter myTextWriter =new System.IO.StringWriter();
System.Web.UI.HtmlTextWriter myHtmlTextWriter = new System.Web.UI.HtmlTextWriter(myTextWriter);
grdReport.RenderControl(myHtmlTextWriter);
error is coming here


//grdReport.RenderControl(myHtmlTextWriter);
//Write the HTML to the browser
Response.Write(myTextWriter.ToString());
//End the response
Response.End();
}
}

kankeyan
GeneralRe: Here is the code Pin
Vikram A Punathambekar3-Jul-07 23:23
Vikram A Punathambekar3-Jul-07 23:23 
AnswerRe: Gridview error Pin
_AK_3-Jul-07 23:09
_AK_3-Jul-07 23:09 
QuestionDelete a string from a string array. Pin
Praveen0293-Jul-07 21:14
Praveen0293-Jul-07 21:14 
AnswerRe: Delete a string from a string array. Pin
Giorgi Dalakishvili3-Jul-07 21:26
mentorGiorgi Dalakishvili3-Jul-07 21:26 
AnswerRe: Delete a string from a string array. Pin
V.3-Jul-07 21:27
professionalV.3-Jul-07 21:27 
AnswerRe: Delete a string from a string array. Pin
Martin#3-Jul-07 21:36
Martin#3-Jul-07 21:36 
GeneralRe: Delete a string from a string array. Pin
Giorgi Dalakishvili3-Jul-07 21:51
mentorGiorgi Dalakishvili3-Jul-07 21:51 
GeneralRe: Delete a string from a string array. Pin
Martin#3-Jul-07 22:01
Martin#3-Jul-07 22:01 
GeneralRe: Delete a string from a string array. Pin
Praveen0293-Jul-07 22:01
Praveen0293-Jul-07 22:01 
GeneralRe: Delete a string from a string array. Pin
Martin#4-Jul-07 5:47
Martin#4-Jul-07 5:47 
AnswerRe: Delete a string from a string array. Pin
mav.northwind3-Jul-07 22:03
mav.northwind3-Jul-07 22:03 
QuestionProblem with Creating a New Project of Compact FrameWrok Pin
MehmetFurkan3-Jul-07 20:49
MehmetFurkan3-Jul-07 20:49 
Questionresize 2d array Pin
Sapan Roy3-Jul-07 20:41
Sapan Roy3-Jul-07 20:41 
AnswerRe: resize 2d array Pin
Martin#3-Jul-07 20:51
Martin#3-Jul-07 20:51 
Questionrun c# application on solaris Pin
cool833-Jul-07 20:32
cool833-Jul-07 20:32 
AnswerRe: run c# application on solaris Pin
Michael Sync3-Jul-07 20:39
Michael Sync3-Jul-07 20:39 
AnswerRe: run c# application on solaris Pin
Vasudevan Deepak Kumar3-Jul-07 22:02
Vasudevan Deepak Kumar3-Jul-07 22:02 

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.