15,891,248 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 Imran D (Top 21 by date)
Imran D
18-Jul-12 3:47am
View
Here there is no option to vote because , u wrote ur answer in comment box, if u have added ur solution in "Add your solution here' box than there is a option to vote u.
Imran D
12-Jul-12 1:42am
View
please suggest me
Imran D
11-Jul-12 8:22am
View
Ya got It Thanks a lot.
But when i select an file It is showing Fake Path like this
"C:\fakepath\abcdt.xlsx "
the actual Path is
"C:\Users\Public\Pictures\Sample Pictures\abcdt.xlsx"
Imran D
11-Jul-12 7:47am
View
Ya did The Same thing its not getting
Imran D
11-Jul-12 7:34am
View
But It is showing Fake Path like this
C:\fakepath\abcdt.xlsx
Imran D
11-Jul-12 7:28am
View
Thank u So much its working .Instead of textbox can we use label to display the attached file name. Please Let me know
Imran D
11-Jul-12 6:26am
View
Its not working .Instead of textbox can we use label to display the attached file name.
This is the code
<head runat="server">
<script type="text/javascript" language="javascript">
function clickfp() {
var objFp = document.getElementById('objFileUpload');
objFp.click();
}
function uploadFileChange() {
alert('start');
alert(document.getElementById("objFileUpload").value);
document.getElementById('FileName').value = document.getElementById("objFileUpload").value;
}
</script>
<title></title>
</head>
<body>
<form id="form1" runat="server">
<style>
.hide
{display:none;
}
</style>
<div>
<br />
<asp:TextBox ID="FileName" runat="server">
<asp:FileUpload ID="objFileUpload" runat="server" CssClass="hide" onpropertychange="uploadFileChange()"/>
<asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="#" onclick="clickfp()">Add file
<br />
<br />
<asp:Button ID="btnUpload" runat="server" onclick="btnUpload_Click"
Text="Upload" />
<br />
</div>
</form>
</body>
Imran D
11-Jul-12 6:13am
View
This is the code which i have added ,its not working, instead of textbox can we use label to display the attached file name.
<head runat="server">
<script type="text/javascript" language="javascript">
function clickfp() {
var objFp = document.getElementById('objFileUpload');
objFp.click();
}
function uploadFileChange() {
document.getElementById('FileName').value = document.getElementById("objFileUpload").value;
}
</script>
<title></title>
</head>
<body>
<form id="form1" runat="server">
<div>
<style>
.hide
{
display:none;
}
</style>
<br />
<asp:TextBox ID="FileName" runat="server">
<asp:FileUpload ID="objFileUpload" runat="server" CssClass="hide" onpropertychange="uploadFileChange()"/>
<asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="#" onclick="clickfp()">Add file
<br />
<br />
<asp:Button ID="btnUpload" runat="server" onclick="btnUpload_Click"
Text="Upload" />
<br />
</div>
</form>
</body>
Imran D
11-Jul-12 5:47am
View
ya its working. File upload is disabled .But if I attach any file means its not showing the file name which i have attached.
Imran D
11-Jul-12 5:31am
View
<pre lang="HTML"><head runat="server">
<script type="text/javascript" language="javascript">
function clickfp() {
var objFp = document.getElementById('objFileUpload');
objFp.click();
}
</script>
<title></title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="#" onclick="clickfp();">Add file
<br />
<asp:FileUpload ID="objFileUpload" runat="server" />
<br />
<br />
<asp:Button ID="btnUpload" runat="server" onclick="btnUpload_Click"
Text="Upload" />
<br />
</div>
</form>
</body></pre>
Imran D
11-Jul-12 5:30am
View
Deleted
<head runat="server">
<script type="text/javascript" language="javascript">
function clickfp() {
var objFp = document.getElementById('');
objFp.click();
}
</script>
<title></title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="#" onclick="clickfp();">Add file
<br />
<asp:FileUpload ID="objFileUpload" runat="server" />
<br />
<br />
<asp:Button ID="btnUpload" runat="server" onclick="btnUpload_Click"
Text="Upload" />
<br />
</div>
</form>
</body>
Imran D
11-Jul-12 4:50am
View
Deleted
its like Gmail . when you click on attach file in Gmail the browse window will appears . Like that i want. I dont want file upload control
Imran D
11-Jul-12 4:49am
View
Deleted
By clicking Both hyperlink "Attach File" & file upload the browse window is appearing
Imran D
11-Jul-12 4:47am
View
Ya file upload control is visible, it should be in disable position.only If i click on that hyperlink "Attach File" than the browse window should have to appear.By clicking Both hyperlink "Attach File" & file upload the browse window is appearing.Its like Gmail.When you click on attach file in Gmail the browse window will appears.Like that i want.I dont want file upload control
Imran D
11-Jul-12 4:34am
View
Thank you pradiprenushe . Its working , but the file upload control is enabled, what should i do to disable the file upload control?
Imran D
11-Jul-12 4:31am
View
Thank U
Imran D
11-Jul-12 3:37am
View
But how browse window appears? i dint get u
Imran D
5-Jul-12 3:10am
View
Thank u so much
Imran D
8-Jun-12 5:23am
View
How To Change the font Style of ListBox Items?
Imran D
8-Jun-12 5:23am
View
How To Change the font Style of ListBox Items?
Imran D
16-May-12 4:51am
View
where i have to write this code...
I have 5 menu buttons in the site master page
"Patient
"Doctors"
"Hospitals"
"Pathologist"
"Pharmacist"
when i click the patient link it is going to the patient page with the same button text and when i move to doctor page, hospital page etc...same button text i am finding, so now i have to change the button text when the user move to the patient page the appropriate menu button text it has to display, like for all the pages i have to change the menu button text... for doing this i am using switch case... please check the below code and help me for this problem...
protected void DynamicMenuChange()
{
switch (DocFixFrameWork.PageState)
{
case PageState.PatientAppointmentWD:
{
this.btnPatient.Text = "Book Appointment With Doctor";
this.btnDoctors.Text = "Book Appointment With Hospitals";
this.btnHospitls.Text = "Book Appointment With Pathologist";
this.btnPathologiest.Text = "Order Medicine";
this.btnPharmacist.Text = "ZA";
}
break;
case PageState.HomePage:
break;
}
Show More