15,905,590 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 sajithnet (Top 67 by date)
sajithnet
16-Jan-13 8:08am
View
Thanks patro,
i followed this link but still no result in the case of chrome.
can u share the working sample
sajithnet
19-Nov-12 3:16am
View
Sorry for very late reply almino,Please view the below link. http://social.msdn.microsoft.com/Forums/en-AU/wpf/thread/5a81d39d-a77c-470e-9b73-d664490ffa4f
sajithnet
19-Nov-12 3:15am
View
Sorry for very late reply Thomas,Please view the below link. http://social.msdn.microsoft.com/Forums/en-AU/wpf/thread/5a81d39d-a77c-470e-9b73-d664490ffa4f
sajithnet
19-Nov-12 3:13am
View
Deleted
Sorry for very late reply Thomas,Please view the below link.
http://social.msdn.microsoft.com/Forums/en-AU/wpf/thread/5a81d39d-a77c-470e-9b73-d664490ffa4f
sajithnet
10-Jul-12 11:49am
View
yes you are correct
sajithnet
28-Mar-12 2:06am
View
thank you,mate
i got the answer. public bool Limit(string path) { const int limit = 5; float size = ToByteArray(path).Length / 1024f / 1024f;//first convertto kb then to mb if (size > limit) { SendMessage("Uploading Limit Exceeds"); return false; } return true; } public byte[] ToByteArray(string path) { byte[] buffer = File.ReadAllBytes(path); return buffer; }
sajithnet
28-Mar-12 2:06am
View
thanks u ganesan,
i got the answer.
public bool Limit(string path) {
const int limit = 5;
float size = ToByteArray(path).Length / 1024f / 1024f;//first convertto kb then to mb
if (size > limit) {
SendMessage("Uploading Limit Exceeds");
return false;
}
return true;
}
public byte[] ToByteArray(string path) {
byte[] buffer = File.ReadAllBytes(path);
return buffer;
}
sajithnet
28-Mar-12 0:14am
View
thanks this is what i needed ,thankyou very much
sajithnet
26-Mar-12 1:47am
View
thanks Meel,this is not for video,sound player will not play vedio
sajithnet
26-Mar-12 1:46am
View
public byte[] ToByteArray(string path) {
byte[] buffer = File.ReadAllBytes(path);
return buffer;
}
sajithnet
25-Mar-12 23:56pm
View
thanks,Mazen el Senih
see my byte[] is of vedio type(.avi) so how can i convert to native format
sajithnet
25-Mar-12 23:56pm
View
thanks,Griff
see my byte[] is of vedio type(.avi) so how can i convert to native format
sajithnet
24-Mar-12 9:40am
View
thanks swapnil,
sajithnet
24-Mar-12 9:38am
View
thanks SA
sajithnet
24-Mar-12 3:28am
View
thanks Shahin,
sajithnet
23-Mar-12 7:32am
View
Are you going to accept this answer formally after all (green button)?
sajithnet
23-Mar-12 7:30am
View
thans Bjon,
sajithnet
19-Mar-12 6:35am
View
thanks
sajithnet
19-Mar-12 3:56am
View
can u please send the full code
sajithnet
19-Mar-12 1:18am
View
sorry i didn't get u SA
sajithnet
18-Mar-12 2:52am
View
thank a lot.--SA
sajithnet
16-Mar-12 5:20am
View
Thanks SA,
Do you Practically worked on XPS either fixed/Flow Document.
Regards,
sajith
sajithnet
14-Mar-12 8:07am
View
thanks SA
"fluid-layout document is fixed structurally and carries fixed data".??
then why .net provide flow document this is just opposite of what u said right?
sajithnet
13-Mar-12 3:48am
View
thanks Abhinav
sajithnet
13-Mar-12 3:47am
View
thanks SA,
you are correct.but my problem is that only Document.Table is more flexible
in flow document .but it does not support binding like we have in grid/Listview.
if we are using grid in flow document say the grid has 100 row these rows will
only fit with the height of grid with scroll option.so i need a control that
fulfills data-binding,repeated column headers if there is overflow to another-page.
can u please go through my project on https://skydrive.live.com/?cid=96FB4F1E3660C28B&id=96FB4F1E3660C28B!103
sajithnet
12-Mar-12 4:08am
View
thanks
sajithnet
8-Mar-12 22:50pm
View
thank you SpringLo,
what i was missing is to set datacontext for Tablerowgroup.when i set this it work fine.
<Table xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:CHB.SCAMPS.Clinical;assembly=CHB.SCAMPS.Clinical">
<Table.Columns>
<TableColumn Width="340"/>
<TableColumn Width="340"/>
</Table.Columns>
<TableRowGroup>
<TableRowGroup.DataContext>
<local:freestylesection>
</TableRowGroup.DataContext>
<TableRow FontFamily="MS Sans Serif" FontWeight="Bold" FontSize="20" Foreground="#FFFFFFFF" Background="#FF6495ED">
<TableCell TextAlignment="Center" LineHeight="30" ColumnSpan="2">
<blockuicontainer>
<textblock textwrapping="Wrap" name="Column" text="{Binding Title,Mode=OneWay}">
</TableCell>
</TableRow>
</TableRowGroup>
</Table>
Regards,
sajith
sajithnet
7-Mar-12 1:43am
View
many thanks Abhinav,
i have a question how can i set a property of a class to the
<TableRowGroup removed="White" DataContext="{Binding Source={StaticResource InputData}, Path=[0]}">.
Say i have a class "Text1.cs" it is having a property called name how can i set to the source
sajithnet
10-Feb-12 6:18am
View
hay steve,
As u mentioned i made a usercontrol of Header(Header.xaml)and placed the grid
with rect and text block there .iam calling this template in my Report.xaml
i need to get the Textblock object and need to the Text property of it.can i do this.
Code:
StreamReader reader = new StreamReader(new FileStream(@"Templates/Header.xaml",FileMode.Open,FileAccess.Read));
XmlTextReader xmlReader = new XmlTextReader(reader);
flowDocument = XamlReader.Load(xmlReader) as FlowDocument;
reader.Close();
flowDOcumentViewer.Document = flowDocument;
Regards,
sajith
sajithnet
10-Feb-12 0:54am
View
thanks SteveAdey.
sajithnet
9-Feb-12 10:44am
View
sorry for late replay.ur post helps me a lot thank u very much
sajithnet
9-Feb-12 10:21am
View
many thanks chris,iam a sure i will do as per u wrote .thanks a lot
sajithnet
9-Feb-12 10:19am
View
iam really really sorry steve.i was a beginner in wpf and my task was huge and my time is very less doing this report stuff. i was very panic .iam thankful to u a lot
take care
sajithnet
7-Feb-12 3:40am
View
thankyou,
Is third party provide the QR for wpf
sajithnet
31-Jan-12 22:29pm
View
many thanks for ur support but problem still exists
sajithnet
30-Jan-12 23:38pm
View
thank you Abhinav S
sajithnet
30-Jan-12 22:31pm
View
many thanks,SA
All iam doing is creating the Logo for XPS report.The logo is not showing in original format.
Bitmap bitmap = Resources.Logo;
drawingContext.DrawImage(bitmap,new Rect(Sizes.Gutter + 10,Sizes.Margin + 10,50,30));
sajithnet
30-Jan-12 3:40am
View
many thanks for ur help here iam creating every thing in fly.
i used DocumentPaginator and set the pagesize(10,10)expecting the page will
get break after this size but no result
DocumentPaginator paginator = ((IDocumentPaginatorSource)doc.GetFixedDocumentSequence()).DocumentPaginator;
paginator.PageSize = new System.Windows.Size(10,10);
DocumentPage page = paginator.GetPage(0);//This is still showing original size not size(10,10)
return doc;
sajithnet
29-Jan-12 3:16am
View
Many thanks SAKryukov
sajithnet
29-Jan-12 1:35am
View
many thanks SAKryukov .i tried with DrawText but my need is to create the
report dynamically .while drawing text i need to create a rectangle and place
the Text inside the rectangle.
please check the link .here i have given the sample report format.
http://social.expression.microsoft.com/Forums/en-US/wpf/thread/dbbcdbf6-4fe8-4ead-9436-03105b0308d7
[
^
]
sajithnet
20-Jan-12 3:15am
View
it is a good article but i need to create all design in memory.
and show the report(XPS format) in documentviewer.
sajithnet
9-Jan-12 22:25pm
View
Controls.Add(viewer)we can add only System.Windows.Forms(controls)
but Document-viewer(viewer) is a System.Windows.Controls.
in the case of visibility i removed what u told still iam getting
bool bln = viewer.IsVisible;//here it is false.
My need is to show the XPS report on XPSviewer but i
was not able to find any samples so i tried with Document-viewer.if u have any
good samples to show the XPS report on XPSviewer please send it.
sajithnet
10-Oct-11 6:11am
View
yes now u got my need.
iam having a tree view based on selection on the node new pages will be displayed.
fron the treeview the response.redirect is called to generate the new page this will reload whole page
so my updatepanel will be of no use if i use repose.redirect.so in order to avoid reloading whole page
iam using jquery .since reponce.redirect is called in treenode i cannnot populate the newpage on the DIV of
tree since this is menu so i wiil declare the Div in new page and display the newpage on that same page div.i cannot
change the existing code because this project is allredy done i need to incorporate Ajax to stop postback.
sajithnet
10-Oct-11 5:50am
View
dear murali,Many thanks for ur support this is not i need i will post ny need.
Hi,
Iam loading Default2.aspx from MainPage.aspx. i need to display the
condense of Default2.aspx in the Div(maincontent) which i declared in Default2.aspx.
with the below code iam getting the DIV object of Default2.aspx from MainPage.aspx.
but the Default2.aspx is not showing ,can any one correct the below code.
--------------------------------------------------------------
MainPage.aspx(iam calling GetPage(PageName) from MainPage.aspx from here i need to call the Div of
Default2.aspx and Load Default2.aspx page in DIV(maincontent).
-----------------------------------------
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="MainPage.aspx.cs" Inherits="MainPage" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title>Testing Jquery methos</title>
</style>
<script src="Scripts/jquery-1.4.1-vsdoc.js" type="text/javascript"></script>
<script src="Scripts/jquery-1.4.1.js" type="text/javascript"></script>
<script src="http://code.jquery.com/jquery-latest.js"></script>
<script language ="javascript" >
function GetPage(pagename) {
$.ajax({ url: 'Default2.aspx', type: 'POST', async: false, data: { param: 'abcd' },
success: function(obj) {
var div = $('#maincontent', obj);
$(div).load('Default2.aspx', function() {
});
}
});
}
</script>
</head>
<body>
<form id="form2" runat="server">
</div>
</div>
</div>
<asp:Button ID="Button1" runat="server" onclick="Button1_Click" Text="Button" />
</form>
</body>
</html>
--------------------------------------------------------------------------
Default2.aspx----
------------------------------------------------------------------------------
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default2.aspx.cs" Inherits="Default2" %>
<!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 runat="server">
<title></title>
</head>
<body id="bd" bgcolor="#ff9999">
<form id="form3" runat="server">
<div id="maincontent" style="width:100%"> This is Home content </div>
<asp:TextBox ID="TextBox1" runat="server">
<asp:Button ID="Button1" runat="server" Text="Button" />
</form>
</body>
</html>
sajithnet
10-Oct-11 5:43am
View
Deleted
..
sajithnet
10-Oct-11 4:38am
View
dear murali many thanks for ur help .in the below code iam getting the DIV(object) of Default2.aspx but the page is not populating in the DIV?
function GetPage(pagename) {
$.ajax({ url: 'Default2.aspx', type: 'POST', async: false, data: { param: 'abcd' },
success: function(obj) {
var div = $('#maincontent', obj);
div.load("Default2.aspx", function() {
});
}
});
}
sajithnet
8-Oct-11 8:07am
View
or just search the string for 'id="whatever"' end extract whatever directly from the string. can u share the code
sajithnet
8-Oct-11 7:57am
View
can u give the code for that
sajithnet
8-Oct-11 6:59am
View
thanks for ur help.my problem is that iam getting the html condense in
function(obj) from that i need to extract the div id="dynamic"
sajithnet
8-Oct-11 2:09am
View
In the below sample iam loading default17.aspx using jquery .now the page is displayed on the current page DIV i need to display on the DIV i declared on the default17.aspx.
-------------------------------------------------------------------------
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
<script src="Scripts/jquery-1.4.1-vsdoc.js" type="text/javascript"></script>
<script src="Scripts/jquery-1.4.1.js" type="text/javascript"></script>
<script language ="javascript" >
$(document).ready(function () {
$("#resultdiv").load("default17.aspx", {}, function (data) {
alert("loading complete");
});
});
</script>
</head>
<body>
<form id="form1" runat="server">
<div>
<div id="resultdiv">
</div>
</div>
</form>
</body>
</html>
------------------------------------------------------------
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default17.aspx.cs" Inherits="Default17" %>
<!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 runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<div id="resultdiv" >
</div>
</form>
</body>
</html>
sajithnet
8-Oct-11 1:58am
View
Deleted
what my question is i need to display the page on that page div
see the example:
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
<script src="Scripts/jquery-1.4.1-vsdoc.js" type="text/javascript"></script>
<script src="Scripts/jquery-1.4.1.js" type="text/javascript"></script>
<script language ="javascript" >
$(document).ready(function () {
$("#resultdiv").load("default17.aspx", {}, function (data) {
alert("loading complete");
});
});
</script>
</head>
<body>
<form id="form1" runat="server">
<div>
<div id="resultdiv">
</div>
</div>
</form>
</body>
</html>
see here iam loading default17.aspx and this p[age must be shown on that page Div not on the calling Page
sajithnet
8-Oct-11 1:53am
View
i need to display the default17.aspx on the DiV of default17.aspx page .
sajithnet
7-Oct-11 8:38am
View
caan u explain with a sample
sajithnet
7-Oct-11 8:36am
View
how
sajithnet
7-Oct-11 7:26am
View
Dear Murali i need one more help.how can i call the <Div> of redirecting from the
current page that means iam giving <div id="maincontent" style="width:100%; background-color:White;"> This is Home content </div> in the redirecting page
and i need to call in $("#maincontent").load(pagename+".aspx #maincontent", function () {} so that the condense must display in the <Div> of redirected page.
sajithnet
7-Oct-11 5:57am
View
Great Murali i got it now the condense will show in side the div.but the URL does not change rt?
Thank You very much Murali
sajithnet
7-Oct-11 5:38am
View
dear mulari many thanks for ur help .but ths code does not work.
what is #maincontent in the below code and please giove the code to give inside the function(// make content visible with effect ) still redirect to new page is not happening
function openpage(pagename) {
$("#maincontent").load(pagename+".aspx #maincontent", function () {
// make content visible with effect
});
}
sajithnet
7-Oct-11 5:09am
View
can u plase give the sample code
sajithnet
7-Oct-11 0:50am
View
please give a valid answer
sajithnet
5-Oct-11 6:53am
View
please explain with good English
sajithnet
3-Oct-11 8:37am
View
We r using MasterPage in share point server and using panel in my solution.
sajithnet
22-Sep-11 3:11am
View
it is latest version i need old
sajithnet
20-Sep-11 8:30am
View
thanks MRB
sajithnet
20-Sep-11 7:38am
View
http://forums.asp.net/p/1663801/4348152.aspx
sajithnet
20-Sep-11 7:35am
View
AnupDasGupta ur comment is really useful thanks a lot dear.hope i will get help further
sajithnet
16-Sep-11 7:25am
View
uy
sajithnet
16-Sep-11 5:49am
View
i need to create a tool for copy past based on my question.i googled but
there is no source code available.hope u will help me
Show More