Click here to Skip to main content
15,913,090 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionRe: asp controls are not displaying in the page Pin
Venkatesh Mookkan15-Jul-07 17:54
Venkatesh Mookkan15-Jul-07 17:54 
AnswerRe: asp controls are not displaying in the page Pin
Fayu15-Jul-07 17:55
Fayu15-Jul-07 17:55 
QuestionSqlDataSource Refresh Problem Pin
Hyland Computer Systems15-Jul-07 12:39
Hyland Computer Systems15-Jul-07 12:39 
AnswerRe: SqlDataSource Refresh Problem Pin
Fayu15-Jul-07 17:56
Fayu15-Jul-07 17:56 
GeneralRe: SqlDataSource Refresh Problem Pin
Hyland Computer Systems16-Jul-07 5:10
Hyland Computer Systems16-Jul-07 5:10 
QuestionClassic ASP to C# ASP.net Pin
deantheking15-Jul-07 8:44
deantheking15-Jul-07 8:44 
AnswerRe: Classic ASP to C# ASP.net Pin
Pete O'Hanlon15-Jul-07 9:58
mvePete O'Hanlon15-Jul-07 9:58 
AnswerRe: Classic ASP to C# ASP.net Pin
Guffa15-Jul-07 15:03
Guffa15-Jul-07 15:03 
Ouch. First let's clean up that VBScript code:

Function FindField(ByVal fieldName, postResponse)
   fieldName = fieldName & "="
   items = Split(postResponse, vbCrLf)
   For idx = 0 to UBound(items)
      If InStr(item, fieldName) = 1 Then
         FindField = Mid(item, Len(fieldName) + 1)
         Exit For
      End If
   Next
End Function

Now it's easy to translate:

public string FindField(string fieldName, string postResponse) {
   fieldName += "=";
   foreach (string item in Regex.Split(postResponse, "\r\n")) {
      if (item.StartsWith(fieldName)) {
         return item.SubString(fieldName.Length);
      }
   }
}


---
single minded; short sighted; long gone;

Questionediting selected rows in a gridview Pin
sudheer babu kodavati15-Jul-07 1:28
sudheer babu kodavati15-Jul-07 1:28 
AnswerRe: editing selected rows in a gridview Pin
Manas Bhardwaj15-Jul-07 5:46
professionalManas Bhardwaj15-Jul-07 5:46 
GeneralRe: editing selected rows in a gridview Pin
Paul Conrad15-Jul-07 5:59
professionalPaul Conrad15-Jul-07 5:59 
QuestionWord Document Headers & Footers in .NET [modified] Pin
Nitin Varambally15-Jul-07 1:24
Nitin Varambally15-Jul-07 1:24 
Questionexports the dataset to excel using asp.net 2005 (vb.net) Pin
Sonia Gupta15-Jul-07 0:04
Sonia Gupta15-Jul-07 0:04 
AnswerRe: exports the dataset to excel using asp.net 2005 (vb.net) Pin
gauthee15-Jul-07 19:10
gauthee15-Jul-07 19:10 
Questionneed yr help for SqlDataSource1.Select method Pin
hurrem14-Jul-07 23:40
hurrem14-Jul-07 23:40 
AnswerRe: need yr help for SqlDataSource1.Select method Pin
gauthee15-Jul-07 18:46
gauthee15-Jul-07 18:46 
GeneralRe: need yr help for SqlDataSource1.Select method Pin
hurrem15-Jul-07 21:58
hurrem15-Jul-07 21:58 
AnswerRe: need yr help for SqlDataSource1.Select method Pin
arslanjatt15-Jul-07 18:52
arslanjatt15-Jul-07 18:52 
QuestionCode analysis [modified] Pin
ASPnoob14-Jul-07 20:37
ASPnoob14-Jul-07 20:37 
AnswerRe: Code analysis Pin
Guffa15-Jul-07 3:46
Guffa15-Jul-07 3:46 
AnswerRe: Code analysis Pin
Paul Conrad15-Jul-07 4:59
professionalPaul Conrad15-Jul-07 4:59 
AnswerRe: Code analysis Pin
Mohammed Hameed15-Jul-07 8:21
professionalMohammed Hameed15-Jul-07 8:21 
QuestionControls are not displaying after hosting the Page Pin
Kurian_Kurian14-Jul-07 14:23
Kurian_Kurian14-Jul-07 14:23 
AnswerRe: Controls are not displaying after hosting the Page Pin
Manas Bhardwaj14-Jul-07 22:36
professionalManas Bhardwaj14-Jul-07 22:36 
AnswerRe: Controls are not displaying after hosting the Page Pin
Guffa14-Jul-07 23:02
Guffa14-Jul-07 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.