Help in Visual Basic

jiaweiii

Senior Member
Joined
Sep 3, 2013
Messages
812
Reaction score
0
New here , So i need some help for my visual basic . Need to know the basic of visual basic . Till the point which teach about creating a website .
 

davidktw

Arch-Supremacy Member
Joined
Apr 15, 2010
Messages
13,550
Reaction score
1,302
New here , So i need some help for my visual basic . Need to know the basic of visual basic . Till the point which teach about creating a website .

You should be reading on ASP.NET this days. Visual Basic doesn't create websites. The scripts used in ASP are VB scripts. VB is not VB script though I am sure Microsoft does can be confusing when u mixed server side scripts + client side scripts together in dynamic web pages.
 

jiaweiii

Senior Member
Joined
Sep 3, 2013
Messages
812
Reaction score
0
You should be reading on ASP.NET this days. Visual Basic doesn't create websites. The scripts used in ASP are VB scripts. VB is not VB script though I am sure Microsoft does can be confusing when u mixed server side scripts + client side scripts together in dynamic web pages.

So what i should be reading on should be asp.net ? Ohokay any good webs for me to read up on ?
 

davidktw

Arch-Supremacy Member
Joined
Apr 15, 2010
Messages
13,550
Reaction score
1,302
I think by the time it arrives in singapore my project have probably ende haha .

No offence, but you do notice there is Kindle edition ? If you own any tablet, you should be able to buy one in minutes. If you prefer deadtree version, you can find A LOT of such particular genre of web development books in bookstore like Kinokuniya at Ngee Ann City.

If you prefer loaning one, I can bet with you, you can certainly find a very similar genre from different publisher in large National Libraries in Singapore. You can try the ones at TPY, CENTRAL or CLEMENTI mall.

Books on Web development on Java and .NET are so popular that you can find them almost anywhere.
 

jiaweiii

Senior Member
Joined
Sep 3, 2013
Messages
812
Reaction score
0
No offence, but you do notice there is Kindle edition ? If you own any tablet, you should be able to buy one in minutes. If you prefer deadtree version, you can find A LOT of such particular genre of web development books in bookstore like Kinokuniya at Ngee Ann City.

If you prefer loaning one, I can bet with you, you can certainly find a very similar genre from different publisher in large National Libraries in Singapore. You can try the ones at TPY, CENTRAL or CLEMENTI mall.

Books on Web development on Java and .NET are so popular that you can find them almost anywhere.
Okay will probably go find one and come back and ask question if i dont understand
 

ykgoh

Master Member
Joined
Jan 1, 2000
Messages
2,782
Reaction score
0
Just whack any ASP.NET books in your nearest public or regional library. More than enough for your beginner project.
 

jiaweiii

Senior Member
Joined
Sep 3, 2013
Messages
812
Reaction score
0
Need help . So in vb in login page i want my cancel button to like reset all field how do i code that
 
Last edited:

j_t_fusion

Supremacy Member
Joined
Jan 5, 2010
Messages
5,707
Reaction score
10
But my project thr stated only can do it by vb :/

ASP.NET web pages can use either VB or C# as their back end code.

maybe the project is trying to say that you cannot use C# as your back end?

better confirm with your teacher.
 

Lbaomye

Member
Joined
Oct 1, 2008
Messages
439
Reaction score
0
New here , So i need some help for my visual basic . Need to know the basic of visual basic . Till the point which teach about creating a website .

ASP.NET is tough man, it'll take a real long time to learn.
I learn asp.net C# HTML CSS JAVA etc and use visual studio 2013

Some basics for you
<div> Contents </div> open bracket to contain whatever you wanna contain inside it
Css to apply and style your "Framework"
E.g. <div style="float:left; width 50%; background-color: black;">Contents</div>
Then you require java to make an image slider
Paypal integration requires API codes and many E-commerce codes to link with the data products server and paypal. Sheesh.
Just get a web designer to do a web for u haha
 

chenaz

Supremacy Member
Joined
Dec 21, 2011
Messages
9,797
Reaction score
373
VB is your back end codes. For front end you will need to use client side scripting which is either vb script or javascript.

