Roomee's blog :)

Using the Reset Button in ASP.net

Posted by: Imran Panhwar on: November 12, 2009

(no javascript, just clear HTML in client browser)

namespace SomeNamespace.Web.UI.WebControls
{
public class ResetButton : System.Web.UI.WebControls.Button
{

private new bool UseSubmitBehavior
{
get { return false; }
}

public ResetButton()
{
base.UseSubmitBehavior = true;
}

public override void RenderControl(HtmlTextWriter writer)
{
StringBuilder sb = new StringBuilder();
StringWriter tw = new StringWriter(sb);
HtmlTextWriter hw = new HtmlTextWriter(tw);

base.RenderControl(hw);

string theHTML = sb.ToString();
theHTML = theHTML.Replace("type="submit"", "type="reset"");
LiteralControl theButton = new LiteralControl(theHTML);

theButton.RenderControl(writer);
}
}
}

in ASPX page:

<%@ Register TagPrefix="swc" Assembly="SomeNamespace" Namespace="SomeNamespace.Web.UI.WebControls" %>

….

<swc:ResetButton ID="…" runat="server" ….. />

Projects Resource

Posted by: Imran Panhwar on: October 1, 2009

asp.net publish error Server Error in ‘/’ Application. Runtime Error

This is what I have just found after switching to a new host and that is IXWEBHOSTING.

All I wonder was about any action, but I barely did so, except to that DB connection changes.
Well just after 30 minutes of seraching online, I was unable to figure out the issue. Then I thought to see the ASP.net environment this new host supports.

And I found that IXWEBHOSTING supports 2 versions of .net, these are ASP.net version 1.1 & ASP.net Version 2.0.

IX control panel doesn’t have any option for ASP.net 3.5 and/or ASP.net 4.0 support. May be the support guys can help in that. but for now I have got everything working simply by changing the ASP.net Framework Version changed to 2.0 from the default selected as ASP.net Version 1..

So If any of you guys ever stuck in this, should better check the hosting Supported Version of .net Framework. And that will save your good time for the real tasks.

Eid on twitter

Posted by: Imran Panhwar on: September 20, 2009

Free Complete WordPress Cheat Sheet

Posted by: Imran Panhwar on: September 16, 2009

Free Complete WordPress Cheat Sheet

ekinertac has published this cheatsheet, which really worth looking at by WordPress Devs.

For those who develop WordPress templates or like to modify them, Here is a nice cheat sheet for WordPress.

Here is the link to the PDF, you can download it and print it for later use.: http://ekinertac.com/wp-content/uploads/2009/07/Wordpress-Cheat-Sheet.pdf

As on Sept 12, 2009.The website of Inter Board Committee of Chairmen, Islamabad  “www.ibcc.edu.pk

This website has been down from last few months and is not available to be accessed at this crucial time. It is the time when students of other boards,  O/A Level need info to fulfill the requirement of equivalence certificate. But the only site containing information is down without any of their intention.

screenshots :

According to Google Search for Query : inter board A level equivalence

Screenshot interboard a level equivalence - Google Search

Screenshot interboard a level equivalence - Google Search

Thats what the URL for Inter Board Committee of Chairmen, Islamabad website shows :

Screenshot of website of Inter Board Committee of Chairmen, Islamabad  www.ibcc.edu.pk

Screenshot of website of Inter Board Committee of Chairmen, Islamabad www.ibcc.edu.pk

Google Safe Browsing diagnostic page for ibcc.edu.pk

Google Safe Browsing diagnostic page for ibcc.edu.pk

Present State of the website after months shows a lot and need to be addressed, since there are some dozen of members and so the other staff who are enjoying their responsibilities at their honorable designations at ibcc. They would have closed the website or move it to some free Google sites. Hope all will learn to do thing in time and with seriousness as the stories of Govt websites and outage is still not the history.

(Note : Clicking link to this site or opening of this site is not recommended unless you have a latest version of Firefox, IE, Chrome, Opera ,etc  To avoid any unexpected harm to your Information, Computer , through Cookies by Trojans try Searching the site on Google to find out more.)

I am Just a click away !!


Chat with me

Check out these Hot Deals

Top Posts

  • None

Top Clicks

  • None

Voices !

One-Tec on New stuff for Web Dev Jquery (…
Web Designing Pakist… on get FREE Entry to ITCN_Asia Tr…
Web Designing Pakist… on get FREE Entry to ITCN_Asia Tr…

roomee

Error: Please make sure the Twitter account is public.

 

May 2012
F S S M T W T
« Sep    
 123
45678910
11121314151617
18192021222324
25262728293031

Blog Stats

  • 4,436
Follow

Get every new post delivered to your Inbox.