Cyberiafreak

"Fortunate are those who take the first steps.” ― Paulo Coelho

Microsoft Expression Web SuperPreview – for IE Web Test

This is for Web developers (ASP.NET) who work for cross browser supportBaring teeth. Currently I’m into web development for a client and breaking my head to fix this cross browser issue. In another project, the client is asking for beta browser like IE 8 and Chrome support. In ASP.NET, menus are tougher to fix. Apart from this, if you have coded any DOM manipulation in Java script code, it is not easy to get/set values to tree/list controls/grid.

An easy solution for this is to identify browser type then bunch of code for each browser compatible DOM manipulation(Javascript). Its really time consuming and takes time to test it. This kind of approach boggles me and am not confident at all. But I highly recommend to take care of cross browser support from the prototype development stage itself.

Here is the news from MS regarding Web SuperPreview for IE  (its a visual debugging tool that makes it easier to migrate our Web sites from IE 6 to IE 7 or 8 ), but it would be better if they extend this support to test other browsers also..Currently few of my applications are working smoothly in IE 6 and above..but not sure about IE 8. I’ll post about the pros and cons after checking this too…
Advertisements

March 22, 2009 Posted by | ASP.NET >> | 1 Comment

jQuery to my project !!

Currently i’m involved in designing a complete web application all alone and learning a lot these days. Doing a lot of POC and observing the best available things to the current Project. In this, jQuery is my latest crush,i knew JQuery for the past one year after Scott announcement but i never had a change to work for client project. Here is my first POC for no bie’s.. jQuery is a fast, lightweight JS
library that is CSS3 compliant and supports many browsers. The jQuery
framework is extensible and very nicely handles DOM manipulations, CSS,
AJAX, Events and Animations. Complete list of download available here.JQuery is not a JS replacement, but its a l
ibrary written using JavaScript.
1) Download from here
2) Add as reference.


 In aspx file.. 

$(document).ready(function() {
    // Add the page method call as an onclick handler for the div.
    $("#buttonn").click(function() {
        $.ajax({
            type: "POST",
            url: "MyJQuery.aspx/Samplemethod",
            data: "{}",
            contentType: "application/json; charset=utf-8",
            dataType: "json",
            success: function(msg) {
                $("#Mydiv").text(msg.d);
            }
        });
    });
});

<body>
    <form id="form1" runat="server">
    <div id="Mydiv">
    </div>
    <input id="Text1" type="text" />
    <input id="buttonn" type="button" value="button" />
    </form>
</body>
</html>
 In Code behind..
[System.Web.Services.WebMethod]
        public static string Samplemethod()
        {
            return DateTime.Now.ToString();
        }
You could see, the page gets the latest date and time easily…

March 2, 2009 Posted by | ASP.NET >> | 1 Comment

App_offline.htm in ASP.NET 2.0 – Explained in Scott blog

 
Src : Scott Blog
 
App_Offline.htm

I was planning to break the news about the little-heard-of app_offline.htm feature in ASP.NET 2.0, but Erik beat me to it. J

 

Basically, if you place a file with this name in the root of a web application directory, ASP.NET 2.0 will shut-down the application, unload the application domain from the server, and stop processing any new incoming requests for that application.  ASP.NET will also then respond to all requests for dynamic pages in the application by sending back the content of the app_offline.htm file (for example: you might want to have a “site under construction” or “down for maintenance” message).

 

This provides a convenient way to take down your application while you are making big changes or copying in lots of new page functionality (and you want to avoid the annoying problem of people hitting and activating your site in the middle of a content update).  It can also be a useful way to immediately unlock and unload a SQL Express or Access database whose .mdf or .mdb data files are residing in the /app_data directory.

 

Once you remove the app_offline.htm file, the next request into the application will cause ASP.NET to load the application and app-domain again, and life will continue along as normal.

 

Hope this helps,

 

Scott

—————

 

 

October 9, 2005 Posted by | ASP.NET >> | Leave a comment

FTP Online – 106 Articles about ASP.NET…

FTPOnline and Visual Studio Magazine give you the scoop on what ASP.NET features matter, as well as practical, how-to articles on developing and debugging Web apps, extracting performance data, using page templates, and more.

106 articles from ASP.NET  –  http://www.ftponline.com/resources/spcollections/aspnet/

