Click here to Skip to main content

Parwej Ahamad - Professional Profile

Summary

285
Author
6,816
Authority
266
Debator
28
Editor
12
Enquirer
56
Organiser
1,365
Participant
Having 5+ years of experience on .Net technology.
 

Thanks
Parwej Ahamad
e: ahamad.parwej@gmail.com
m: +91 9899-71880
Member since Monday, July 10, 2006 (6 years, 11 months)

Contributions

Articles 1 (Debut)
Tech Blogs 0
Messages 738 (Poster)
Q&A Questions 0
Q&A Answers 91
Tips/Tricks 0
Comments 129

Links

Reputation

For more information on Reputation please see the FAQ.

Privileges

Members need to achieve at least one of the given member levels in the given reputation categories in order to perform a given action. For example, to store personal files in your account area you will need to achieve Platinum level in either the Author or Authority category. The "If Owner" column means that owners of an item automatically have the privilege, and the given member types also gain the privilege regardless of their reputation level.

ActionAuthorAuthorityDebatorEditorEnquirerOrganiserParticipantIf OwnerMember Types
Have no restrictions on voting frequencysilversilversilversilverAdmin
Store personal files in your account areaplatinumplatinumSitebuilder, Subeditor, Supporter, Editor, Staff
Have live hyperlinks in your biographybronzebronzebronzebronzebronzebronzesilverSubeditor, Protector, Editor, Staff, Admin
Edit a Question in Q&AsilversilversilversilverYesSubeditor, Protector, Editor, Admin
Edit an Answer in Q&AsilversilversilversilverYesSubeditor, Protector, Editor, Admin
Delete a Question in Q&AYesSubeditor, Protector, Editor, Admin
Delete an Answer in Q&AYesSubeditor, Protector, Editor, Admin
Report an Articlesilversilversilversilver
Approve/Disapprove a pending ArticlegoldgoldgoldgoldSubeditor, Mentor, Protector, Editor, Staff, Admin
Edit other members' articlesSubeditor, Protector, Editor, Admin
Create an article without requiring moderationplatinumSubeditor, Mentor, Protector, Editor, Staff, Admin
Report a forum messagesilversilverbronzeProtector, Editor, Admin
Create a new tagsilversilversilversilverAdmin
Modify a tagsilversilversilversilverAdmin

Actions with a green tick can be performed by this member.


 
You must Sign In to use this message board.
Search this forum  
GeneralRequired Field validator for CheckBoxList Pin
Thursday, April 28, 2011 12:28am by Parwej Ahamad
Today I came across a situation where I need to validate CheckboxList as required field and found below solution:
 
//Bound list from Database
<asp:CheckBoxList ID="chlZones" runat="server" RepeatColumns="5" RepeatDirection="Horizontal" />
//Create Custom validator that will work as required validator. Profile function
<asp:CustomValidator ID="cvalZones" runat="server" ClientValidationFunction="ValidateZones" ErrorMessage="!!!" Display="Dynamic" />
 
//Implement Client method
<script>
function ValidateZones(source, args) {
		var chlZones = document.getElementById('');
		var chkLista = chlZones.getElementsByTagName("input");
		for (var i = 0; i < chkLista.length; i++) {
			if (chkLista[i].checked) {
				args.IsValid = true;
				return;
			}
		}
		args.IsValid = false;
	}
</script>
Parwej Ahamad
ahamad.parwej@gmail.com
 


 
GeneralTrap RedioButtonList change event in Jqury OR RadioButtonList selected value in Jquery: Pin
Thursday, April 28, 2011 12:27am by Parwej Ahamad
Trap RedioButtonList change event in Jqury OR RadioButtonList selected value in Jquery:
 
<asp:RadioButtonList ID="rblBannerType" ClientIDMode="Static" runat="server" RepeatDirection="Horizontal" >
    <asp:ListItem Value="image" Selected="True">Image</asp:ListItem>
    <asp:ListItem Text="html" >Html</asp:ListItem>
