Click here to Skip to main content
15,900,378 members
Home / Discussions / Web Development
   

Web Development

 
QuestionDisplaying Barcode at client side Pin
meetbinu20037-Aug-06 21:58
meetbinu20037-Aug-06 21:58 
AnswerRe: Displaying Barcode at client side Pin
led mike8-Aug-06 11:16
led mike8-Aug-06 11:16 
QuestionCookies not saving Pin
Gregorb4u7-Aug-06 14:59
Gregorb4u7-Aug-06 14:59 
AnswerRe: Cookies not saving Pin
Guffa8-Aug-06 12:33
Guffa8-Aug-06 12:33 
QuestionEditing Prompt Window of Javascript Pin
Mazdak7-Aug-06 8:40
Mazdak7-Aug-06 8:40 
AnswerRe: Editing Prompt Window of Javascript Pin
Guffa7-Aug-06 9:56
Guffa7-Aug-06 9:56 
Question[Message Deleted] Pin
DJGuo7-Aug-06 4:37
DJGuo7-Aug-06 4:37 
AnswerRe: Hown to write cookies in VB.NET? Pin
Guffa7-Aug-06 5:23
Guffa7-Aug-06 5:23 
If you have something to contribute, write an article instead of posting a bunch of undocumented code in the forum.

I looked a bit at your code, though, and I have some comments:

:: Your variable names are not very descriptive.

:: Your code should be indented: It's quite hard to follow as it is.

:: Why do you duplicate the code in Page_Load and btnLogin_Click?

:: Request.Browser.Cookies doesn't tell if the browser accepts cookies, it only tells if the browser is capable of accepting cookies.

:: Why on earth do you store the connection string in a session variable?

:: Your code is wide open for an SQL injection attack.

:: Why are you assigning string values to boolean variables, and why are you comparing boolean variables to strings?

:: You have Else If statements that checks the exact inverse of the If statement. That adds only confusion over a plain Else statement.


---
b { font-weight: normal; }

AnswerRe: Hown to write cookies in VB.NET? Pin
Guffa7-Aug-06 12:38
Guffa7-Aug-06 12:38 
AnswerRe: Hown to write cookies in VB.NET? Pin
Guffa7-Aug-06 18:59
Guffa7-Aug-06 18:59 
GeneralRe: Hown to write cookies in VB.NET? Pin
Guffa8-Aug-06 8:00
Guffa8-Aug-06 8:00 
AnswerRe: Hown to write cookies in VB.NET? Pin
Mike Ellison7-Aug-06 6:38
Mike Ellison7-Aug-06 6:38 
Questioncross-frame scripting Pin
axwiec7-Aug-06 4:25
axwiec7-Aug-06 4:25 
QuestionHow do I programatically access ftp server with ssl Pin
stellasworkinc6-Aug-06 22:42
stellasworkinc6-Aug-06 22:42 
Questionnext button Pin
LovelyHelp6-Aug-06 19:31
LovelyHelp6-Aug-06 19:31 
AnswerRe: next button Pin
Guffa7-Aug-06 9:59
Guffa7-Aug-06 9:59 
AnswerRe: next button Pin
manowj11-Aug-06 20:43
manowj11-Aug-06 20:43 
QuestionGet HTML from element on different page Pin
eggie56-Aug-06 14:57
eggie56-Aug-06 14:57 
AnswerRe: Get HTML from element on different page [modified] Pin
manowj11-Aug-06 20:35
manowj11-Aug-06 20:35 
GeneralRe: Get HTML from element on different page Pin
Mavaddat Javid24-Oct-09 16:01
Mavaddat Javid24-Oct-09 16:01 
Questionplz help me Pin
elias sarband6-Aug-06 5:38
elias sarband6-Aug-06 5:38 
AnswerRe: plz help me Pin
PlayByTheRules7-Aug-06 1:51
PlayByTheRules7-Aug-06 1:51 
QuestionSpaces in HTML [modified] Pin
orentuil6-Aug-06 3:41
orentuil6-Aug-06 3:41 
AnswerRe: Spaces in HTML Pin
Guffa6-Aug-06 6:05
Guffa6-Aug-06 6:05 
Questioncalendar in web page Pin
Paul Ferris5-Aug-06 9:46
Paul Ferris5-Aug-06 9:46 

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.