Tuesday, November 30, 2010

Submitting a Windows Phone 7 Application to the Market - CodeProjec

http://www.codeproject.com/Articles/129660/Submitting-a-Windows-Phone-7-Application-to-the-Ma.aspx

Monday, November 29, 2010

Twitter new api C# :- continuous posting twitter

Continuous posting in twitter, using c# and new api..
 
 
using
System;

using

System.Data;

using

System.Configuration;

using

System.Collections;

using

System.Web;

using

System.Web.Security;

using

System.Web.UI;

using

System.Web.UI.WebControls;

using

System.Web.UI.WebControls.WebParts;

using

System.Web.UI.HtmlControls;

using

oAuthExample;

using

System.Threading;

public

partial class Default6 : System.Web.UI.Page

{

protected void Page_Load(object sender, EventArgs e)

{

string url = "";

string xml = "";

oAuthTwitter oAuth = new oAuthTwitter();

if (Request["oauth_token"] == null)

{

oAuth.CallBackUrl =

"http://localhost/twitterpost/default6.aspx";

Response.Redirect(oAuth.AuthorizationLinkGet());

}

else

{

Response.Write(oAuth.TokenSecret.Length);

if (oAuth.TokenSecret.Length <= 0)

{

oAuth.AccessTokenGet(Request[

"oauth_token"], Request["oauth_verifier"]);

}

if (oAuth.TokenSecret.Length > 0)

{

url =

"http://twitter.com/account/verify_credentials.xml";

xml = oAuth.oAuthWebRequest(

oAuthTwitter.Method.GET, url, String.Empty);

apiResponse.InnerHtml = Server.HtmlEncode(xml);

url =

"http://twitter.com/statuses/update.xml";

xml = oAuth.oAuthWebRequest(

oAuthTwitter.Method.POST, url, "status=" + oAuth.UrlEncode("#Cybermonday deals on Football Products http://visli.com/mainsearch/Football/All/1.aspx"));

apiResponse.InnerHtml = Server.HtmlEncode(xml);

Response.Write(

"time 1 =>" +DateTime.Now.ToLongTimeString());

System.Threading.

Thread.Sleep(120000);

Response.Write(

"<br>time 2 =>" + DateTime.Now.ToLongTimeString());

// url = "http://twitter.com/statuses/update.xml"; Trousers

xml = oAuth.oAuthWebRequest(

oAuthTwitter.Method.POST, url, "status=" + oAuth.UrlEncode("#Cybermonday deals on basketball... http://visli.com/mainsearch/basketball/All/1.aspx"));

apiResponse.InnerHtml = Server.HtmlEncode(xml);

}

}

}

}

JD Edwards: How to Remove a RB batch from System

One day a user called  and ask me to remove a duplicate RB (Cash) batch from the system, I did following:
my batch# was 70242
 
--delete from proddta.f03b14 where rzicu=70242
--delete  from proddta.f03b13 where ryicu=70242
--delete  from proddta.f03b11 where rpicu=70242
--delete  from proddta.f0911 where glicu=70242
 
after that I ran repost R099102 with related accounts (select glaid from proddta.f0911) to fix account balance.
 
 
 
 
Note: JD Edwards not allowing you to use sql, try this with your own risk.

Sunday, November 28, 2010

10 Essential Tools for Building ASP.NET Websites

nice article 10 Essential Tools for Building ASP.NET Websites

Creating a ASP.NET MVC HTML Helper for Silverlight

This article covers how to  create a custom ASP.NET MVC HTML Helper that will render the required HTML to host a Silverlight application (XAP file). Some knowledge of ASP.NET MVC is required.



Friday, November 26, 2010

Routing in ASP.NET

Routing in ASP.NET doesn’t require that you name your routes, and in many cases it works out great. When you want to generate an URL, you grab this bag of values you have lying around, hand it to the routing engine, and let it sort it all out.

http://haacked.com/archive/2010/11/21/named-routes-to-the-rescue.aspx

Wednesday, November 24, 2010

Maximum request length exceeded. asp.net

How to fix this ?

Maximum request length exceeded.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Web.HttpException: Maximum request length exceeded.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[HttpException (0x80004005): Maximum request length exceeded.]    System.Web.HttpRequest.GetEntireRawContent() +11141623    System.Web.HttpRequest.FillInFormCollection() +129    System.Web.HttpRequest.get_Form() +119    System.Web.HttpRequest.get_HasForm() +11072695    System.Web.UI.Page.GetCollectionBasedOnMethod(Boolean dontReturnNull) +124    System.Web.UI.Page.DeterminePostBackMode() +83    System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +270 

 
 

Tuesday, November 23, 2010

Accessing Server-Side Data from Client Script: Using WCF Services with jQuery and the ASP.NET Ajax Library

Accessing Server-Side Data from Client Script: Using WCF Services with jQuery and the ASP.NET Ajax Library

Today's websites commonly exchange information between the browser and the web server using Ajax techniques - the browser executes JavaScript code typically in response to the page loading or some user action. This JavaScript makes an asynchronous HTTP request to the server. which then processes the request and, perhaps, returns data that the browser can then seamlessly integrate into the web page. Two earlier articles - Accessing JSON Data From an ASP.NET Page Using jQuery and Using Ajax Web Services, Script References, and jQuery, looked at using both jQuery and the ASP.NET Ajax Library on the browser to initiate an Ajax request and both ASP.NET pages and Ajax Web Services..more...

http://www.4guysfromrolla.com/articles/111710-1.aspx

C# Twitter auto post error