As a great fan of FTPonline site, i recommend guyz with plumbing .NET editor can refer this. Its worthfull,they got excellent collection of How to articles … ? talks much about 100 % real world problems with 106 topics…..

Gudoos to FTPonline for their treasury collection..!!!

Mahe~

May 5, 2005 Posted by | ASP.NET >> | Leave a comment

Bangalore get ready for TechNET 2005 – Register soon.!!

Tech•Ed 2005 is Microsoft’s largest technology educational conference. Meet thousands of your peers. Discuss the challenges you face in the industry. Explore solutions with the experts behind the technology you use every day. Add value to your company’s IT investments.

Get onto to the edge of developing the most productive software solutions, and deploying state-of -the-art server infrastructure.

http://www.microsoft.com/india/connections/teched2005/

April 26, 2005 Posted by | ASP.NET >> | Leave a comment

MS TechNet & MSDN Session – In Bangalore(22/4/2005)

:::: My One day experience (last Friday-22/4/2005) Microsoft Events in Bangalore :::::

It was a great day for me and lot many things happened on that same day.I had bit feelings in morning, intresting time in afternoon , dramatic time in late afternoon in cubbon park:), happiest time in evening @ Office after seeing my interview mail call – totally wonderful day for me…

—————————————————————————————————-
TECHNET SESSION @ Hotel Capital,Bangalore – By Microsoft
First session :


 IIS 6.0 performance Tuning
– bit same old stuff( i already heard lot about IIS 6.0 features in previous microsoft seminar happened @ Leela palace)

 But still , here is the few notable features of IIS 6.0
 1. We can create any instance of IIS 6.0 – called worker process
 2. Any individual aspnet_wp.exe (is called worker process) can be suspended easily wihout affecting remaining application
 3. More than one worker process can be grouped as pooling
 4. webgarden – no of processes ( yet to confirmed )
 5. Inetinfo.exe – system level
 6. all the worker process runs as network service
 7. We can scale out our web application upto 32 nodes, if we want to scale out to more than 32 nodes we have to use – DNS Round robin
 8. Tools to monitor the IIS Performance – Netmon, Perfmon, logman, tracerpt

presentation for this can be downloaded from Microsoft website @ www.microsoft.com/technet
www.microsoft.com/technet/tnt1-89

Second Session :
As Intel was the official sponsor for this event, so they showcased few latest processor from their lab. As i blogged about 64 bit Operating system, here intel also developed Processor which supports 64 bprocessor OS.

 1. P4 HT (Medium application)
 2. Xeon  (Large scale application or server which executes complex application)
 3. Itanium (Highly complicated application needs this processor)
 4. P2- P square (Medium)
————————————————————————————————–

 MSDN Session ( speaker – gkhanna@microsoft.com – MS evangelist, well known for community member, bit humour person, able to speak more than 4 hours without boring the audience)
 
Session 1: Topic : INDIGO ….Go…GO > GO >> GO >>>>
 
here few caps about Indigo Session,
 
*It is an set of API, Set of namespaces….
*definition – Indigo is a set of .NET technology for building and managing sevice oriented system
*- unified programming model

 
Any transactional Services exposed to non-micosoft needs to go with INDIGO

 1. Web serivies does not support – Transaction
 2. Transaction in Com+
 3. MSn Ques- limited
 4. .NET Remoting – No transaction
so overcome all this above limitation, INDIGO Is only way to go  >>

 We can have more than one entry points for our servie…
asmx- ——
.NET remoting ——
enterprise services ——
system.messaging ———————> Indigo

Before dive into INDIGO , we should know wat is Service Oriented Architecture(SOA). Definetly in future all we coders have to think about SOA.

 SOA is nothing but evolved version of OO(Object Orientation)
 
 SO- Explicit Boundaries, Negotiation via policies, autonomous,Exposed Schema (not datatypes, Schema contract, More than one entry point for the consumer, reuse, dynamic,meaningful information – http, msnq, TCP, Pipe)
 OO – cannot go across compiler

*Remoting is nothing but Exposing contracts

*Marshaling layer –
*UDDI – lookup for webservice
*changin themselves without affecting others
*WSE – webservice Enhancements

