Jump to content
letsk2

.net 2005 & 2008

Recommended Posts

beza aaa. banyakk..

ngann .net 2008 pun banyak..

baik ko guna .net 2008 jer. free download. tapi express edition aaa

hehehehe

oklahh

kalau nak ada

senang jerr

banyak teknikkk

tapi ni laa yg aku selalu dok ajar bebudak upm/ suk pahang

amik nii

aku ajar guna parameter. senanggg.

kurangkan ralatt

amik nii

Protected Sub SimpanRegistration(ByVal myPass As String)

Dim Conn As SqlConnection = New SqlConnection(sDB)

Conn.Open()

Try

Dim sCmd As SqlCommand = New SqlCommand

sCmd.CommandText = "INSERT INTO tblLogin (UserID,Password,RoleID,Name,Status,Mail,dtCreated,CreatedBy) " & _

"VALUES (@sUser,@sPass,@sRole,@sName,@sStatus,@sMail,@Dt,@By)"

sCmd.Connection = Conn

With sCmd

.Parameters.Add(New SqlParameter("@sUser", txtUserID.Text))

.Parameters.Add(New SqlParameter("@sPass", myPass))

.Parameters.Add(New SqlParameter("@sRole", ddRole.SelectedValue))

.Parameters.Add(New SqlParameter("@sName", txtName.Text))

.Parameters.Add(New SqlParameter("@sStatus", 1))

.Parameters.Add(New SqlParameter("@sMail", txtEmail.Text))

.Parameters.Add(New SqlParameter("@Dt", Now))

.Parameters.Add(New SqlParameter("@By", CType(Session("UserID"), String)))

End With

sCmd.ExecuteNonQuery().ToString()

Catch ex As Exception

Throw

Finally

Conn.Close()

End Try

End Sub

oklahh good luckkk

Share this post


Link to post
Share on other sites

eh..itu ko kasi coding utk .net 2003..

bukan ker .net 2005 lain coding dier...

utk 2003 aku dh ade coding...itu pun pakai class function..

..

devguy..tolong kasi link freedownload .net 2008..

Share this post


Link to post
Share on other sites

ermm...

aku dh dpt klau nk insert data pakai .net 2003...

tapi bile aku cari bt utk .net 2005(internet source coding)...TAK JADI..

ade2 jer error...coz aku tgok 2005 nie men codebehind akt html..

Share this post


Link to post
Share on other sites

ermm...

aku dh dpt klau nk insert data pakai .net 2003...

tapi bile aku cari bt utk .net 2005(internet source coding)...TAK JADI..

ade2 jer error...coz aku tgok 2005 nie men codebehind akt html..

bleh same jek..try n error la bro byk cara kita leh guna

Share this post


Link to post
Share on other sites

uiks..itu sememangnyer...susah gak klau takde tuk guru nie..

jadi lambat sikit dari segi pemahamannyer..

terpaksa laa bt dalam .net 2003 dulu...nak kene siapkan secepat mungkin..

permintaan : ade ak coding nk browse n upload files?

Share this post


Link to post
Share on other sites

Ko beli jer sejibik buku pasal VB 2005 Express Edition nie... yang terbitan Deitel punya aku recommend, sebab explain detail kat dalam tu. Harga cuma RM84.00 sahaja. Beli ler, tak rugi dapat ilmu tu.. heheheh.

Share this post


Link to post
Share on other sites

LanoG..aper Url tutorial .net 2008??yg baru di terbitkan tu...aku dh tak ingat saper yg bt tutorial tu..tapi page dier baru ade satu...

aku pun nmpak ade Komen ko je kt dlm tu.... :lol::lol:

Share this post


Link to post
Share on other sites

eh..itu ko kasi coding utk .net 2003..

bukan ker .net 2005 lain coding dier...

utk 2003 aku dh ade coding...itu pun pakai class function..

..

devguy..tolong kasi link freedownload .net 2008..

Ko ni Dee bakpe le sengal sgt...

Sebenarnya coding VB.Net 2003 ke 2005 ke 2008 ke... sama aje....

Cuma kdg2 bila ada programmer yg expert dia buat le connection dlm satu kelas...

Benda ni boleh diubah-2 ikut kehendak programmer, janji leh jalan...

Share this post


Link to post
Share on other sites

eh korg rs vba coding kt leh apply kat vb.net x??

dh cb tp xdpt nk run cz ade error kat-----> pMxDocument = ThisDocument

ade ckt tu sy dh ubah kpd vb.net..

ni coding die (export to shapefile),kat vba die leh run.....

Dim pMap As IMap

Dim pMxDocument As IMxDocument