How to fix this?please help.
Message: Sys.WebForms.PageRequestManagerServerErrorException: The remote server returned an error: (401) Unauthorized.
Line: 868
Char: 13
Code: 0
URI: http://localhost/twitterpost/ScriptResource.axd?d=xx5DcacSwVVveclpzpHq2-LXWURIUfynVz7pWaz73heKi6nCrTVxg5HtpwrjU7BOloH-k8h0BVS-wYBpVV-156MzkfrUqR9pOcJxUOB35X5rSsvuR97HR16wGYIDHMP8YE8SkccccL8iujeA5OmyhtO2XUbN6-VETwaajPuOmuysRn17A9FbpPaAyuMN0&t=2610f696

Monday, November 22, 2010

JD Edwards : Sales count by year/month and search type

select
datepart(yy,DATEADD(dy, cast(SDTRDJ as varchar(10)) % 1000, DATEADD(yy, cast(SDTRDJ as varchar(10)) / 1000,-1)) ),
datepart(mm,DATEADD(dy, cast(SDTRDJ as varchar(10)) % 1000, DATEADD(yy, cast(SDTRDJ as varchar(10)) / 1000,-1)) ),
abat1,count(*) from sales_f4211_f42119 --(union f4211/f42119)
left outer join proddta.f0101 on sdshan=aban8
where sddcto='SO' and sdnxtr=999 and sdlttr<>980
group by abat1,
datepart(yy,DATEADD(dy, cast(SDTRDJ as varchar(10)) % 1000, DATEADD(yy, cast(SDTRDJ as varchar(10)) / 1000,-1)) ),
datepart(mm,DATEADD(dy, cast(SDTRDJ as varchar(10)) % 1000, DATEADD(yy, cast(SDTRDJ as varchar(10)) / 1000,-1)) )

Currency Converter For Windows Phone 7

Build a simple currency converter using a converter web service from start to finish for the Windows
Phone 7 using Microsoft Visual Studio Express 2010 for the Windows Phone.



http://www.codeproject.com/KB/windows-phone-7/Phone7Programming.aspx

Sunday, November 21, 2010

Formatting Dates, Times in ASP.NET 4.0


Format DescriptionCode SnippetOutput
Short date pattern (d) DateTime.Now.ToString("d")11/8/2010
Long date pattern (D) DateTime.Now.ToString("D")Monday, November 08, 2010
Full date/time pattern - short time (f)DateTime.Now.ToString("f") Monday, November 08, 2010 3:39 PM
Full date/time pattern - long time (F) DateTime.Now.ToString("F") Monday, November 08, 2010 3:39:46 PM
General date/time pattern - short time (g) DateTime.Now.ToString("g")11/8/2010 3:39 PM
General date/time pattern - long time (G) DateTime.Now.ToString("G")11/8/2010 3:39:46 PM
Month/day pattern (M)DateTime.Now.ToString("M") November 08
Round-trip date/time pattern (O) DateTime.Now.ToString("O") 2010-11-08T15:39:46.4804000-08:00
RFC 1123 pattern (R) DateTime.Now.ToString("R")Mon, 08 Nov 2010 15:39:46 GMT
Sortable date/time pattern (s) DateTime.Now.ToString("s")2010-11-08T15:39:46
Short time pattern (t)DateTime.Now.ToString("t") 3:39 PM
Long time pattern (T) DateTime.Now.ToString("T")3:39:46 PM
Universal sortable date/time pattern (u)DateTime.Now.ToString("u") 2010-11-08 15:39:46Z
Universal full date/time pattern (U) DateTime.Now.ToString("U") Monday, November 08, 2010 11:39:46 PM
Year/month pattern (Y) DateTime.Now.ToString("Y")November, 2010


Saturday, November 20, 2010

Credit Card Validator Attribute for ASP.NET MVC 3

http://benjii.me/2010/11/credit-card-validator-attribute-for-asp-net-mvc-3/

Friday, November 19, 2010

RichTextBox

http://www.navioo.com/csharp/examples/RichTextBox_532.htm

 


Thursday, November 18, 2010

JD Edwards EnterpriseOne Year End CENTCHG data dictionary 2010

Dear Valued JD Edwards EnterpriseOne Customer,

According to our records your company is currently using Oracle JD Edwards EnterpriseOne. We want to make you aware of an important update that users should make in the EnterpriseOne CENTCHG data dictionary.

JD Edwards EnterpriseOne stores calendar dates in Julian date format. The system allows two-digit dates to be entered to facilitate data entry. The system uses data dictionary item CENTCHG (CenturyChangeYear) to determine the century to use for populating data tables. The system also uses this data dictionary item when automatically populating the default effective through and expiration dates in some data tables.

In releases Xe and ERP8.0, the default value for CENTCHG was set to 10. Thus dates populated using the CENTCHG default value are created as '12/31/2010'. In release 8.9, the default value was set to 15, creating a date of '12/31/2015'. In releases 8.10 through 9.0, the default value was set to 40, creating a date of '12/31/2040'. Oracle recommends that this value be increased for users in the Xe, ERP8.0, and 8.9 releases as well as users who have upgraded from these releases to 8.10 or higher so that the software will supply new effective through dates further into the future.

The document, linked below, outlines the function of CENTCHG in the software and recommends a change to the CENTCHG data dictionary default as soon as possible. This document also introduces the Date Utility, a tool designed to assist users with identifying and resolving business data with potential date issues. The Date Utility is designed for use with the currently supported tools releases.

Instructions (Knowledge Article 882478.1)

If you have any questions or concerns and we can be of assistance, please contact your Global Customer Support Center

Sincerely
Lyle Ekdahl
Group Vice President. General Manager
Oracle JD Edwards