www.micrsoft.com/india/msdn/events/presentations.aspxAny

Blogged in laptop, but uploaded today,,,Mahes~

 

April 25, 2005 Posted by | ASP.NET >> | Leave a comment

ASP.NET 2.0 QuickStart Tutorial……updated

Finally,

i got big fish on net for ASP.NET 2.0, yes this site holds tons for hungry minds with parallel live . As a webdeveloper i used to surf for each and every thing. but now i controlled myself with MSDN subscription copy installed in my drive. But still i used to search some new features of ASP.NET 2.0 Whidbey in google and finally i will be landed in business site with advertisement. But this is a cool one for me now to play with ASP.NET 2.0 features and new controls….. 

ASP.NET 2.0 QuickStart Tutorial

http://beta.asp.net/QUICKSTART/aspnet/default.aspx

What’s New in ASP.NET 2.0?


http://beta.asp.net/QUICKSTART/aspnet/doc/whatsnew.aspx 

cool website, contains class viewer also…

Mahes

April 14, 2005 Posted by | ASP.NET >> | Leave a comment

VStudio Hosted Experience – Online VS.2005,ASP.NET,SQL 2005 etc

Try out Visual Studio Hosted Experience,

The VS Hosted Experience allows you to either quickly evaluate Visual Studio .NET 2003, or learn how to build great applications for Windows and the Web with the MSDN Virtual Labs – a series of guided, hands-on labs which can be completed in under an hour. The best part is, you can begin accessing the Visual Studio Hosted Experience immediately with no installation required.
 
http://msdn.demoservers.com/login.aspx
https://msdn.demoservers.com/register/skins/msdn/register.html?TrackingID=undefined&referURL=undefined

I tried, bit slow in my office.

Mahe~

April 8, 2005 Posted by | ASP.NET >> | 1 Comment

Email in runtime…

Today i had a situation where i have to send mails to all branch managers in my office when i want to circulate something programmtical thru web.
The webpage should be generated a HTML report page and that report page should automatically mailed to all the TO address list.

Here is the code for sending mail in ASP.NET. Very simple and pretty cool to use it.

‘ Imports System.Web.Mail

Dim m As New MailMessage()
m.From = "maheshkumar@mydomain.com"
m.To = "cyberiafreak@cyberiafreak.soft.net"
m.Subject = "Steal ur soul…"
m.BodyFormat = MailFormat.Text
m.Body = "This is called EMail Phising….Great Hackooo.."
SmtpMail.SmtpServer = "localhost"
SmtpMail.Send(m)

Tried locally, but not yet integrated with CLINK project.

April 4, 2005 Posted by | ASP.NET >> | Leave a comment

Microsoft’s Future road maps….

Hello Frenz, Here is Microsoft future Jargon words. This was started to use this jargon words in Seminars and tech meet. You want to know this exactly?
 Before diving into answer directly, just ask your self,

what is  whidbey [ ? ]
what is  Yukon   [ ? ]
what is  Longhorn[ ? ]
what is  Winfx   [ ? ]
what is  Avalon  [ ? ]
what is  Indigo  [ ? ]
What is  ORCAS   [ ? ]
————————————————ANSWER ——————————————————

* whidbey   [ asp.net 2.0 ]
Whidbey is the codename for what is now known as Visual Studio 2005. See
http://msdn.microsoft.com/vs2005/.
And ASP.NET 2.0 is an (major) update to ASP.NET v1.1 released in 2003.

* yukon [sql 2005 ]
Yukon is the codename for what is now known as SQL Server 2005. Lot’s of new
features here too. See http://www.microsoft.com/sql/2005/default.asp.

All of the above is part of what Microsoft calls the Whidbey-wave of
products. Next is the Longhorn-wave.

* Longhorn
Most known as the codename for the next version of Microsoft Windows. See
http://msdn.microsoft.com/longhorn and
http://www.winsupersite.com/longhorn/.

* WinFX
Name for a managed API set (see below). A starting point is
http://www.winfx247.com/. Note that Avalon and Indigo are part of WinFX.

* Avalon
New graphics subsystem. See
http://msdn.microsoft.com/longhorn/understanding/pillars/avalon/default.aspx.

* Indigo
New communication subsystem/model. See
http://msdn.microsoft.com/Longhorn/understanding/pillars/Indigo/default.aspx.

