15,895,746 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by UD(IA) (Top 24 by date)
UD(IA)
1-Dec-13 9:57am
View
Thank you very much
UD(IA)
1-Dec-13 6:27am
View
ok than tell me good and better way to do this thing...and where i can find new ways to learn asp.net with c#
UD(IA)
1-Dec-13 5:26am
View
these function use because i want to store date and time according to me and these function change datatime as i need and i store date in database in varchar(8) and when i print i use funcation to add / and when i use from date.now() than it convert it into withoutslash and as according to me so plz tell me errors i can provide its vb format which work correctly is
Private Function Dt_mdy2ymd(ByVal w_dt As String)
Return w_dt.Substring(6, 4) & w_dt.Substring(0, 2) & w_dt.Substring(3, 2)
End Function
Function My_D2sYMD(ByVal w_date)
Dim Ret_Val As String
'If ValidateDate(w_date) Then
Ret_Val = n2s(Convert.ToDateTime(w_date).Year, 4) & n2s(Convert.ToDateTime(w_date).Month, 2) & n2s(Convert.ToDateTime(w_date).Day, 2)
'Else
' Ret_Val = ""
'End If
My_D2sYMD = Ret_Val
End Function
Function n2s(ByVal w As Single, ByVal n As Integer)
Dim Ret_Val As String
Ret_Val = "0000000000" & w
Ret_Val = Ret_Val.Substring(Len(Ret_Val) - n, n)
Return Ret_Val
End Function
Private Function Dt_YMD2DMY(ByVal w_dt As String)
If Len(Trim(w_dt)) = 8 Then
Return w_dt.Substring(6, 2) & "/" & w_dt.Substring(4, 2) & "/" & w_dt.Substring(0, 4)
Else
Return ""
End If
End Function
Private Function Dt_YMD2MDY(ByVal w_dt As String)
If Len(Trim(w_dt)) = 8 Then
Return w_dt.Substring(4, 2) & "/" & w_dt.Substring(6, 2) & "/" & w_dt.Substring(0, 4)
Else
Return ""
End If
End Function
please tell me where is the problems in conversion
UD(IA)
25-Nov-13 18:36pm
View
'ddl_editOffice' has a SelectedValue which is invalid because it does not exist in the list of items. Parameter name: value
i got this type of error when i try to do this
office_Cd="01"
Dim sql1 As String = "select * from Office_Mast where Office_Cd='" & officeCd.Trim & "' order by Office_Name"
Dim cmd3 As New SqlCommand(sql1, conn)
Dim dr1 As SqlDataReader
dr1 = cmd3.ExecuteReader
ddl_editOffice.DataTextField = "Office_Name"
ddl_editOffice.DataValueField = "Office_Cd"
ddl_editOffice.DataBind()
ddl_editOffice.Items.Insert(0, "--Select--")
If dr1.IsClosed = False Then dr1.Close()
ddl_editOffice.SelectedValue = officeCd
UD(IA)
25-Nov-13 17:42pm
View
i do this but not work..
Dim office1 = read1("Office_Cd").ToString()
ddl_editOffice.SelectedValue = office1
UD(IA)
28-Apr-13 13:25pm
View
ok thanks i never use asp thats why i have problem ok i will now research but i dont know how to featch error in asp classic.
thanks again
UD(IA)
28-Apr-13 12:29pm
View
i change code like this but getting error plz solve my problem
thanks
<%
set conn=server.createobject("adodb.connection")
mytb = "DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=" & server.mappath("tdr.mdb")
conn.Open mytb
Dim mysql
mysql = "INSERT INTO feedback(comments, username, useradd, useremail, userdt) "
mysql = mysql & "VALUES (?,?,?,?,?)"
set conn=server.createobject("adodb.connection")
conn.ActiveConnection = conn
conn.CommandText = mysql
conn.Parameters(0).value = mcomments
conn.Parameters(1).value = musername
conn.Parameters(2).value = museradd
conn.Parameters(3).value = museremail
conn.Parameters(4).value=muserdt
Set courseRS = conn.Execute()
conn.close;
set conn=nothing
%>
UD(IA)
28-Apr-13 10:30am
View
i understand what u want to say but only once you write code for me so i can understand how i can do it a insert code without concatenation
UD(IA)
27-Apr-13 6:54am
View
Sirji is this right way?
<%
' Declaring variables
Dim name, email, country, comments, data_source, con, sql_insert
' A Function to check if some field entered by user is empty
Function ChkString(string)
If string = "" Then string = " "
ChkString = Replace(string, "'", "''")
End Function
' Receiving values from Form
name = ChkString(Request.Form("name"))
email = ChkString(Request.Form("email"))
country = ChkString(Request.Form("country"))
comments = ChkString(Request.Form("comments"))
data_source = "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=" & _
Server.MapPath("form.mdb")
sql_insert = "insert into users (name, email, country, comments) values ('" & _
name & "', '" & email & "', '" & country & "', '" & comments & "')"
' Creating Connection Object and opening the database
Set con = Server.CreateObject("ADODB.Connection")
con.Open data_source
con.Execute sql_insert
' Done. Close the connection
con.Close
Set con = Nothing
%>
UD(IA)
27-Apr-13 6:36am
View
Deleted
thanks
will you help me to put code for me becoz i dont no where and how i will add code till i will try my best
Thanks once again for that
Regards
Umesh Daiya
UD(IA)
27-Apr-13 6:34am
View
Thanks
just one question
<%
set conn=server.createobject("adodb.connection")
mytb = "DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=" & server.mappath("tdr.mdb")
conn.Open mytb
Dim mysql
mysql = "insert into feedback(comments,username,useradd,useremail,usertel,userdt) " &_
"values('" & mcomments & "','" &_
musername & "','" &_
museradd & "','" &_
museremail & "','" &_
musertel & "','" &_
muserdt & "')"
conn.execute(mysql)
conn.close
set conn=nothing %>
will you code for me only for once so i can idea where and how i can write parameterised query
really i have no idea for this till i try my best
thanks again for that
REgards
Umesh Daiya
UD(IA)
27-Apr-13 6:04am
View
Thanks For REply
just i serarch on google than i found code like this
BlackList = Array("--", ";", "/*", "*/", "@@", "@",_
"char", "nchar", "varchar", "nvarchar",_
"alter", "begin", "cast", "create", "cursor",_
"declare", "delete", "drop", "end", "exec",_
"execute", "fetch", "insert", "kill", "open",_
"select", "sys", "sysobjects", "syscolumns",_
"table", "update")
what you say about this and one of my friend also send me code where he mention > < and special symobls restrict
will you help me to write code because i never before work in asp classic.
Thanks
and Regards
Umesh Daiya
UD(IA)
5-Mar-11 1:06am
View
thanks
i solve this problem i use edit which create problem now i given name edit1 its working properly
thanks again
UD(IA)
5-Mar-11 1:06am
View
thanks
i solve this problem i use edit which create problem now i given name edit1 its working properly
thanks again
UD(IA)
4-Mar-11 5:02am
View
Thanks a lot
UD(IA)
4-Mar-11 4:25am
View
thanks for reply
is there no any way to show problem with image snapshot on codepeoject.com.
UD(IA)
4-Mar-11 4:12am
View
please tell me in yes or no also
UD(IA)
4-Mar-11 3:59am
View
sorry dear as u know i am new here i want to vote 5 but i didnot know how its work. i am really sorry.
its bound dear properly thanks
tell me how can i given u snap shot of my application so i will explain u more ...
thanks again and sorry agin for my mistake of vote.
UD(IA)
4-Mar-11 3:56am
View
is there no need to use alternate text type properties like we earlier use with datagrid.
thanks
UD(IA)
4-Mar-11 3:54am
View
thanks for reply there is no problem but not value shows in grid view.
ok
if values shows then it would like to update and delete value from the button in front of that data.
UD(IA)
4-Mar-11 3:53am
View
thnaks for reply
my problem is that i would like to create a grid view and its having one check box and one edit button and another is for delete when i click on edit button one panel will be displayed with all selected rows values and user can change in these values and when he/she will click on save than in grid view its reflect change.
thanks again
UD(IA)
4-Mar-11 3:48am
View
Thanks for reply its work properly.
now please help me
i talke two mannual buttons with gridview and bind it. now i want to click on firstbutton than it will open a new panel and where i edit that data to fill it with value of selected item.
thnaks again.
UD(IA)
23-Feb-11 2:49am
View
thanks for reply
UD(IA)
23-Feb-11 2:49am
View
i use this code but now i got this problem
Invalid postback or callback argument. Event validation is enabled using <pages enableEventValidation="true"/> in configuration or <%@ Page EnableEventValidation="true" %> in a page. For security purposes, this feature verifies that arguments to postback or callback events originate from the server control that originally rendered them. If the data is valid and expected, use the ClientScriptManager.RegisterForEventValidation method in order to register the postback or callback data for validation.
Show More