Najam Sikander Awan

logs of my work and digital life

Follow me on TwitterRSS Feeds

  • Home
  • About Me

Read SMTP settings from asp.net web.config

Jul 16th

Posted by Najam Sikander Awan in Asp.net

3 comments

hi guyz

Sorry for writing after such a long time i guess i am very busy now a days so for a project i needed to read my smtp email settings defined in my web.config file so after some efforts i am able to read these settings direct from my system .net section.

System.Configuration.Configuration config = System.Web.Configuration.WebConfigurationManager.OpenWebConfiguration(HttpContext.Current.Request.ApplicationPath);
System.Net.Configuration.MailSettingsSectionGroup settings = (System.Net.Configuration.MailSettingsSectionGroup) config.GetSectionGroup("system.net/mailSettings");
Response.Write("<br>Username="+settings.Smtp.Network.UserName);
Response.Write("<br>Password=" + settings.Smtp.Network.Password);
Response.Write("<br>host=" + settings.Smtp.Network.Host);
Response.Write("<br>port=" + settings.Smtp.Network.Port);
Response.Write("<br>from=" + settings.Smtp.From);
asp.net, C#, web development

How to get directory name of the page currently displaying

Nov 6th

Posted by Najam Sikander Awan in Asp.net

No comments

If you want to know only the directory name not the full path of the page that is currently displaying you can use this code

string sPath = System.Web.HttpContext.Current.Request.Url.AbsolutePath;
System.IO.FileInfo oInfo = new System.IO.FileInfo(sPath);
string sRet = oInfo.Directory.Name.ToString();
Response.Write(“<br><br>Directory name===” + sRet + “<br><br>”);

Happy Coding

Najam Sikander Awan

asp.net, C#, web development

How to get pagename of itself

Nov 6th

Posted by Najam Sikander Awan in Asp.net

1 comment

 If you want to display the filename or page name of the current displaying page just use these two lines and it will show only the filename like default.aspx, najam.aspx or indexas.aspx no matter it these pages are located deep into your site structure.

string pagename = System.IO.Path.GetFileName(Request.ServerVariables["SCRIPT_NAME"]); Response.Write(pagename);

Enjoy coding

Najam Sikander Awan

asp.net, C#, web development

Synchronize your bookmarks

Oct 19th

Posted by Najam Sikander Awan in Firefox

No comments

Surrounded by computers and internet all the time when at work, in university labs or when browsing internet from your home. During long sessions we come across some really good websites and solutions and add them to our bookmarks but as soon as you switch PC your favorites bookmarks are gone. Its very difficult to manage your bookmarks on multiple PC’s but not anymore if you are a firefox fan. One can easily synchronize his/her bookmars by installing a little extension called foxmarks and signing up for an account in foxmarks.com. You probable already know about other solutions like google browser sync and del.icio.us but both of them are very heavy for a dial up user with a distortion in phone line where foxmarks works like a breeze.

Try foxmarks extension for yourself and give me your feedback on this post.

Bye Everyone

thanks for reading :)

Browsing, Firefox

Tags!! welcome

Sep 30th

Posted by Najam Sikander Awan in Tips & Tricks

No comments

With wordpress 2.3 codename dexter wordpress bloggers finally have their hands on most waited features “Tags”. Tags are very much like categories but little convenient then categories. Tags come handy when you are posting and you can put tags onto your post by just typing tag name and comma separate them whereas if you want post under multiple categories you have to select the check boxes for that.

Wordpress

Finally I Have My Own Domain

Sep 30th

Posted by Najam Sikander Awan in Today

No comments

Hi guyz,

After many days I am back and back for good :) recentlly i purchased a domain name and hosting package, so that i can have my own website and I want my settings persistent which was not possible in the case of free hosting like in my case my hosting provider remove the mysql database support.

Can’t tell you how happy I am after getting my website up and running its currently in beta state I will design it from scratch as time permits and planning to use table less design. With my website I have configured a wordpress blog and currently its using a template that I pick form internet after designing my main website I will design my own wordpress template.

Below is the screen shot of my new website.

My website pic

my blog snapshot is give below

first blog design

please visit http://www.najamsikander.com and for blog please visit http://www.blog.najamsikander.com

News
Real Firefox

Real Firefox

Jun 16th

Posted by Najam Sikander Awan in Firefox

7 comments

Real Firefox

Firefox

safari on windows

Jun 11th

Posted by Najam Sikander Awan in Today

