Click here to Skip to main content
15,906,463 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Sending Mail Problem. Pin
Christian Graus27-Jun-07 10:55
protectorChristian Graus27-Jun-07 10:55 
GeneralRe: Sending Mail Problem. Pin
deepaks327-Jun-07 18:02
deepaks327-Jun-07 18:02 
QuestionHelp needed in performing validation Pin
gayathri_it200527-Jun-07 7:39
gayathri_it200527-Jun-07 7:39 
AnswerRe: Help needed in performing validation Pin
Not Active27-Jun-07 8:21
mentorNot Active27-Jun-07 8:21 
QuestionHttpWebRequest Pin
dekart_roo27-Jun-07 5:51
dekart_roo27-Jun-07 5:51 
QuestionDelete row from GridView which is bound to DataTable [modified] Pin
kjosh27-Jun-07 5:15
kjosh27-Jun-07 5:15 
AnswerRe: Delete row from GridView which is bound to DataTable Pin
Urs Enzler27-Jun-07 8:34
Urs Enzler27-Jun-07 8:34 
QuestionValues in array Pin
afreshpulse27-Jun-07 4:45
afreshpulse27-Jun-07 4:45 
I have a site where a user can input the first part of their post code to see if deliveries can be made to their area. Deliveries are only available in one area, so I use the following code:

	Private Sub btnSubmit_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnSubmit.Click<br />
<br />
		Dim al As New ArrayList()<br />
		Dim i As Integer<br />
<br />
		For i = 1 To 32<br />
			al.Add("BS" & i)<br />
		Next i<br />
<br />
		Dim postCode = Me.txtPostCode.Text<br />
<br />
		Dim idx As Integer = al.BinarySearch(postCode, New CaseInsensitiveComparer())<br />
<br />
		If idx > 0 - 1 Then<br />
			Me.litMsg.Text = "We can collect from you"<br />
		Else<br />
			Me.litMsg.Text = "We do not collect from your area"<br />
		End If<br />
<br />
	End Sub


This finds the first postcode, but none of the others. Is there something wrong in the code? Should I just use a database table and pull values from there instead?

Damian
AnswerRe: Values in array Pin
RichardGrimmer27-Jun-07 5:45
RichardGrimmer27-Jun-07 5:45 
GeneralRe: Values in array Pin
afreshpulse27-Jun-07 6:24
afreshpulse27-Jun-07 6:24 
GeneralRe: Values in array Pin
Urs Enzler27-Jun-07 8:40
Urs Enzler27-Jun-07 8:40 
GeneralRe: Values in array Pin
RichardGrimmer27-Jun-07 9:38
RichardGrimmer27-Jun-07 9:38 
QuestionNo. of hites facility in my website Pin
pathak7827-Jun-07 4:42
pathak7827-Jun-07 4:42 
AnswerRe: No. of hites facility in my website Pin
Christian Graus27-Jun-07 11:00
protectorChristian Graus27-Jun-07 11:00 
AnswerRe: No. of hites facility in my website Pin
Vasudevan Deepak Kumar27-Jun-07 21:40
Vasudevan Deepak Kumar27-Jun-07 21:40 
QuestionProperty value after PostBack of UserControl Pin
ZeedijkMike27-Jun-07 4:41
ZeedijkMike27-Jun-07 4:41 
AnswerRe: Property value after PostBack of UserControl Pin
ZeedijkMike27-Jun-07 4:43
ZeedijkMike27-Jun-07 4:43 
AnswerRe: Property value after PostBack of UserControl Pin
SHatchard27-Jun-07 5:28
SHatchard27-Jun-07 5:28 
GeneralRe: Property value after PostBack of UserControl Pin
ZeedijkMike27-Jun-07 5:56
ZeedijkMike27-Jun-07 5:56 
AnswerRe: Property value after PostBack of UserControl Pin
Urs Enzler27-Jun-07 8:44
Urs Enzler27-Jun-07 8:44 
QuestionRetrieving Property value after PostBack of UserControl Pin
ZeedijkMike27-Jun-07 4:39
ZeedijkMike27-Jun-07 4:39 
AnswerRe: Retrieving Property value after PostBack of UserControl Pin
Venkatesh Mookkan27-Jun-07 17:38
Venkatesh Mookkan27-Jun-07 17:38 
QuestionSQL Query works intermittently... Pin
TenmanS1427-Jun-07 4:39
TenmanS1427-Jun-07 4:39 
AnswerRe: SQL Query works intermittently... Pin
Colin Angus Mackay27-Jun-07 5:12
Colin Angus Mackay27-Jun-07 5:12 
GeneralRe: SQL Query works intermittently... Pin
TenmanS1427-Jun-07 5:26
TenmanS1427-Jun-07 5: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.