actually u are wrong.

backend code can be use as validation as well. when user click on login.

ur backend code will start to checking for empty fields.
example.

a click event for a server control(button)

if server.htmldecode( textbox1.text).trim="" or server.htmldecode( textbox2.text).trim=""
label1.text="please fill up all fields"
end if

so if he want a reset button.

just put
textbox1.text=""
textbox2.text=""
thats it.

i created my website without using any javascript except cases that i want to avoid data lost during postback
 
Last edited:

davidktw

Arch-Supremacy Member
Joined
Apr 15, 2010
Messages
13,550
Reaction score
1,302
actually u are wrong.

backend code can be use as validation as well. when user click on login.

ur backend code will start to checking for empty fields.
example.

a click event for a server control(button)

if server.htmldecode( textbox1.text).trim="" or server.htmldecode( textbox2.text).trim=""
label1.text="please fill up all fields"
end if

so if he want a reset button.

just put
textbox1.text=""
textbox2.text=""
thats it.

i created my website without using any javascript except cases that i want to avoid data lost during postback

I don't see where I'm wrong. At no time have I mentioned that one cannot or shouldn't use backend codes to perform validation. In fact, I highly recommend anyone do so because all front-end codes can be easily compromised even if obfuscation or any form of encryption is used.

In recent web industry where a lot of end-users are using mobile networks on mobile devices or even home users, the need to have client side validation is extremely important.

The network latency incurred to perform simple validation like email address pattern matching, if will to be done at the server end only, will make the web site very unresponsive because one need to get a full round trip to validate a field where it could be done locally by the javascript or vb script in the browser.

Things like validating the password twice in 2 fields can be done in the browser directly to feedback instantly for errors.

However when the form is submitted to the server, server side script MUST perform one more round of validation. This is necessary to prevent hacking or tampering with data, which could be Man-In-The-Middle attack.

Your concern for data lost during postback is unfounded. You may want to enquire more on this subject. The pre-requisite for javascript is very real for today's modern website design. End-users must have javascript to enjoy good user experience. It's not a matter of fast network or not.

In fact, the more validation one can do first hand on the client side makes less load back to the server end because first round of validation would helps to cut down a lot of errors on the client side.

I hope it's clear for you
 

chenaz

Supremacy Member
Joined
Dec 21, 2011
Messages
9,797
Reaction score
373
I don't see where I'm wrong. At no time have I mentioned that one cannot or shouldn't use backend codes to perform validation. In fact, I highly recommend anyone do so because all front-end codes can be easily compromised even if obfuscation or any form of encryption is used.

In recent web industry where a lot of end-users are using mobile networks on mobile devices or even home users, the need to have client side validation is extremely important.

The network latency incurred to perform simple validation like email address pattern matching, if will to be done at the server end only, will make the web site very unresponsive because one need to get a full round trip to validate a field where it could be done locally by the javascript or vb script in the browser.

Things like validating the password twice in 2 fields can be done in the browser directly to feedback instantly for errors.

However when the form is submitted to the server, server side script MUST perform one more round of validation. This is necessary to prevent hacking or tampering with data, which could be Man-In-The-Middle attack.

Your concern for data lost during postback is unfounded. You may want to enquire more on this subject. The pre-requisite for javascript is very real for today's modern website design. End-users must have javascript to enjoy good user experience. It's not a matter of fast network or not.

In fact, the more validation one can do first hand on the client side makes less load back to the server end because first round of validation would helps to cut down a lot of errors on the client side.

I hope it's clear for you

all of ur points are valid and very true. clientside doing the field checking and server side do the data checking.

however a totally newbie like him don need a responsive website. anything that works and he is happy enough.that is how i feed when i was a newbie.when i saw my page logged in. was happy to death.

As for his case. he cant even do a reset button or simple login button. server side coding is best for him as he only needs to learn one programming language. if he has to learn jquery and javascript , he confirm cant finish his project in time.
 
Last edited:

davidktw

Arch-Supremacy Member
Joined
Apr 15, 2010
Messages
13,550
Reaction score
1,302
all of ur points are valid and very true. clientside doing the field checking and server side do the data checking.

