User Profile

Collapse

Profile Sidebar

Collapse
premprakashbhati
premprakashbhati
Last Activity: May 21 '09, 10:39 AM
Joined: Dec 4 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • calling a storeprocedure for CmdSave_Click in vb6 app

    hi, Delerna
    good evening..
    i have in my sql table the field name:CLASS_CODE datatype:numeri c(6,0) and in sql storeprocedure: @CLASS_CODE numeric(6) .and in my vb application iam passing
    Code:
    cmd.Parameters.Append cmd.CreateParameter("CLASS_CODE", adNumeric, adParamInput, 6, Val(txtSpareCode))


    but iam getting error :Precision...
    See more | Go to post

    Leave a comment:


  • calling a storeprocedure for CmdSave_Click in vb6 app

    hi delerna ...sorry for troubling u again...
    when iam calling the store procedure from vb6 application in CmdSave_Click
    it is giving Error:The Precision is invalid ...
    iam not getting the exact thing/meaning...
    so plz help me out...
    here is the code:

    Code:
    Private Sub SaveBranchProcedure()
    
    Dim cmd  As New ADODB.Command
    ...
    See more | Go to post

    Leave a comment:


  • thanks Delerna...i got it..
    See more | Go to post

    Leave a comment:


  • NOTE:datatype of centerid is decimal(13,2) in table...
    here came the error when i execute the given proc

    Argument data type decimal is invalid for argument 1 of substring function.
    See more | Go to post

    Leave a comment:


  • Mr.Delerna..Goo dMorning..,
    i have got what u wrote but when i executed the proceure ..the error cameIncorrect syntax near ) of select statement
    See more | Go to post

    Leave a comment:


  • generate & compare id from table in sql storeprocedure

    hello sir,
    goodevening....
    iam working on vb6.0 and sql2005.

    Code:
     "select max(centreid) from regionmaster where centreid like '" & intBranchPrefix & "%'", DBConnection, adOpenKeyset, adLockOptimistic
             If rsMain.RecordCount > 0 Then
                intID = Mid(rsMain(0), 3, 13)
            End If
             intCentreID = intBranchPrefix & (intID + 1)
    ...
    See more | Go to post

  • Thanks sir,
    i got it...
    See more | Go to post

    Leave a comment:


  • how to put dynamic comma in textbox at runtime

    sir,
    how to put dynamic comma after 12 characters in textbox means 13th char is comma.... can u plz suggest me ...how i should do it...
    thanx...
    prem prakash...
    See more | Go to post

  • premprakashbhati
    started a topic sending Sms through HTTP
    in .NET

    sending Sms through HTTP

    hello sir,
    iam working on sending sms through http where i have given the httpUrl.that is

    here what i have to do is i should create an .aspx form with fields .Dynamically the form should supply To field data to PhoneNumber of http address and TextMessage data to Text of http address....

    so please suggest me how can i start my app. in my opinion i dont think i should use webservice of SmsJunction..i am quite...
    See more | Go to post

  • how to add smsgateway and its webservices to asp.net app

    how to add smsgateway and its webservices to asp.net application...h ere iam using http://66.36.229.70:8800/ smsgateway ..i also have its username and password.....he re iwant to know how to add its webservices to my asp.net application...
    thanx....
    See more | Go to post
    Last edited by Frinavale; Mar 18 '09, 08:41 PM. Reason: Moved to ASP.NET Answers from .NET

  • dynamically adding values to RadioButton

    happy new year all of u...
    sir,
    iam using dataservice function of type int[] named getunbookedslot s(DateTime dt) and the same is used for adding the returned datetime value to RadioButtonList of other .aspx page dynamically...
    here is the Code in Page_Load() of page aspx.cs....
    Code:
    DataService myservices = new DataService();
        protected void Page_Load(object sender, EventArgs e)
        {
    ...
    See more | Go to post

  • Upload Image file in ContentPage of asp.net

    hi, friends...
    here iam working with ContentPage of asp.net...i have to upload image file....
    so,iam trying with the below code:....in which i have filUpload(HTML input(file))Con trol and a webControl button named btnUpload and an image webControl named imgPicture in which iam getting the image in thumbnail form and storing this image and thumbnail in my app folder named ima...
    See more | Go to post

    Leave a comment:


  • premprakashbhati
    started a topic Upload photo in asp.net content page

    Upload photo in asp.net content page

    hi, good evening..
    i am going to upload an image in a web form .....for that iam using HTML input(file) control and one web control button i.e., Upload_Button()
    here is the code ...its work fine when iam using a normal web page... but can't in content page....

    Code in Master Page
    Code:
    <%@ Master Language="C#" AutoEventWireup="true" CodeFile="submaster.master.cs" Inherits="submaster"
    ...
    See more | Go to post
    Last edited by Frinavale; Dec 30 '08, 07:58 PM. Reason: Moved to ASP.NET forum

  • premprakashbhati
    started a topic Gridview with Buttons
    in .NET

    Gridview with Buttons

    hi, friends...GoodM orning...
    I have a grid in which i want to add button template named Publish which will on clicking change the value in status field of Grid....for example...if status field has value Unpublished then by clickiing the publish button in grid in that Row the value must change to Publish in the place of Unpublished.... ..
    can anyone tell me how to do this....cou'z i have tried but iam not getting proper result.....
    See more | Go to post

  • premprakashbhati
    replied to Error:Gridview with checkboxes
    strDataToSend is the return string...
    actually i want to know how this string is given as parameter to Delete_Click()
    and how in delete command statement....th at is Delete from Tablename where
    ________..... is declared...
    I know the procedure when we use SqlDatasource but Dynamically in coding how we have to place that strDataToSend in delete command...like

    Code:
    
       string  title = Convert.ToString
    ...
    See more | Go to post

    Leave a comment:


  • premprakashbhati
    replied to Error:Gridview with checkboxes
    GoodMorning,,
    yes Title is a label control in the grid....

    Code:
    private string GetSelected()
        {
            // Initially set the values to Blank 
            h_chkSelected.Value = "";
    
            foreach (GridViewRow di in GridView1.Rows)
            {
                HtmlInputCheckBox chkBx = (HtmlInputCheckBox)di.FindControl("chkBoxId");
    
                if
    ...
    See more | Go to post

    Leave a comment:


  • premprakashbhati
    replied to Error:Gridview with checkboxes
    Mr.Ramk,
    At
    Label lbl=(Label)di.F indControl("Tit le")


    Description:
    di = DataGridRow which is selected
    Title = Fieldname in DataGridView


    Here i am getting Row No's in di object but it cannot be initialize to the object lbl ,it is showing null value..


    so plz see to it..
    See more | Go to post

    Leave a comment:


  • premprakashbhati
    replied to Error:Gridview with checkboxes
    dear goodevening..
    as u said i have removed lbl=new label() from code in my GetSelected() function

    iam getting Error:
    Null Reference Exception: Object reference not set to an instance of an object.


    so plz see to it
    See more | Go to post

    Leave a comment:


  • premprakashbhati
    replied to Error:Gridview with checkboxes
    goodmorning Frinovale....

    as u said use return of Getselected() function which is strDataToSend obviously it is a collection of selected rows in a gridview.
    i wanna know that if we give strDataToSend parameter to the DeleteRows(____ ___) then what is the select statement for delete....

    According to me Delete statement takes only the Database Table field name as parameter...
    so plz show me the way....
    ...
    See more | Go to post
    Last edited by Frinavale; Dec 8 '08, 02:40 PM. Reason: fixed code tags

    Leave a comment:


  • premprakashbhati
    replied to Error:Gridview with checkboxes
    dear,
    still not working..
    do u think DeleteRow(_____ __) function parameter is not proper accordingly because here we need selectedrow/rows.
    as u said In myTable ,no PID is exist
    MyTable fields are ---->>>>Date,PTittl e,Category,Tags ,TotalComments, PStatus,Author.
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...