ok Thanks
Malikdanish
Posts
-
I have downloaded the source code of Open Source Extensible Enterprise n-tier Application Framework with Multilayered Architecture -
I have downloaded the source code of Open Source Extensible Enterprise n-tier Application Framework with Multilayered ArchitectureI have downloaded the source code of {
Open Source Extensible Enterprise n-tier Application Framework with Multilayered Architecture
} I have open it in visual studio it compiles well and giving no error when i run the application it gives me error "
No connection could be made because the target machine actively refused it 127.0.0.1:13000
please help me to configure this project into my laptop.
-
Bulk insert using table value parameter hangs my applicationDear Sir, Thanks for your time and response , I have used seperate function and while debugging it does not show any error and after the end sub of the function it struck in loop and if i insert smaller records like 2-3 villages just it works fine .. Again Thanks
-
Bulk insert using table value parameter hangs my applicationDear I am using finally at the end to dispose all the objects after transaction commit , what you suggest how to modify my code ? which i have wrote above
-
Bulk insert using table value parameter hangs my applicationPrivate Sub btnSave_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnSave.Click If Not Page.IsValid Then Return Dim blnIsUpdate As Boolean = False Dim hasedBytes As Byte() Dim strPassword As String = String.Empty Dim md5Hasher As New MD5CryptoServiceProvider() If Not litUserId.Text.Trim().Length.Equals(0) Then blnIsUpdate = True Dim cnnContact As New SqlConnection(AppSettings("DbSqlPortal")) Dim cmdContact As New SqlCommand("spAdminSaveUsers", cnnContact) Dim IDs As Integer = Nothing Dim trnContact As SqlTransaction = Nothing cmdContact.CommandType = CommandType.StoredProcedure hasedBytes = md5Hasher.ComputeHash(New UTF8Encoding().GetBytes((txtPassword.Text.Trim() & txtEmail.Text.Trim()))) ' GetDistrictID() 'If GetDistrictId() > 0 Then ' DisplayMessage(Me.Master.MessageBox, "A User with same District and Same user role already exists.", "Record Exists", MessageBoxTypes.Warning) 'Else Try With cmdContact.Parameters If blnIsUpdate Then .Add("@UserId", SqlDbType.BigInt).Value = CInt(litUserId.Text.Trim()) Else .Add("@UserId", SqlDbType.BigInt).Value = DBNull.Value End If .Add("@FullName", SqlDbType.NVarChar).Value = txtFullName.Text.Trim() .Add("@Email", SqlDbType.NVarChar).Value = txtEmail.Text.Trim() .Add("@Password", SqlDbType.VarChar).Value = base64Encode(txtPassword.Text) 'txtPassword.Text.Trim() 'Convert.ToBase64String(hasedBytes) .Add("@SecurityQuestion", SqlDbType.VarChar).Value = ddlSecurityQuestions.SelectedItem.Text .Add("@SecurityAnswer", SqlDbType.VarChar).Value = txtAnswer.Text.Trim() .Add("@UserTypes", SqlDbType.TinyInt).Value = ddlUserTypes.SelectedValue .Add("@IsActive", SqlDbType.Bit).Value = chkActive.Checked .Add("@DistrictId", SqlDbType.TinyInt).Value = CheckBoxList1.SelectedValue .Add("@IsAdmin", SqlDbType.Bit).Value = chkAdmin.Checked .Add("@IPAddress", SqlDbType.VarChar).Value = Request.UserHostAddress .Add("@Result", SqlDbType.Char, 1).Direction = ParameterDirection.Output .Add("@ReturnId", SqlDbType.BigInt).Direction = ParameterDirec
-
Bulk insert using table value parameter hangs my applicationI am using table value parameter for insertion into four table and four table value parameters are used but after the insertion my application gets hangs on any one can assist.
-
Database QueryDear Sir, I am Danish Habib and i get struck with an issue and i have placed my question in many forums but no one still replied to me which is consider as best solution ,The problem statement is below I have a web application in which i have users and user have the following information (userid,name,email,Passowrd,SecurityQuestion,SecurityAnswer,District,Tehsil,UC,Villages) So the business rules are as follows 1-One user can have one or more districts 2-One user can have no or many tehsils. 3-One user have have no or many ucs. 4-One user can have no or many villages these are cascade in nature like that District------>populates------->Tehsisl Tehsils-------->Populates ------->UCs UCs-------------->populates------Villages So i have made four tables one for basic infromation of user like (userid(P),name,email,password,securityquestion,securityanswer) 4 more tables are DistrictVSUsers(Userid(F),DistrictID(P),DistrictName) TehsilsVsUser(Userid(F),Tehsil(ID),TehsilName,DIstrictID(F)) UCsVsUser(Userid(F),UCID,UCNAME,TEHSILID(F)) VillageVsUSers(USerid(F),VillageID,Villagename,UCID(F)) These are five table nor four ... These table are for saving purposes for showing the cascaded records i have used checkboxlist on selection of district checkboxlist the tehsil checkboxlist will populats and on selection of tehsil checkxboxlist the uc checkboxlist populats and on selection of uc checkboxlist the villages checkboxlist item populates ...so this working fine .. Now For saving the data I am using the loop first loop goes for district and save all the district then the next loop for tehsil and then the next for UC and then the next for Villages ................. So I have assigned one user with 71 villages and now when on edit i want to show the check box checked whose values are present into the database i am getting 71 rows using data reader "SELECT U.UserId,U.[Address],U.City,u.Country,UT.TehsilId,UC.UCID ,UC.UCName,UV.VillageId ,UV.VillageName ,UT.TehsilName,U.DistrictId,UD.DistrictName ,UD.DistrictId ,UD.UserId,U.FullName,U.IPAddress,U.IsActive,U.IsAdmin,U.IsPasswordReset,U.IsReportable,U.IsVisible,U.CreateDate ,U.Mobile,U.Password,U.ReporintPerson,U.SecurityAnswer,U.SecurityQuestion ,U.UserId,U.Email,U.UserTypes FROM Users U INNER JOIN UserDistricts UD ON UD.UserId=U.UserId AND UD.DistrictId=U.DistrictId INNER JOIN UserTehsils UT ON UT.UserID=U.UserId AND UT.DistrictId=UD.DistrictId INNER JOIN UserUcs UC ON UC.UserID=U.UserId AND UC.TehsilId=UT.TehsilId INNER JOIN UserVillag