1 comment

hi guyz
believe or not safari famous apple browser new beta version is here for both mac and windows users yes u heard it all right its for windows too i have downloaded it and installed it and it works great for me.

Since i never used it and i am a big fan of firefox i am finding a little difficulty to find the features i am used to with like a home page icon history cleaner,no enter or go button,full screen and how to auto complete url for .com and other domains.

I guess it will take time to get used to with that but one thing is for sure this is very good move made by apple they should launch more products for window users.

Regards
Najam Sikander Awan

Browsers

Wifi working on my acer 1642 with suse 10.2

Apr 14th

Posted by Najam Sikander Awan in Linux

No comments

Hi,

phew after lots of search finally my acer 1642 ( view specifications ) laptop with suse 10.2 communication with Access Point. :D

Intel
PRO/Wireless 2200BG is my wireless card and its detected by suse 10.2
but as i turn my wifi on led is not lightening up and nothing works  as
i searched  i found that suse 10.2 includes driver for my wireless lan
card but firmware is missing so all i have to do is install proper
firmware for my card.

Some forums mentioned that for suse10.2 and Intel PRO/Wireless 2200BG card proper firmware is version 3 and all i have to do is download it and extract it into /lib/firmware. Reboot.

After reboot my led lighten up and i installed some packages like knetworkmanager from yast to manage my wireless connections.

Regards
Najam Sikander Awan

Powered by ScribeFire.

acer, Linux, wifi

The Website Development Process

Apr 14th

Posted by Najam Sikander Awan in Designing

No comments

I liked this article so copying it from source site and pasting it onto my blog you can also visit source website.

The Website Development Process

Our three characters: a programmer, a designer and a client.

A while ago I put this photo on my flickr page and it was chosen to go on the official flickr blog as the photo of that day (September 23rd). To date it has been viewed over 2000 times.

The photo was actually one in a whole series of photos I shot for a
client presentation, detailing the website design / development process
in a manner that was easily understandable and also fun to look at.
This article takes you through that process, using the same photos. We
hope you enjoy the pictures and if it also helps you to manage your
workflow better if you are starting out as a web designer then that’s
cool too :)

However, as is the organic nature of these things, there are an
infinite amount of variables that can affect the project timeline. For
that reason, projects are never ever as clear-cut as in this
sequence of photos. Things may need to be done over and over, steps may
get jiggled around, you may need more time for CMS / back-end
development etc – so please think of this sequence as merely a basic example of the kind of process that I have grown comfortable with, speaking as a web designer/developer.

big pretty pic

Step 1: Discussion

Naturally you’re going to want to start your project with a client
chit-chat. At the first meeting you need to establish the basic scope
of the work – what needs to be done, roles and responsibilities, who is
your point of contact for materials (text content, images) etc.

big pretty pic

Step 2: Brainstorming

Think about how you are going to structure things. What is
important? What is not? What needs to be on every page? Depending on
the scale of the project you might want to create a visual sitemap for
your client. Preparing a sitemap is essential if you are reorganising
content in any way.

big pretty pic

Step 3: Wireframe

A wireframe is a skeleton website, indicating all the navigation,
function and content elements that will appear on the final website,
but with no graphic design elements. It is used to iron out
any problems or missing elements, and will act as the blueprint for the
content, design and construction work that comes later.

How you create the wireframe is up to you – for small sites it might
be fine to just line-draw it in Illustrator or Photoshop, but for
larger, more complex sites, it might be necessary to actually code the
wireframe into HTML so the client can click around to check everything
is in the right place.

big pretty pic

Step 4: Planning the Content

Working from the sitemap and wireframe, you and the client get
together to start planning the content – specifically the text. Content
planning and writing is probably the biggest workload the client will
have during the project – and it can really take some time.

big pretty pic

Step 5: Initial Design

Whilst all this is going on, the designer can be working on the base design – the homepage and main sub-level pages.

big pretty pic

Step 6: Client Feedback

When the base design is ready, the client needs to check that you
are heading in the right direction and suggest adjustments to the
design accordingly.

big pretty pic

Step 7: Design Rework

…which will probably involve going back and tweaking things…

big pretty pic

Step 8: Client Approval

…until everyone is happy.

This process of work-feedback-rework is repeated at
various stages in the project. Besides preparing the content, this
confirmation process is also one of the main responsibilities of the
client.

big pretty pic

Step 9: Additional Page Design