however a totally newbie like him don need a responsive website. anything that works and he is happy enough.that is how i feed when i was a newbie.when i saw my page logged in. was happy to death.

As for his case. he cant even do a reset button or simple login button. server side coding is best for him as he only needs to learn one programming language. if he has to learn jquery and javascript , he confirm cant finish his project in time.

If you want to claimed I'm wrong, could you at least get the point right ?

When you said I was wrong, your correction was that it is possible to do validation can be done in the backend. Which I have already pointed out, at no time, have I mentioned it cannot be done. If so, could you kindly point out which post I did indeed mentioned or even remotely mentioned that ? Therefore I answered "I don't see where I was wrong"

Now as I have answered how validation ought to be done in both server and client side for best user experience, you sway to the part talking about how a newbie should be just taught simple things given they may not fully understand more advance topic yet. Could you at least stick to one point of discussion before moving into a totally different thing discussing about "If newbie should be taught advance subject?"

In order to accommodate your interest, I would like to recommend you pick up a couple of web programming books for beginners found at Kinokuniya. You don't have to buy them, just flip to through the pages, whether they are ASP.NET or Java or PHP and so forth. See if the teaching of using client side script is indeed an advance topic or not.

All beginners in web development need to know how both sides of the server-client model works, as such, I don't find it even an advance topic.

Next is no one in the right mind will clear a form using server-side script. Quick is I don't even see the need. Just refresh the webpage will do if that is the case. Clearing the fields is never a server side script if that is what you mean. It's like asking the server to print out nothing on to the form in the webpage, which in the first place it is normally empty, or using default values for selectors.

If a simple reading up of simple web technologies can't allow him/her to finish a project that last for even a week or more, clearly he is not suitable in this space. I'm sorry to say so, because these are basic knowledge of any web development. I did not even ask him to use jquery. Just basis VB script or Javascript will work just fine. By the way, resetting the form doesn't require javascript for standard HTML widgets. It's part of the HTML specification that browsers have incorporated. It's just a simple HTML markup to put in a RESET button, which I would assume you already knew.

BTW TS post is all the way in April 2014. You are 2 months late, and I wonder if TS is still doing the project. Perhaps you would like to be earlier next time ?

Did I answer your doubt ? Anything you would like to further discuss ?
 
Last edited:

chenaz

Supremacy Member
Joined
Dec 21, 2011
Messages
9,797
Reaction score
373
If you want to claimed I'm wrong, could you at least get the point right ?

have I mentioned it cannot be done. If so, could you kindly point out which post I did indeed mentioned or even remotely mentioned that ? Therefore I answered "I don't see where I was wrong"

VB is your back end codes. For front end you will need to use client side scripting which is either vb script or javascript.

high lighted in red. "you will need" logically ppl will think that oh front end code is the only way.
in this part i though you are trying to tell him that it can only be done in client side. since u already explained in previous post. take it as my misunderstand. you have to put ur anger down. don have to be so work up by my points.


All beginners in web development need to know how both sides of the server-client model works, as such, I don't find it even an advance topic.

he doesn't even know simple vb or even know what are variables ,metod or functions. to him i think it is advance for him as he need to learn 3 programing language.CSS,javascript,vb.net.
like i mentioned, anyting that works will bring him to sky. all newbie programmer start in this manner. as long as it works for his first project.he will find his own way to make it right for the next project. i believen same goes to u. when u first make a log in page. i believed it is just as simple as log in without much validation.

BTW TS post is all the way in April 2014. You are 2 months late, and I wonder if TS is still doing the project. Perhaps you would like to be earlier next time ?
i saw "Lbaomye"'s reply and i scroll down and saw ur reply and everything starts from there.


well.lets stop this topic
 
Important Forum Advisory Note
This forum is moderated by volunteer moderators who will react only to members' feedback on posts. Moderators are not employees or representatives of HWZ Forums. Forum members and moderators are responsible for their own posts. Please refer to our Community Guidelines and Standards and Terms and Conditions for more information.
Top