</asp:RadioButtonList> 
 
//jquery script
<script>
	$(function () {
		var t = $("#rblBannerType input:checked").val();
		SetBannerType(t);
 
		//Banner Type
		$("#rblBannerType").change(function () {
			var type = $("#rblBannerType input:checked").val();
			SetBannerType(type);
		});
	});
	function SetBannerType(type) {
		if (type == "image") {
			$("#divImage").show();
			$("#divHtml").hide();
		}
		else {
			$("#divHtml").show();
			$("#divImage").hide();
		}
	}
</script>
Parwej Ahamad
ahamad.parwej@gmail.com
 


 
GeneralWPF Introduction Pin
Friday, February 19, 2010 8:07am by Parwej Ahamad
- WPF support Resolution independent and vector-based rendering engine
- Most part is located under System.Windows Namespace
- Additional programming construct dependency property and routed events
- Support Attached property concept
- Ability to develop an application using both markup and code-behind
Markup is not tightly coupled with behavior specific code
- We can developed Standalone Application and Browser-Hosted Application
- Two way binding with any controls
 
Dependency Prperty
------------------------------------------------------
* Rsources
 
<DockPanel.Resources>
    <SolidColorBrush x:Key="MyBrush" Color="Gold"/>
</DockPanel.Resources>
 
Once the resource is defined, you can reference the resource and use it to provide a property value:
 
<Button Background="{DynamicResource MyBrush}" Content="I am gold" />
 
 
* Data Binding
 
<Button Content="{Binding Books/@TeamName}"/>
 
* Styles
 
<Style x:Key="GreenButtonStyle">
      <Setter Property="Control.Background" Value="Green"/>
</Style>
 
-------------
<Button Style="{StaticResource GreenButtonStyle}">I am green!</Button>
 
 
* Animations
 
* Metadata Overrides
  public class SpinnerControl : ItemsControl
 
                {
 
                    static SpinnerControl()
 
                    {
 
                                DefaultStyleKeyProperty.OverrideMetadata(
 
                            typeof(SpinnerControl),
 
                                    new FrameworkPropertyMetadata(typeof(SpinnerControl))
 
                        );
 
                    }
 
                }
 
Parwej Ahamad
ahamad.parwej@gmail.com
 


 
GeneralSession in Web Services Pin
Friday, July 17, 2009 1:56am by Parwej Ahamad
Write a WebMethod and set the Enable as True
Note: Default is false
 
[System.Web.Services.WebMethod(EnableSession=true)]
public double YourMethod()
{
//TODO: Method implementation
}
 
In order to store session state in the Asp.Net HttpSessionState object, the XML web service must inherit from WebService and a WebMethod attributes applied to the XML web service method, setting the EnableSession property to true.
 
An XML Web service client is uniquely identified by an HTTP cookie returned by an XML Web service. In order for an XML Web service to maintain session state for a client, the client must persist the cookie. Clients can receive the HTTP cookie by creating a new instance of CookieContainer and assigning that to the CookieContainer property of the proxy class before calling the XML Web service method. If you need to maintain session state beyond when the proxy class instance goes out of scope, the client must persist the HTTP cookie between calls to the XML Web service. For instance, a Web Forms client can persist the HTTP cookie by saving the CookieContainer in its own session state. Because not all XML Web services use session state and thus clients are not always required to use the CookieContainer property of a client proxy, the documentation for the XML Web service should state whether session state is used.
 

 
NewsIIS Search Engine Optimization Toolkit Pin
Wednesday, June 10, 2009 5:27am by Parwej Ahamad
IIS Search Engine Optimization Toolkit
 
Search engine optimization (SEO) is the process of providing the quality of traffic to a web site from any search engines through “natural” (“organic” or “algorithmic”) search results.
Search engine optimization is a process, it involves editing it’s content and HTML coding to both increase its relevance to specific keywords and to remove barriers to the indexing activities of search engines.
You r slightly mistakes can do impact on the search relevance your site’s content and hence miss out on the traffic that you should be receiving.
 
