User Profile

Collapse

Profile Sidebar

Collapse
cravish
cravish
Last Activity: Jan 30 '09, 04:51 AM
Joined: Aug 23 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Error While Uploading a file from an ASP Page to Server

    Hi All,

    I am trying to upload a file from an ASP Page to Server.

    by using following code

    Set FSO = CreateObject("S cripting.FileSy stemObject")
    Set TS = FSO.CreateTextF ile(aFilename,t rue,true)
    i getting the following error


    Microsoft VBScript runtime error '800a0046'
    Permission Denied

    Does anybody has a solution for this error.
    ...
    See more | Go to post

  • cravish
    started a topic Problem in enabling and disabling menuitem

    Problem in enabling and disabling menuitem

    Hi,

    I have an appliction in which,there are many User for whom different accesss right are given for different menuitem.Now, when a user Login in, he/she should have access to those many nos. of menuitems(names stored in database)

    this is the sample of code:

    strQry = "select MenuName from table1 "
    mycommand = New SqlCommand(strQ ry, myConnection)
    dr = mycommand.Execu teReader...
    See more | Go to post

  • cravish
    replied to Inserting Datetimepicker in SQL Database
    in .NET
    Yes i know.... but i am using smalldatetime as my data-type.
    If i use the above query it give an error for datatype i.e
    "The conversion of char data type to smalldatetime resulted in out-of-range smalldatetime value.The statement has been teminated."...
    See more | Go to post

    Leave a comment:


  • cravish
    replied to Inserting Datetimepicker in SQL Database
    in .NET
    I tried what you have suggested but still its storing 01/01/1900 in database....
    See more | Go to post

    Leave a comment:


  • cravish
    replied to Inserting Datetimepicker in SQL Database
    in .NET
    strQry = "insert into gin_mst(GINDate ,GinNo,........ ,userId,LCNo)"
    strQry = strQry & "values(#" & Format(myDate, "dd/MM/yyyy") & "#,'" & Trim(strGINNo) & "',........ .,'" & userId & "','" & Trim(cmbLcNo.Te xt) & "')"
    mycommand = New SqlCommand(strQ ry, myConnection)
    ra = mycommand.Execu teNonQuery


    this...
    See more | Go to post

    Leave a comment:


  • cravish
    replied to Inserting Datetimepicker in SQL Database
    in .NET
    I am picking date from datetimepicker. But after taking your suggestion i am getting this error for date 23/08/2007 "The name #23 is not permitted in this context.Only constant,expres sions,or variable are allowed here.Column names are not permitted".One thing i forgot to specify is the datatype for date in database which is smalldatetime....
    See more | Go to post

    Leave a comment:


  • cravish
    started a topic Inserting Datetimepicker in SQL Database
    in .NET

    Inserting Datetimepicker in SQL Database

    Hi,
    I have a problem while inserting Datetimepicker value into Sql database.The value which gets inserted in database is 01/01/1900 which is the wrong one ,as I wanted today or current date to get inserted in database.
    i am using VB.Net 2003 as my front-end and MS SQL 2000 as my back-End.
    Please help me....
    See more | Go to post
No activity results to display
Show More
Working...