16,018,938 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 Visual Basic questions
View Javascript questions
View .NET 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 sharad_sharma82 (Top 19 by date)
sharad_sharma82
30-Nov-12 0:29am
View
Please login and then add any poll and click on the image upload icon you will find that functionality.
sharad_sharma82
2-Nov-12 4:14am
View
but i am working in MVC and using json for key response below is my code so please look at this:
Here is my Html code:
htmlUrls += '<textarea id="txt' + i + '' + response[i].UrlID + '" onkeyup="Trigger('+i+',' + response[i].UrlID + ','+userid+')" onfocus="if(this.value==' + delimiter + 'Write a comment....' + delimiter + ')this.value=' + delimiter + '' + delimiter + ';" onblur="if(this.value==' + delimiter + '' + delimiter + ')this.value=' + delimiter + 'Write a comment....' + delimiter + ';" class="textbox" rows="" cols="" >Write a comment....</textarea>';
Here is my JS function :
<pre lang="cs">function Trigger(counter, urlid, userid) {
var xTriggered = 0;
$('#txt' + counter + '').keyup(function (event) {
xTriggered++;
var msg = 'Handler for .keyup() called ' + xTriggered + ' time(s).';
}).keydown(function (event) {
if (event.which == 13) {
testcommnt(counter, urlid, userid); event.preventDefault();
}
});
// var firsttime = true;
}</pre>
but when i press enter its insert the detail multiple times i dont kw why
sharad_sharma82
2-Nov-12 4:14am
View
but i am working in MVC and using json for key response below is my code so please look at this:
Here is my Html code:
htmlUrls += '<textarea id="txt' + i + '' + response[i].UrlID + '" onkeyup="Trigger('+i+',' + response[i].UrlID + ','+userid+')" onfocus="if(this.value==' + delimiter + 'Write a comment....' + delimiter + ')this.value=' + delimiter + '' + delimiter + ';" onblur="if(this.value==' + delimiter + '' + delimiter + ')this.value=' + delimiter + 'Write a comment....' + delimiter + ';" class="textbox" rows="" cols="" >Write a comment....</textarea>';
Here is my JS function :
<pre lang="cs">function Trigger(counter, urlid, userid) {
var xTriggered = 0;
$('#txt' + counter + '').keyup(function (event) {
xTriggered++;
var msg = 'Handler for .keyup() called ' + xTriggered + ' time(s).';
}).keydown(function (event) {
if (event.which == 13) {
testcommnt(counter, urlid, userid); event.preventDefault();
}
});
// var firsttime = true;
}</pre>
but when i press enter its insert the detail multiple times i dont kw why
sharad_sharma82
11-May-12 2:41am
View
http://www.dreamstime.com/
http://us.fotolia.com/
http://www.istockphoto.com/search/text/rubber/source/basic#49fd7b2
please see these site i want to do language system like this ,where user can put any language keyword and system can find the details .
sharad_sharma82
6-Apr-12 10:28am
View
i have already tryed that but its not working for me :(
sharad_sharma82
24-Feb-12 0:54am
View
but my each value field need to bind with different field values:
value="1" text=<%=Bind(abc)%>
value="2" text=<%=Bind(abc2)%>
value="3" text=<%=Bind(abc3)%>
sharad_sharma82
18-Feb-12 3:38am
View
i have used but its not working then i have applied !iscallback but it not properly working for me
sharad_sharma82
11-Feb-12 7:31am
View
Please have a look on :http://www.foreverghana.com/index.aspx
and then click on register page ,where at the bottom there is "login to facebook " button so you can see the working of the page and it will store the facebook userdetail in database.
Hope this will work foryou
sharad_sharma82
11-Feb-12 7:27am
View
basically i wiill like to first show a login to facebook button then if any user click on that it will go to login page where it will ask for login detail and then ask to allow the access of information and then it will go to the website page created for webiste.then it will store the information in database using asp.net
sharad_sharma82
2-Feb-12 2:08am
View
I want numbering in this order:
"1. Ag Silver I 0.80 0 Negative
Silver II 1.08 0 Negative
2. SU Silver I 0.80 0 Negative
Silver II 1.08 0 Negative "
but working like this :
"1. Ag Silver I 0.80 0 Negative
2 Silver II 1.08 0 Negative
3. SU Silver I 0.80 0 Negative
4 Silver II 1.08 0 Negative "
Thanks for help
sharad_sharma82
2-Feb-12 1:38am
View
i have done this and its work fine can i also show the numbering as same .
sharad_sharma82
30-Jan-12 3:50am
View
You have speicfied the tabindex 1 which is fixed but i am creating controls using for each loop ,and in my form i have 32 controls so i want to start tabbing 32+1 when i create controls using for loop so when i start tabbing its work on serial order .
Thanks
sharad_sharma82
27-Jan-12 1:59am
View
Thanks LanFanNinja its working
sharad_sharma82
24-Jan-12 7:47am
View
i have used this but its not working for me :(
sharad_sharma82
23-Jan-12 2:54am
View
Thanks SAKryukov for this great focus on these point ,i m posting my html page code and code behind page that will show the and emebed the proper data in with desgin on pdf hope this will mark the idea of my work proper
1.Html Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<base href="melisa.aleaitsolutions.co.uk/" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Melisa Diagnostics</title>
<!-- MASTER STYLESHEET-->
</head>
<body style="font-size: 12px;">
<table style="width: 900px; margin-left: auto; margin-right: auto; height: auto !important;">
<tr>
<td>
<table style="width: 900px; margin-left: auto; margin-right: auto; height: auto !important;"
border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td colspan="2" align="left" valign="top">
<span style="font-size: 18px; color: #26276d;">Test report</span>
<br />
<span style="font-size: 18px;">[test_no]</span>
</td>
<td valign="top" style="text-align: right">
[Elements]
</td>
</tr>
<tr>
<td width="460" align="left" valign="top">
<span style="font-size: 18px; color: #26276d;">Test report for</span>
<br />
<span style="font-size: 18px;">[PatientName]</span>
</td>
<td width="200" align="left" valign="top">
<span style="font-size: 18px; color: #26276d;">Neg. control</span>
<br />
<span style="font-size: 14px; color: #666666;">[Negcontrol]</span>
</td>
<td align="left" valign="top">
<span style="font-size: 18px; color: #26276d;">Test date</span>
<br />
<span style="font-size: 14px; color: #666666;">[TestDate]</span>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<table width="480" border="0" cellpadding="0" cellspacing="0">
<tr style="font-size: 10px; color: #26276d;">
<td width="10" align="left" valign="top">
</td>
<td width="100" align="left" valign="top">
Code
</td>
<td width="315" align="left" valign="top">
Substance
<br />
(in order of reaction)
</td>
<td width="200" align="left" valign="top">
Stimulation
<br />
Index
</td>
<td align="left" valign="top">
Comments
</td>
</tr>
[Substance]
</table>
</td>
</tr>
<tr>
<td>
<table width="600" border="0" cellpadding="0" cellspacing="0">
<tr>
<td style="font-size: 10
sharad_sharma82
21-Jan-12 3:50am
View
I have datalist control where i call iframe for showing pdf file:
1. <%# Eval("fileupload4") != "" && Eval("fileupload4").ToString().Contains(".pdf")? "<iframe id='iframes' width='900px' height='300px' runat="server" src='iframe.aspx?filename=Eval('fileupload4').ToString()'></iframe>" :
here i am checking that file extension is pdf or not
2. <asp:Image Width="100" ID="Image1" Style="color: White; border-width: 0px;" Height="100px"
ImageUrl='<%# Bind("fileupload4", "~/QuizAttachment/{0}") %>' runat="server" />
in this i also want to check that the file extension is ".jpeg,gif,.bmp" so that i ll use same column for image control for showing image
Thanks
sharad_sharma82
21-Jan-12 3:50am
View
I have datalist control where i call iframe for showing pdf file:
1. <%# Eval("fileupload4") != "" && Eval("fileupload4").ToString().Contains(".pdf")? "<iframe id='iframes' width='900px' height='300px' runat="server" src='iframe.aspx?filename=Eval('fileupload4').ToString()'></iframe>" :
here i am checking that file extension is pdf or not
2. <asp:Image Width="100" ID="Image1" Style="color: White; border-width: 0px;" Height="100px"
ImageUrl='<%# Bind("fileupload4", "~/QuizAttachment/{0}") %>' runat="server" />
in this i also want to check that the file extension is ".jpeg,gif,.bmp" so that i ll use same column for image control for showing image
Thanks
sharad_sharma82
19-Jan-12 2:25am
View
Hi if you can to add the image file from code file the use the below code and it will work fine for me :
1.apply the [img] that refer image tag in desgin part where you want to show the image
<td valign="top" style="text-align: right">
[Img]
</td>
2.replace this [img] with image tag
string imgpath = "<img src='' style='width:50;height:50;padding-left-100px;' runat="server" id='ig' alt='' />";
contents = contents.Replace("[img]", imgpath .ToString());
//contents = contents.Replace("[ORDERDATE]", DateTime.Now.ToShortDateString());
var parsedHtmlElements = HTMLWorker.ParseToList(new StringReader(contents), null);
// Enumerate the elements, adding each one to the Document...
foreach (var htmlElement in parsedHtmlElements)
document.Add(htmlElement as IElement);
sharad_sharma82
18-Jan-12 10:27am
View
Hello ravi is it also show the Images as well as the border of the table and css applied , i have done this same right now but not able to show the css and table borders
Thanks
Show More