Click here to Skip to main content
15,920,111 members
Home / Discussions / Web Development
   

Web Development

 
GeneralRe: Javacript Not working Pin
codingrocks27-Sep-07 20:44
codingrocks27-Sep-07 20:44 
GeneralRe: Javacript Not working Pin
Christian Graus27-Sep-07 21:37
protectorChristian Graus27-Sep-07 21:37 
GeneralRe: Javacript Not working Pin
codingrocks27-Sep-07 22:48
codingrocks27-Sep-07 22:48 
GeneralRe: Javacript Not working Pin
Christian Graus27-Sep-07 23:12
protectorChristian Graus27-Sep-07 23:12 
Questionupload image Pin
michael_jhons27-Sep-07 2:24
michael_jhons27-Sep-07 2:24 
AnswerRe: upload image Pin
Hesbon Ongira27-Sep-07 4:09
Hesbon Ongira27-Sep-07 4:09 
AnswerRe: upload image Pin
JimmyRopes27-Sep-07 20:02
professionalJimmyRopes27-Sep-07 20:02 
GeneralRe: upload image Pin
Kartik Rathi8-Oct-07 20:01
Kartik Rathi8-Oct-07 20:01 
Try this


Image Upload

1) Find name of image
Img1=doc_file.FileName.ToString.Trim()
2) Replace blank space with “_”
Img1=Img1.Replace(“ ”,”_”)
3) Use Substring
Img1=img1.Substring(img1.LastIndexOf("\") + 1, img1.Length - img1.LastIndexOf("\") - 1)
4) Find Extension
ext1 = doc_file.FileName
5) ext1 = ext1.Substring(ext1.LastIndexOf(".") + 1)

6)Check if ext is blank or not.if not then concatenate ext with “.”
If Trim(ext1) = "" Then
ext1 = ""
Else
ext1 = "." & ext1
End If
7)Send ImageName as blank in database
8)Take new String variable
9)ImageNew=”image_” & ret.tostring & ext1
10)Check if ext1 not equal to blank
ImageNew=”image_” & ret.tostring & ext1
Then use update command
update tblImages set ImageName='" & sImg_name_new & "' where ImageId =" & ret
11)Then use Upload Function

QuestionHow to create Drag and Drop Lightbox Pane Pin
Hy Chanhan27-Sep-07 0:20
professionalHy Chanhan27-Sep-07 0:20 
Questioncall a function in a VB.NET DLL from Java script [modified] Pin
Vanamaindia26-Sep-07 20:05
Vanamaindia26-Sep-07 20:05 
AnswerRe: call a function in a VB.NET DLL from Java script Pin
Christian Graus27-Sep-07 20:28
protectorChristian Graus27-Sep-07 20:28 
Questionserver error Pin
IamAmit26-Sep-07 19:59
IamAmit26-Sep-07 19:59 
GeneralRe: server error Pin
Guffa26-Sep-07 20:10
Guffa26-Sep-07 20:10 
GeneralRe: server error Pin
IamAmit26-Sep-07 20:48
IamAmit26-Sep-07 20:48 
QuestionProgramming Pin
ilovepakistan26-Sep-07 17:42
ilovepakistan26-Sep-07 17:42 
AnswerRe: Programming Pin
Scott Dorman26-Sep-07 18:04
professionalScott Dorman26-Sep-07 18:04 
JokeRe: Programming Pin
Mairaaj Khan26-Sep-07 23:06
professionalMairaaj Khan26-Sep-07 23:06 
AnswerRe: Programming Pin
Mairaaj Khan26-Sep-07 23:10
professionalMairaaj Khan26-Sep-07 23:10 
AnswerRe: Programming Pin
Paddy Boyd27-Sep-07 3:19
Paddy Boyd27-Sep-07 3:19 
AnswerRe: Programming Pin
DanB198329-Sep-07 9:36
DanB198329-Sep-07 9:36 
QuestionSSS technologies statistics Pin
Andres Coder26-Sep-07 7:35
Andres Coder26-Sep-07 7:35 
AnswerRe: SSS technologies statistics Pin
Hesbon Ongira27-Sep-07 4:02
Hesbon Ongira27-Sep-07 4:02 
GeneralRe: SSS technologies statistics Pin
Andres Coder27-Sep-07 4:20
Andres Coder27-Sep-07 4:20 
Questionasp deployment Pin
Yusuf26-Sep-07 6:02
Yusuf26-Sep-07 6:02 
AnswerRe: asp deployment Pin
Christian Graus27-Sep-07 20:29
protectorChristian Graus27-Sep-07 20:29 

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.