Mistakes can be:
 
- Multiple URLs on a site leading to the same content
- Broken links from a page
- Poorly chose titles
- Descriptions of the pages
- Keywords
- Large amounts of viewstate
- Invalid markup
- Using JavaScript menus
- Flash website without HTML
– Images for Headlines
 
Microsoft introduced new tool for the search engine optimization called IIS Search Engine Optimization Toolkit. It helps to improve their web site’s relevance in search results by recommending how to make the site content more search engine friendly.
 
This Toolkit includes following modules-
 
- Site Analysis module
- Robots Exclusion module
– Sitemaps and Site indexes module
 
It contents following silent features:
 
Site Analysis Features
 
o Fully featured crawl engine named ‘iisbot’
o Configurable number of concurrent requests to allow users to crawl their Web site without incurring additional processing. This can be configured from 1 to 16 concurrent requests.
o Support for Robots.txt, allowing you to customize the locations where the iisbot should analyze and which locations should be ignored.
o Support for Sitemap files allowing you to specify additional locations to be analyzed.
o Support for overriding ‘noindex’ and ‘nofollow’ metatags to allow you to analyze pages to help improve customer experience even when search engines will not process them.
o Configurable limits for analysis, maximum number of URLs to download, and maximum number of kilobytes to download per URL.
o Configurable options for including content from only your directories or the entire site and sub domains.
o View detailed summary of Web site analysis results through a rich dashboard
o Feature rich Query Builder interface exposing large amounts of data
o Quick access to common tasks
o Display of detailed information for each URL
o View detailed route analysis showing unique routes to better understand the way search engines reach your content
 
Robots Exclusion Features
 
o Display of robots content in a friendly user interface
o Support for filtering, grouping, and sorting
o Ability to add ‘disallow’ and ‘allow’ paths using a physical view of your Web site
o Ability to add ‘disallow’ and ‘allow’ paths using a logical view of your Web site from the result of site analysis processing
o Ability to add sitemap locations
 
Sitemap and Sitemap Index Features
 
o Display of sitemaps and sitemap index files in a simple user interface
o Support for grouping and sorting
o Ability to add/edit/remove sitemap and sitemap index files
o Ability to add new URL’s to sitemap and sitemap index files using a physical view of your Web site
o Ability to add new URL’s to sitemap and sitemap index files using a logical view of your Web site from the result of site analysis processing
o Ability to register a sitemap or sitemap index into the robots exclusion file
 
Find great artiles by Scott
 
http://weblogs.asp.net/scottgu/archive/2009/06/03/iis-search-engine-optimization-
toolkit.aspx

 
Reference:
 
http://www.iis.net/extensions/SEOToolkit
 

 
GeneralSend mail using Gmail account. Pin
Sunday, December 21, 2008 5:44am by Parwej Ahamad
I have came across the many forum and found there so many developers asked how to send email but the don't have SMTP server.
I would like to suggest here those guy who want to implement their email functionality in his project then for testing purpose they can use Gmail account.
 
MailMessage MyMailMessage=new  MailMessage();
MyMailMessage.From = new MailAddress("g.parwez@gmail.com");
MyMailMessage.To.Add("g.parwez@gmail.com");
MyMailMessage.Subject = "Parwej Testing !!!";
MyMailMessage.Body = "This is the test text for Parwej Ahamad";
SmtpClient SMTPServer=new SmtpClient("smtp.gmail.com");
SMTPServer.Port = 587;
SMTPServer.Credentials =new System.Net.NetworkCredential("yourgmaid", "yourgmailpassword");
SMTPServer.EnableSsl = true;
SMTPServer.Send(MyMailMessage);  
 

Note: Please do not use Gmail SMTP server without read Terms & Condition given by Gmail.
 
Parwej Ahamad

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   


Advertise | Privacy | Mobile
Web03 | 2.6.130619.1 | Last Updated 20 Jun 2013
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid