15,886,137 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 agha_ali22 (Top 51 by date)
agha_ali22
9-Feb-14 11:12am
View
already tried that solution
agha_ali22
16-Jan-14 18:38pm
View
stored procedures are created :) , all i wanted to know for sake of info that why select * from old table (update tbl set col1= 2) is working fine in command line tool that comes with db2, the same query when executed does not work in jdbc
agha_ali22
16-Jan-14 16:46pm
View
Sorry, Actually Approvernum is not used in any table , it is there to tell that this is the 3rd approver of role1(1,role1,3,tyty).
agha_ali22
16-Jan-14 11:34am
View
as i stated ealier that this query "select * from old table (update tbl set col1= 2) " is working fine in db2 command line ,actually i am working on an ibm product it creates db by itself so i was little bit of hesitant in creating stored procedure , but now i will, please see the updated question i have another problem
agha_ali22
15-Jan-14 7:23am
View
Please if you can give me some example with my scenario.
agha_ali22
15-Jan-14 4:38am
View
but i am not using it in transition
agha_ali22
15-Jan-14 2:04am
View
see the updated question
agha_ali22
15-Jan-14 1:58am
View
i did update and retrive from same query and it is working fine in db2 command line, but not in java
agha_ali22
9-Jan-14 6:20am
View
working hours
agha_ali22
9-Jan-14 4:12am
View
ignore the work completed flag just wanted to tell you that i am already filtering the records. to summarize it , all i wanted to get is if time on work exceeded then the max time allocated in bussiness hours and excluding holidays.
agha_ali22
9-Jan-14 2:14am
View
no it eill be that date when user will start the work it may be 2 days earlier or yesterday, there is also work completed flag which i am check when querying db that do not include that result
agha_ali22
9-Jan-14 2:02am
View
list of dates that contain holiday we have to exclude that time and last updated is the date when user will start the work
agha_ali22
9-Jan-14 1:46am
View
see the updated question
agha_ali22
1-Jan-14 13:55pm
View
can u please tell me some links/examples of how can i connect it in .net and java and in .net and in .net.
agha_ali22
16-Apr-13 12:25pm
View
Now I am using SignalR which exactly do what i want,but as my question was concerned your answer is correct
agha_ali22
27-Feb-13 5:42am
View
but issue is same as above
agha_ali22
8-Feb-13 11:30am
View
i fixed the issue by replacing SOFT HYPHEN to HYPHEN-MINUS thanks for giving me the hint "...... trying to work with string representation of data instead of data. "
agha_ali22
7-Feb-13 2:03am
View
i am still stuck at this please anwser only this why r3 and "1-Jan-2007" are not equal because when i print the two both has same value
in case you miss s = is html code of '-'(hypen) is not showing
agha_ali22
7-Feb-13 1:32am
View
the problem is why r3 and string literal "1-Jan-2007" are not equal. Is there an Encoding issue because when i DateTime.TryParseExact("1-Jan-2007", format, null....
it parses the date correct when when i use r3 the problem occurs
agha_ali22
15-Sep-12 13:44pm
View
no reply yet
agha_ali22
26-Aug-12 1:20am
View
lets suppose we have 5x5 table now can we use any jquery selector
agha_ali22
25-Aug-12 23:10pm
View
thanks for diagonal solution, so i have to make 12 checks(5 rows,5 cols,2 diagonal) and increment an index and if its 5 return it
agha_ali22
9-Aug-12 11:49am
View
public static void SkewAnimation(this UIElement targetControl)
{
DoubleAnimation skewAnimationX = new DoubleAnimation(0, 360, new Duration(TimeSpan.FromSeconds(3)));
Storyboard.SetTarget(skewAnimationX, targetControl);
Storyboard.SetTargetProperty(skewAnimationX, new PropertyPath(SkewTransform.AngleXProperty));
Storyboard sb = new Storyboard();
sb.Children.Add(skewAnimationX);
sb.Begin();
}
this is not working either .any idea what is the problem
agha_ali22
9-Aug-12 11:48am
View
Deleted
public static void SkewAnimation(this UIElement targetControl)
{
DoubleAnimation skewAnimation = new DoubleAnimation(0, 360, new Duration(TimeSpan.FromSeconds(3)));
Storyboard.SetTarget(skewAnimation, targetControl);
Storyboard.SetTargetProperty(skewAnimation, new PropertyPath(SkewTransform.AngleXProperty));
Storyboard sb = new Storyboard();
sb.Children.Add(skewAnimation);
sb.Begin();
}
this is not working
agha_ali22
8-Aug-12 17:41pm
View
i have a c# program that insert image or text in postscript file what i have done is create an eps and insert into the form that is working ok. but i am converting text to image and then insert it as eps form , i have read some where that postscript does not support textbox, as your question, i want to insert the form as a resource.
agha_ali22
7-Aug-12 10:02am
View
i cannot do it because in the table there is another columns (sorry i should have mentioned it earlier) status (values of status rejected,approved ,pending, reviewed, reassigned) and SP is returning the values which have pending status along with RoleID, CompanyID in where clause. project with id 4 can have status pending then in next check update project with id 3 have pending status.What can i do in this case?
Can i pass the projectIDs of current project in div as a querystring to the handler and then pass it to SP an in query write something like this e.g
not in (projectids)?
agha_ali22
7-Aug-12 5:17am
View
Identity field
agha_ali22
7-Aug-12 1:04am
View
GetData just calls a stored procedure and return DT e.g
my question is first i get this data
(projectid,pname,description,....)
(1,"ASD","asdsadsad"),
(2,"xzcxz","asdsadsad"),
(3,"sdf","asdsadsad")
and then in checklatest
(1,"ASD","asdsadsad"),
(2,"xzcxz","asdsadsad"),
(3,"sdf","asdsadsad"),
(4,"fdgf","aiuiudsadsad")
now i only want '4' data i can pass the querystring when i call the .ashx and remove those from the datatable
agha_ali22
7-Aug-12 0:18am
View
projectID
agha_ali22
6-Aug-12 23:49pm
View
ok,thanks
agha_ali22
6-Aug-12 23:44pm
View
In mail: Sunday, 5 August 2012 11:17 AM
nrynoel has posted an answer to your question about "Insert image ones and use the reference in multiple pages in pdf":
agha_ali22
4-Aug-12 9:07am
View
no that was not what i looking for
agha_ali22
31-Jul-12 8:09am
View
<!DOCTYPE HTML>
<html>
<head>
<title>content</title>
<script type="text/javascript" src="Scripts/jquery-1.4.1.min.js">
</script>
<script type="text/javascript">
var ws;
$(function () {
$('#btn_Start').click(function () {
ws = new WebSocket("ws://localhost:3202");
ws.onerror = function () {
alert("error");
}
ws.onopen = function () {
// Web Socket is connected, send data using send()
//ws.send("Message Coonected to server");
alert("Connection opened...");
};
ws.onmessage = function (evt) {
var received_msg = evt.data;
alert("Message is received..." + received_msg);
};
ws.onclose = function () {
// websocket is closed.
alert("Connection is closed...");
};
});
$('#btn_Send').click(function () {
ws.send("Custom message");
});
});
</script>
</head>
<body>
<div id="sse">
<!--
Run WebSocket
-->
<button id="btn_Start">
Start</button>
<button id="btn_Send">
Send</button>
</div>
</body>
</html>
this is not working either ,the messages are not sent but when i close or refresh the browser all the messages are sent to the server at once , the open is called immediately. but when i use the fiddler all the message are send when i press the send button(immediately)
agha_ali22
27-Jul-12 2:09am
View
i have something like it but empty image is created
public System.Drawing.Image ConvertXamltoImage(string XamlString, int Width, int Height)
{
UIElement visual = XamlReader.Load(System.Xml.XmlReader.Create(new StringReader(XamlString))) as UIElement;
Size size = new Size(Width, Height);
RenderTargetBitmap bmpCopied = new RenderTargetBitmap(Width, Height, 96, 96, PixelFormats.Pbgra32);
DrawingVisual dv = new DrawingVisual();
using (DrawingContext dc = dv.RenderOpen())
{
VisualBrush vb = new VisualBrush(visual);
dc.DrawRectangle(vb, null, new Rect(new Point(), new Size(Width, Height)));
}
bmpCopied.Render(dv);
PngBitmapEncoder png = new PngBitmapEncoder();
png.Frames.Add(BitmapFrame.Create(bmpCopied));
MemoryStream stream = new MemoryStream();
png.Save(stream);
System.Drawing.Image img = System.Drawing.Image.FromStream(stream);
stream.Flush();
stream.Close();
return img;
}
agha_ali22
6-Jul-12 9:22am
View
actually i have two client app one in Silverlight which is working perfectly now i want to build a desktop app using same service.(async pattern)
agha_ali22
6-Jul-12 9:20am
View
i want to do the method call async e.g
method1begin(......)
metod1end(.......)
agha_ali22
3-Jul-12 3:41am
View
thanks i will try
agha_ali22
3-Jul-12 3:33am
View
calender and date picker show year and month i only wanted to show the dates(1-31) and select from it
agha_ali22
25-Jun-12 10:14am
View
did that solved your problem because i haven't tried it
agha_ali22
25-Jun-12 5:06am
View
thanks
agha_ali22
24-Jun-12 8:11am
View
An interesting situation when i run fiddler all works fine , when i close it only connection is opened but no message are exchanged?? what is happening????
agha_ali22
24-Jun-12 7:50am
View
see my solution
agha_ali22
24-Jun-12 1:56am
View
Deleted
'option value =' is missing
agha_ali22
24-Jun-12 1:47am
View
it will append the faizan in the last i want to append without disturbing its order
agha_ali22
24-Jun-12 1:46am
View
var handles = list.sort() is sorting the array
agha_ali22
21-Jun-12 15:30pm
View
i'm using vs 2010 and my Platform Target value to x86, although i changed its value to 64 and to any cpu but does have no affect
agha_ali22
18-Jun-12 6:40am
View
Server Side Events is a more basic way to send one way data from the server to the client. It works like a long request from the clients JavaScript function where data can is returned bit by bit during the response and each time a bit is returned a JavaScript event is triggered.
agha_ali22
18-Jun-12 5:24am
View
what i want is to notify a group of clients that something happened , now i can notify all the connected clients what i want is notify a group
Here is the Default.aspx file<script type="text/javascript">
window.onload = function () {
if (window.EventSource == undefined) {
document.getElementById('targetDiv').innerHTML = "Your browser doesn't support Server Side Events.";
}
var source = new EventSource('SSEHandler.aspx');
source.onopen = function (event) {
document.getElementById('targetDiv').innerHTML += 'Connection Opened.<br>';
};
source.onerror = function (event) {
if (event.eventPhase == EventSource.CLOSED) {
document.getElementById('targetDiv').innerHTML += 'Connection Closed.<br>';
}
};
source.onmessage = function (event) {
$("#targetDiv").append(event.data);
};
}
</script>
<div id="targetDiv">
</div>
and here is 'SSEHandler.aspx' cs
protected void Page_Load(object sender, EventArgs e)
{
Response.ContentType = "text/event-stream";
while (true)
{
if(checksomecondition())
{
Response.Write(string.Format("data: {0}\n\n","Hello"));
Response.Flush();
}
i++;
System.Threading.Thread.Sleep(3000);
}
}
now i want to send the response to the desired user. this can be done by long pooling but i want to do with html5 Server sent event any idea?
agha_ali22
17-Jun-12 3:13am
View
i have an aspx page which send notification to connected clients (connected by Html5 event source) and now i wanted to send notification to a specific username which i have saved in session or in some scenario i want to send notification to a group which is also saved in session as groupid(admin(1),manager(2),e.t.c)
agha_ali22
15-Jun-12 6:58am
View
i have asp:ToolkitScriptManager
agha_ali22
15-Jun-12 6:56am
View
yes
Show More