* ORCAS
  This version of Visual studio and the .NET framework will provide tools support
for Windows operating system, code name "longhorn". In simple, this would be the
64 bit programming tool and also supports for new storage model.
———————————————————————————-

From the links given above you can find *pre-release* versions to download
from Microsoft. Read all the warnings there before you install them.
for more info,
http://msdn.microsoft.com/vstudio/productinfo/roadmap.aspx

STart brewing !!

Mahes

March 21, 2005 Posted by | ASP.NET >> | 1 Comment

Data Grid & Iterating db in ADO.NET….!

1. Efficiently Iterating thru results from a database query using ADO.NET http://aspnet.4guysfromrolla.com/articles/032702-1.aspx

2. All about datagrid..

http://aspnet.4guysfromrolla.com/articles/040502-1.aspx#postadlink

I got this two link from MSNEWS GROUP and its quite interesting me to read all this. i finished reading and tried out this examples.

Mahe~

 

 

 

 

 

March 17, 2005 Posted by | ASP.NET >> | Leave a comment

Wait page in ASP.net

Showing intermediate page [please wait page loading…] in Asp.net

[*Mainpage.aspx->**please wait page.aspx-> ***Finalrequestedpage.aspx] 

* In submit button of page Mainpage.aspx
Response.Redirect("b.aspx?Page=c.aspx?")

** in body load event of html page Middle ————- **
  function BeginPageLoad()
  {

  location.href = "<%= Request.QueryString("Page")%>";

 }
 <body onload="BeginPageLoad()" bgcolor="#ffffe3">

Thnkz for Saravana MVP for sharing this during  BDOT NET meeting

content : original

 

March 14, 2005 Posted by | ASP.NET >> | Leave a comment

Pass Variables Between ASP.NET Pages ??

Pass Variables Between ASP.NET Pages

Pass variables between ASP.NET pages as part of a query string in the URL. If your form is not running at server you can also use the Request object to retrieve the values of the form elements (especially hidden input elements for this purpose). However, if you have a form with runat=server, and you don’t want to expose the variables to the user then your choices are limited. Here is a way to pass variables between ASP.NET pages:

1. In your first.aspx add an item to the context.

  Context.Items.Add("m1", firstname.text)
  Context.Items.Add("m2", lastname.text)   

2. In your first.aspx call Server.Transfer to transfer to your secondpage.aspx.

  Server.Transfer("secondpage.aspx", True)

3. In your secondpage.aspx retrieve the variable from the context.
  Dim receivedValue As String

  localtext1.text = Context.Items("m1")
  localtext2.text = Context.Items("m2") 

~
Maheshkumar.R

content :original

Thnks to sathees for rising this question

 

March 14, 2005 Posted by | ASP.NET >> | Leave a comment

.NET tools – refactoring,testing etc…

REfactoring  :  ReSharper
VS 2005(Rename,Encapsulate Field, Change Method sign,Extract Method,extract interface) 
________________________
Testing : NUnit,TestDriver .NET, FIT
_______________________
Coding standards: FxCop
_______________________
Contious Integration: Cruise Control .NET, NaNT, source control Repository
________________________

 

All these tools were came to know in group meeting, BDOT.net..

Mahe~

March 14, 2005 Posted by | ASP.NET >> | Leave a comment

Custom Error settings..

The Error mode attribute determines whether or not an ASP.Net error message is displayed. By default, the mode value is set to "RemoteOnly".

Off Mode
When the error attribute is set to "Off", ASP.Net uses its default error page for both local and remote users in case of an error.

On Mode
In case of "On" Mode, ASP.Net uses user-defined custom error page instead of its default error page for both local and remote users. If a custom error page is not specified, ASP.Net shows the error page describing how to enable remote viewing of errors.

RemoteOnly
ASP.Net error page is shown only to local users. Remote requests will first check the configuration settings for the custom error page or finally show an IIS error.

—————
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
 <system.web>
   <customErrors defaultRedirect="error.htm" mode="On" />
 </system.web>
</configuration>
—————

All this options were tried and used in CLINK package..Mahe

 

March 14, 2005 Posted by | ASP.NET >> | Leave a comment

   

%d bloggers like this: