Click here to Skip to main content
15,920,602 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Generalsimple javascript code [modified] Pin
PeriyasamyRamachandran19-Dec-07 0:53
PeriyasamyRamachandran19-Dec-07 0:53 
GeneralRe: simple javascript code Pin
N a v a n e e t h19-Dec-07 1:32
N a v a n e e t h19-Dec-07 1:32 
GeneralRe: simple javascript code Pin
PeriyasamyRamachandran19-Dec-07 1:41
PeriyasamyRamachandran19-Dec-07 1:41 
GeneralRe: simple javascript code Pin
N a v a n e e t h19-Dec-07 1:54
N a v a n e e t h19-Dec-07 1:54 
GeneralRe: simple javascript code Pin
Paddy Boyd19-Dec-07 1:46
Paddy Boyd19-Dec-07 1:46 
GeneralRe: simple javascript code Pin
PeriyasamyRamachandran19-Dec-07 1:53
PeriyasamyRamachandran19-Dec-07 1:53 
Generalxmlnodes in treeview Pin
VanithaVasu19-Dec-07 0:28
VanithaVasu19-Dec-07 0:28 
GeneralFind a Control in DataList Control Pin
kirthikirthi19-Dec-07 0:20
kirthikirthi19-Dec-07 0:20 
Hi all

I am editing a datalist and i am trying to upload file from that editing file

my code
------------

Dim WriterID As String = DirectCast(e.Item.FindControl("WriterID"), Label).Text
Dim Writer As String = DirectCast(e.Item.FindControl("Writer"), TextBox).Text
Dim ImageFileName As String = DirectCast(e.Item.FindControl("ImageFileName"), TextBox).Text

But the upfile (HtmlInputFile) control is not finding giving error

'System.NullReferenceException: Object reference not set to an instance of an object.
'

Dim upfile As HtmlInputFile = DirectCast(e.Item.FindControl("upfile"), System.Web.UI.HtmlControls.HtmlInputFile)

How can i found HtmlInputFile in my datalist control

ThanQ
Keerthi
QuestionRegular Expression Pin
senthilsstil18-Dec-07 23:49
senthilsstil18-Dec-07 23:49 
GeneralRe: Regular Expression Pin
Usharva19-Dec-07 0:41
Usharva19-Dec-07 0:41 
GeneralFile Download Control... Pin
Sasmi18-Dec-07 23:13
Sasmi18-Dec-07 23:13 
GeneralRe: File Download Control... Pin
Christian Graus18-Dec-07 23:19
protectorChristian Graus18-Dec-07 23:19 
GeneralRe: File Download Control... Pin
soni uma18-Dec-07 23:21
soni uma18-Dec-07 23:21 
GeneralRe: File Download Control... Pin
N a v a n e e t h18-Dec-07 23:23
N a v a n e e t h18-Dec-07 23:23 
Generaldelete doc from client side?, Pin
Member 387988118-Dec-07 22:18
Member 387988118-Dec-07 22:18 
GeneralRe: delete doc from client side?, Pin
Michael Sync18-Dec-07 22:27
Michael Sync18-Dec-07 22:27 
GeneralRe: delete doc from client side?, Pin
Member 387988118-Dec-07 22:38
Member 387988118-Dec-07 22:38 
GeneralRe: delete doc from client side?, Pin
Paddy Boyd18-Dec-07 22:49
Paddy Boyd18-Dec-07 22:49 
GeneralRe: delete doc from client side?, Pin
Michael Sync18-Dec-07 23:01
Michael Sync18-Dec-07 23:01 
GeneralRe: delete doc from client side?, Pin
Sun Rays18-Dec-07 22:35
Sun Rays18-Dec-07 22:35 
GeneralRe: delete doc from client side?, Pin
Christian Graus18-Dec-07 23:13
protectorChristian Graus18-Dec-07 23:13 
Questionadd javascript function to dynamically created treeview child Pin
Niya18-Dec-07 21:39
Niya18-Dec-07 21:39 
GeneralRe: add javascript function to dynamically created treeview child Pin
Michael Sync18-Dec-07 21:48
Michael Sync18-Dec-07 21:48 
GeneralRe: add javascript function to dynamically created treeview child Pin
Niya18-Dec-07 21:56
Niya18-Dec-07 21:56 
GeneralRe: add javascript function to dynamically created treeview child Pin
Michael Sync18-Dec-07 22:23
Michael Sync18-Dec-07 22:23 

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.