Dim pFLayer As IFeatureLayer

Dim pFc As IFeatureClass

Dim pInFeatureClassName As IFeatureClassName

Dim pDataset As IDataset

Dim pInDsName As IDatasetName

Dim pFSel As IFeatureSelection

Dim pSelSet As ISelectionSet

Dim pFeatureClassName As IFeatureClassName

Dim pOutDatasetName As IDatasetName

Dim pWorkspaceName As IWorkspaceName

Dim pExportOp As IExportOperation

'Dim SelectedPath As String

'Get the first layer in the map

'pDoc = ThisDocument

pMxDocument = ThisDocument

pFLayer = pMap.FeatureSelection 'ActiveView.Selection '*SelectedLayer

'Set pFLayer = pDoc.FocusMap.Layer(0)'*export all

pFc = pFLayer.FeatureClass

'Get the Featureclassname from the featureclass

pDataset = pFc

pInFeatureClassName = pDataset.FullName

pInDsName = pInFeatureClassName

'Get the selected features

pFSel = pFLayer

pSelSet = pFSel.SelectionSet

'Define the output featureclass

'give it the name of the input feature class + exp

pFeatureClassName = New FeatureClassName

pOutDatasetName = pFeatureClassName

pOutDatasetName.Name = pFc.AliasName & pOutDatasetName.Name & ".shp"

pWorkspaceName = New WorkspaceName

pWorkspaceName.PathName = ComboBox1.Text = "" '*(took from browseFile) '*"D:\"

pWorkspaceName.WorkspaceFactoryProgID = "esriCore.shapefileworkspacefactory.1"

pOutDatasetName.WorkspaceName = pWorkspaceName

''Give the output shapefile the same props as the input dataset

pFeatureClassName.FeatureType = pFc.FeatureType

pFeatureClassName.ShapeType = pFc.ShapeType

pFeatureClassName.ShapeFieldName = pFc.ShapeFieldName

''Export selected features

pExportOp = New ExportOperation

pExportOp.ExportFeatureClass(pInDsName, Nothing, pSelSet, Nothing, pOutDatasetName, 0)

korg leh tlg x...????

sesape yg expert vb.net ni tlg la..

dh nek fenin dh pala otak ni r... :wacko:

Share this post


Link to post
Share on other sites

ada tak toturial utk vb.net 2008 utk wat database atau connect database. adakah cara utk connection sapa dengan vb6 dimana kita setting kat propresties n guna data1 atau adodc

Share this post


Link to post
Share on other sites

Pembetulan sikit. Takde istilah .NET 2005 atau 2008, yg ada hanya .NET 1.0/1.1/2.0/3.0/3.5.

Yg 2005 atau 2008 tu Visual Studio punya version. Beza .NET 2.0 dgn 3.0 atau 3.5 sebenarnya takde beza, cuma dlm 3.0 dan 3.5 tambahan drpd .NET 2.0. Depends on the situation dan best practices yg kau amal kan. Kalau guna features baru dlm VS 2008 seperti ASP.NET MVC cara kau berfikir dan coding jauh berubah, tak sama macam cara biasa Web Form tuu dlm .NET 2.0 (VS 2005). Tapi kalau guna cara lama Web Form ni, sama je 2005 dan 2008.

Satu lagi kalau guna VS 2008 pon leh guna .NET lama macam .NET 2.0, cuma pilih option masa buat tu.

Share this post


Link to post
Share on other sites

Geng, camana nak wat Simple Data Binding Dalam VB2005?

Buat dalam VB2003 menjadi, step yg sama aku guna dalam VB2005 tak jadi plk....

hempeh! yg peliknya aku buat binding guna wizard (OLEDBDataAdapter,OLEDBConnection,DataSet)

bukan hard coded pun, kalau hard coded maybe ada syntax error ke ape ke...

tapi wizard VS2005 pun sama dengan Wizard VB2003.... cuma dalam VB2005 ada benda baru palk "binding source" benda ape nie aku pun tak tau...

tensen betul aku....

ada sepapa pernah alamni problem nih?

Share this post


Link to post
Share on other sites
Sertai GEM Community secara percuma. Satu tapak untuk para Usahawan - usahawan berkongsi-kongsi maklumat dan pendapat (Forum, Blog,Direktori, Iklan Percuma DLL) dalam bidang yang ceburi seperti Pertanian, Ternakan DLL.

http://gem.socialgo.com

Industri Sarang Burung Layang-layang (walet/walit).

http://gem.tl.my

Direktori Pertanian Malaysia – Himpunan Weblog Pertanian & Penternakan Malaysia –

http://pertanianmalaysia.blogspot.com

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...