Click here to Skip to main content
15,889,200 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Gridview in asp.net 2.0 Pin
N a r e s h P a t e l16-Aug-07 19:30
N a r e s h P a t e l16-Aug-07 19:30 
GeneralRe: Gridview in asp.net 2.0 Pin
Milind Panchal16-Aug-07 19:31
Milind Panchal16-Aug-07 19:31 
GeneralRe: Gridview in asp.net 2.0 Pin
N a r e s h P a t e l16-Aug-07 19:38
N a r e s h P a t e l16-Aug-07 19:38 
AnswerRe: Gridview in asp.net 2.0 Pin
nandhububbly16-Aug-07 19:41
nandhububbly16-Aug-07 19:41 
GeneralRe: Gridview in asp.net 2.0 Pin
N a r e s h P a t e l16-Aug-07 19:57
N a r e s h P a t e l16-Aug-07 19:57 
GeneralRe: Gridview in asp.net 2.0 Pin
Milind Panchal17-Aug-07 19:14
Milind Panchal17-Aug-07 19:14 
QuestionFileUpload control Pin
Imran Khan Pathan16-Aug-07 19:01
Imran Khan Pathan16-Aug-07 19:01 
AnswerRe: FileUpload control Pin
Michael Sync16-Aug-07 20:21
Michael Sync16-Aug-07 20:21 
Imran Khan Pathan wrote:
Is it possible?


Yeah. It is possible. there is a trick for it.

1. Add one button (let's say btnUpload) and textbox (txtPath) in your page.
2. Add HTML "input=File"
3. Make this "file" control as invisible. (CSS: opacity or alpha )

CSS - Code
<br />
filter:alpha(opacity=50);<br />
-moz-opacity:0.5;<br />
opacity: 0.5;


4. Write a JS function to fire the click event of input "file" control.

function fireFileClick()<br />
{<br />
  var objfile = document.getElementById('myFile');<br />
  objfile.click();<br />
<br />
  var objTextBox = document.getElementById('txtPath');<br />
  objTextBox.value = objfile.value;<br />
}


5. Add this function on click event of button "btnUpload"

<input type="btnUpload" onclick="fireFileClick();" <br />
         value="Upload File" >


That's all..

Please follow the steps that I mentioned. Let me know the result.



Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)

If you want to thank me for my help, please vote my message by clicking one of numbers beside "Rate this message". Why vote? Plz Read it here. Thank you. Smile | :)

GeneralRe: FileUpload control Pin
Imran Khan Pathan16-Aug-07 20:40
Imran Khan Pathan16-Aug-07 20:40 
GeneralRe: FileUpload control Pin
Michael Sync17-Aug-07 1:18
Michael Sync17-Aug-07 1:18 
GeneralRe: FileUpload control Pin
ahmed_fci200622-Sep-07 23:29
ahmed_fci200622-Sep-07 23:29 
GeneralRe: FileUpload control Pin
Michael Sync23-Sep-07 1:10
Michael Sync23-Sep-07 1:10 
GeneralRe: FileUpload control Pin
ahmed_fci200623-Sep-07 21:25
ahmed_fci200623-Sep-07 21:25 
Questionhi frens..pls do help me.. Pin
RRR1816-Aug-07 19:01
RRR1816-Aug-07 19:01 
AnswerRe: hi frens..pls do help me.. Pin
leckey17-Aug-07 3:07
leckey17-Aug-07 3:07 
QuestionIIS PROBLEM Pin
methhoo16-Aug-07 13:29
methhoo16-Aug-07 13:29 
AnswerRe: IIS PROBLEM Pin
Guffa16-Aug-07 14:57
Guffa16-Aug-07 14:57 
QuestionSession not available in VirtualPathProvider Pin
walkTheNet16-Aug-07 12:04
walkTheNet16-Aug-07 12:04 
AnswerRe: Session not available in VirtualPathProvider Pin
peacefulmember16-Aug-07 15:26
peacefulmember16-Aug-07 15:26 
GeneralRe: Session not available in VirtualPathProvider Pin
walkTheNet17-Aug-07 5:43
walkTheNet17-Aug-07 5:43 
GeneralRe: Session not available in VirtualPathProvider Pin
walkTheNet17-Aug-07 7:15
walkTheNet17-Aug-07 7:15 
QuestionHi All, Pin
peacefulmember16-Aug-07 10:30
peacefulmember16-Aug-07 10:30 
GeneralSubject : HTML tag and JavaScript validation in usercontrol Pin
peacefulmember16-Aug-07 10:33
peacefulmember16-Aug-07 10:33 
AnswerRe: Hi All, Pin
Christian Graus16-Aug-07 11:30
protectorChristian Graus16-Aug-07 11:30 
GeneralRe: Hi All, Pin
peacefulmember16-Aug-07 15:22
peacefulmember16-Aug-07 15:22 

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.