Once the base design is agreed on, you can start working on the layout and design of each of the individual pages of the site.

big pretty pic

Step 10: Confirmation

And once again they are checked, reworked and then finally confirmed.

big pretty pic

Step 11: Build the HTML…

You can then begin to build the actual HTML pages…

big pretty pic

Step 12: …and the CSS

…and the CSS (I guess I could have put that all in one step, but I really like the little robot guy).

big pretty pic

Step 13: Present to Client

Feedback again. You and the client work together – work-feedback-rework – to polish and tweak things until you have a completed site.

big pretty pic

Step 14: Test

The final stage of production is the debug. The site needs to be
tested across all platforms to iron out any technical problems, and
checked thoroughly for content errors. Naturally, throughout the HTML
& CSS development stage you should be checking cross-browser
functionality anyway but you definitely need a big check at the end too – one that you actually set aside a decent amount of time for.

big pretty pic

Step 15: Launch

The picture says “The End” – but of course you don’t just grab the
cheque and run for the door – you need to watch the site for at least
around 10 days or so after launch in case of problems, and if necessary
fix things.

Powered by ScribeFire.

web development
« First...«23456»...Last »
  • My latest tweets

    Loading tweets...
    Follow me on Twitter!
    • Recent comments
    • Popular posts
    • Archives
    • Tags
    • Categories
    • Ajax (2)
    • Articles (1)
    • Asp.net (11)
    • C# (9)
    • Concepts (5)
    • Counter Strike (1)
    • Designing (2)
    • Devlopment (10)
    • Firefox (7)
    • git (2)
    • I Want To Know? (3)
    • Javascript (3)
    • Jquery (4)
    • linq (2)
    • Linux (8)
    • My Stuff (1)
    • Photoshop (1)
    • Projects (3)
    • Sql (1)
    • Telecommunication (2)
    • Tips & Tricks (7)
    • Today (33)
    • ToDo (1)
    • Troubles (1)
    • Uncategorized (38)
    • Wordpress (3)
    .net acer Ajax announcements asp.net audio driver boot loader Browsers Browsing C# chrome Concepts Counter Strike Data Access Database development dual boot fedora Firefox game git grub Javascript Jquery linq Linux mac spoofing multimedia News OOP OOPS Project realtek sound card Sql suse Tips Visual Studio vychat web development web services wifi Windows windows xp Wordpress
    • July 2010 (2)
    • January 2010 (1)
    • July 2009 (6)
    • June 2009 (8)
    • February 2009 (3)
    • January 2009 (4)
    • September 2008 (1)
    • July 2008 (6)
    • November 2007 (2)
    • October 2007 (1)
    • September 2007 (2)
    • June 2007 (2)
    • April 2007 (3)
    • March 2007 (3)
    • February 2007 (4)
    • January 2007 (1)
    • December 2006 (3)
    • April 2006 (2)
    • February 2006 (3)
    • January 2006 (2)
    • December 2005 (5)
    • November 2005 (4)
    • Gmail, Msn Live and other invites (27)
    • My Acer Aspire 1642ZNWLCi (15)
    • Real Firefox (7)
    • Msn Messenger Live (6)
    • Vychat alternative for my suse 10.2 laptop (5)
    • Fedora Core6 live-configuring internet by spoofing mac address (4)
    • Who invented CDMA (3)
    • oh God Hd audio driver for linux (3)
    • Read SMTP settings from asp.net web.config (3)
    • Realtek HD sound card working (2)
    • Kaifi: Yest it is :). Great Work Najam....
    • Najam Sikander Awan: @Anthony hi thanks for reading my blog and thanks for commenting and posting solution to our common...
    • Anthony Alexander: If you haven't already solved the problem, I just found the solution myself. open Apache...
    • faheem: http://www.cplug.org/guides/post-install.html
    • admin: thanks dear :)
    • Muhammed Shakhsheer: Hi Najam i have Acer aspire 1642ZNWLCi, which is the same you do, i have a problem that i dont...
    • John chaffee: Oh Man...thank you so much for posting! I have been working non this for about 4 hours. I...
    • Imran Agha: Hi Najam/Everyone, I have a Acer 1642 Laptop. Unfortunately its motherboard has gone bust and I...
  • User Login






    • Lost your password?
    • My latest tweets

      Loading tweets...
      Follow me on Twitter!
Mystique theme by digitalnature | Powered by WordPress
RSS Feeds XHTML 1.1 Top