Click here to Skip to main content
14,456,165 members
   

C#

 
AnswerRe: I want to open PDF-file on winforms axAcroPDF1.src (Adobe Reader) Pin
Eddy Vluggen15-Feb-20 3:59
professionalEddy Vluggen15-Feb-20 3:59 
AnswerMessage Closed Pin
21-Feb-20 0:14
MemberMember 1475132521-Feb-20 0:14 
QuestionDifferent value from input Pin
chipp_zanuff14-Feb-20 7:15
Memberchipp_zanuff14-Feb-20 7:15 
AnswerRe: Different value from input Pin
OriginalGriff14-Feb-20 7:32
communityengineerOriginalGriff14-Feb-20 7:32 
GeneralRe: Different value from input Pin
chipp_zanuff14-Feb-20 18:48
Memberchipp_zanuff14-Feb-20 18:48 
GeneralRe: Different value from input Pin
OriginalGriff14-Feb-20 21:21
communityengineerOriginalGriff14-Feb-20 21:21 
AnswerRe: Different value from input Pin
Eddy Vluggen14-Feb-20 7:35
professionalEddy Vluggen14-Feb-20 7:35 
Questionauto fill data by using 3 layer in aso.net c# Pin
Member 1474357913-Feb-20 23:47
MemberMember 1474357913-Feb-20 23:47 
<pre lang="c#">
plese help me solve this problem i am trying to make a auto fill button by using 3 layer architecture in asp.net c# on windows form
<pre>BELayer:
public string quantity { get; set; }
public string prod_id { get; set; }
public string party_id { get; set; }  


DALayer page code:
//command for auto fill data into quantity table;
        public SqlDataReader autofillparty_id(BEL beobj)
        {
            try
            {
                
                cmd = new SqlCommand("select * from product where prod_id='" + beobj.prod_id + "'", con);
                cmd.CommandType = CommandType.StoredProcedure;
                cmd.CommandText = "spsearchpartyid";
                cmd.Parameters.AddWithValue("@prod_id", beobj.prod_id);
                con.Open();
                SqlDataReader sdr = cmd.ExecuteReader(CommandBehavior.CloseConnection);
                return sdr;
     
            }
            catch (Exception ex)
            {
                throw ex;
            }

            finally 
            {
               con.Close();
            }
        }


BALayer code
//command for autofill data into table quantity..
        public SqlDataReader autofillquantity(BEL beobj)
        {
            try
            {
                return daobj.autofillparty_id(beobj);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }

Main Page code::
private void button1_Click(object sender, EventArgs e)
        {
          if (baobj.autofillquantity(beobj).Read())
            {
                txtboxpartyidquant.Text = (beobj.party_id.ToString());
                
            }

        }
 this code is not working i know problem is in my main page but i don't know how can i solve this problem please help me ...

AnswerRe: auto fill data by using 3 layer in aso.net c# Pin
OriginalGriff14-Feb-20 0:39
communityengineerOriginalGriff14-Feb-20 0:39 
QuestionWhat is the correct way to do Business Validation on entities? Pin
Bastien Vandamme11-Feb-20 16:00
MemberBastien Vandamme11-Feb-20 16:00 
AnswerRe: What is the correct way to do Business Validation on entities? Pin
Gerry Schmitz11-Feb-20 20:48
mveGerry Schmitz11-Feb-20 20:48 
GeneralRe: What is the correct way to do Business Validation on entities? Pin
Richard Deeming12-Feb-20 0:47
communityengineerRichard Deeming12-Feb-20 0:47 
GeneralRe: What is the correct way to do Business Validation on entities? Pin
Gerry Schmitz12-Feb-20 3:16
mveGerry Schmitz12-Feb-20 3:16 
GeneralRe: What is the correct way to do Business Validation on entities? Pin
Richard Deeming12-Feb-20 3:30
communityengineerRichard Deeming12-Feb-20 3:30 
GeneralRe: What is the correct way to do Business Validation on entities? Pin
Gerry Schmitz12-Feb-20 3:42
mveGerry Schmitz12-Feb-20 3:42 
GeneralRe: What is the correct way to do Business Validation on entities? Pin
Richard Deeming12-Feb-20 3:52
communityengineerRichard Deeming12-Feb-20 3:52 
GeneralRe: What is the correct way to do Business Validation on entities? Pin
phil.o12-Feb-20 3:56
mvephil.o12-Feb-20 3:56 
GeneralRe: What is the correct way to do Business Validation on entities? Pin
Gerry Schmitz12-Feb-20 4:06
mveGerry Schmitz12-Feb-20 4:06 
AnswerRe: What is the correct way to do Business Validation on entities? Pin
Richard Deeming12-Feb-20 1:03
communityengineerRichard Deeming12-Feb-20 1:03 
QuestionHow do create a class property that is a collection of the same class? Pin
Member 1474182311-Feb-20 9:04
MemberMember 1474182311-Feb-20 9:04 
AnswerRe: How do create a class property that is a collection of the same class? Pin
Richard Deeming11-Feb-20 9:46
communityengineerRichard Deeming11-Feb-20 9:46 
GeneralRe: How do create a class property that is a collection of the same class? Pin
Dave Kreskowiak11-Feb-20 10:02
mveDave Kreskowiak11-Feb-20 10:02 
GeneralRe: How do create a class property that is a collection of the same class? Pin
Member 1474182312-Feb-20 1:04
MemberMember 1474182312-Feb-20 1:04 
GeneralRe: How do create a class property that is a collection of the same class? Pin
Richard Deeming12-Feb-20 1:15
communityengineerRichard Deeming12-Feb-20 1:15 
AnswerRe: How do create a class property that is a collection of the same class? Pin
Gerry Schmitz11-Feb-20 15:14
mveGerry Schmitz11-Feb-20 15:14 

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.