Click here to Skip to main content
15,888,733 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Help with a Logic Pin
Vimalsoft(Pty) Ltd15-Mar-09 20:50
professionalVimalsoft(Pty) Ltd15-Mar-09 20:50 
QuestionWeb Service 400 Error Pin
Expert Coming12-Mar-09 20:30
Expert Coming12-Mar-09 20:30 
AnswerRe: Web Service 400 Error Pin
Abhijit Jana12-Mar-09 20:43
professionalAbhijit Jana12-Mar-09 20:43 
GeneralRe: Web Service 400 Error Pin
Expert Coming13-Mar-09 14:15
Expert Coming13-Mar-09 14:15 
GeneralRe: Web Service 400 Error Pin
Expert Coming13-Mar-09 14:31
Expert Coming13-Mar-09 14:31 
QuestionDatagrid problem Pin
rakeshs31212-Mar-09 19:23
rakeshs31212-Mar-09 19:23 
AnswerRe: Datagrid problem Pin
Abhijit Jana12-Mar-09 19:33
professionalAbhijit Jana12-Mar-09 19:33 
GeneralRe: Datagrid problem Pin
rakeshs31212-Mar-09 21:35
rakeshs31212-Mar-09 21:35 
AnswerRe: Datagrid problem Pin
kumar_k50812-Mar-09 19:42
kumar_k50812-Mar-09 19:42 
GeneralRe: Datagrid problem Pin
rakeshs31212-Mar-09 21:34
rakeshs31212-Mar-09 21:34 
Questioncan i use a class created by xsd. Pin
prasadbuddhika12-Mar-09 19:20
prasadbuddhika12-Mar-09 19:20 
AnswerRe: can i use a class created by xsd. Pin
Christian Graus12-Mar-09 22:32
protectorChristian Graus12-Mar-09 22:32 
GeneralRe: can i use a class created by xsd. Pin
prasadbuddhika13-Mar-09 0:19
prasadbuddhika13-Mar-09 0:19 
GeneralRe: can i use a class created by xsd. Pin
prasadbuddhika13-Mar-09 1:09
prasadbuddhika13-Mar-09 1:09 
GeneralRe: can i use a class created by xsd. Pin
Ashfield13-Mar-09 2:25
Ashfield13-Mar-09 2:25 
QuestionHow to apply stylesheet class in EMail HTML format Pin
Deepml12-Mar-09 19:17
Deepml12-Mar-09 19:17 
AnswerRe: How to apply stylesheet class in EMail HTML format Pin
Abhijit Jana12-Mar-09 19:32
professionalAbhijit Jana12-Mar-09 19:32 
GeneralRe: How to apply stylesheet class in EMail HTML format Pin
Deepml12-Mar-09 19:45
Deepml12-Mar-09 19:45 
GeneralRe: How to apply stylesheet class in EMail HTML format Pin
Abhijit Jana12-Mar-09 20:24
professionalAbhijit Jana12-Mar-09 20:24 
GeneralRe: How to apply stylesheet class in EMail HTML format Pin
Deepml12-Mar-09 20:37
Deepml12-Mar-09 20:37 
GeneralRe: How to apply stylesheet class in EMail HTML format Pin
Abhijit Jana12-Mar-09 20:39
professionalAbhijit Jana12-Mar-09 20:39 
QuestionDataGrid to Excel Pin
rakeshs31212-Mar-09 18:34
rakeshs31212-Mar-09 18:34 
AnswerRe: DataGrid to Excel Pin
kumar_k50812-Mar-09 20:15
kumar_k50812-Mar-09 20:15 
GeneralRe: DataGrid to Excel Pin
rakeshs31212-Mar-09 21:43
rakeshs31212-Mar-09 21:43 
Hai,

I am using c# ,and no idea about vb. If some other code or idea is there, pls share.In my code the foreach loop is searching for the whole recods.What should i change there?
foreach (DataRow drow in datatable.Rows)
				{
					for (j = 0; j < datatable.Columns.Count; j++)
					{
						
						//if(Headers.Length > k)
						//if(drow[j].ToString() != "" && drow[j].ToString().Length<255)
						if(Headers.Length > k)
						{
							if(datatable.Columns[j].ColumnName == Headers[k].ToString())
							{
								if(drow[j].ToString() != "" )//&& drow[j].ToString().Length<255)
								{
									strRow += drow[j].ToString() + "','";
									
								}
								else
								{
									//							if(datatable.Columns[j].DataType.FullName == "System.String" || datatable.Columns[j].DataType.FullName == "System.DateTime")
									strRow +="-'"+",'";
									//							else
									//								strRow +="0"+",";

								}
								k++;
							}
							//k++;
						}
					}

Thanksss
AnswerRe: DataGrid to Excel [modified] Pin
kumar_k50812-Mar-09 23:02
kumar_k50812-Mar-09 23: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.