Posted by kiranpatils on July 29, 2009
Challenge:
I have created one windows service and to install it i use “installutil.exe” — and to automate the task i have created BATCH files. But how can i do this using windows installer?
Solution:
Basically you need to add New project of type “Setup and Deployment“
See this walkthroguh from microsoft : http://support.microsoft.com/kb/317421
Hope this helps
Happy Programming!
Posted in Windows Forms | Leave a Comment »
Posted by kiranpatils on July 19, 2009
Hello Everyone,
We have crossed the 50,000 Hits milestone.

Thanks a lot to all of you. All Credit goes to you all. Keep visiting and provide your valuable comments. how we can make this blog worth
Now let’s be ready for 1,00,000 hits!!!!
Posted in General | Leave a Comment »
Posted by kiranpatils on July 16, 2009
Challenge:
How to use asp:table in Mobile Page?
Or if you got an error
‘asp:Table’ cannot be a top-level form element.
Then solution is here:
Solution:
<%@ Page Language="C#" AutoEventWireup="true" Inherits="Mobile2.Default1" Codebehind="Default1.aspx.cs" %>
<%@ Register TagPrefix="mobile" Namespace="System.Web.UI.MobileControls" Assembly="System.Web.Mobile" %>
<html xmlns="http://www.w3.org/1999/xhtml" >
<body>
<mobile:Form id="Form1" runat="server">
<mobile:panel id="pnlMobile" runat="server">
<asp:Table id ="mainTable" runat="server">
<asp:TableRow>
<asp:TableCell>
<mobile:Label ID="Label1" runat="server">Demo</mobile:Label>
</asp:TableCell>
<asp:TableCell>
<mobile:Label ID="Label2" runat="server">Demo</mobile:Label>
</asp:TableCell>
</asp:TableRow>
</asp:Table>
</mobile:panel>
</mobile:Form>
</body>
</html>
Posted in ASP.NET | Leave a Comment »
Posted by kiranpatils on July 7, 2009
Posted in ASP.NET | Leave a Comment »
Posted by kiranpatils on July 7, 2009
Challenge:
Q: How can i click button programmatically?
Okay, Some of the experts will say call btn_click(sender,eventargs); You are right expert.. But i would like to do as below:
I have one User control which has : Two Textbox and one button(btnSave) — and one click event associated with it(btnSave_Click).
I have used this control on my page say Default.aspx — Now, From Default.aspx. I would like to call btnSave_Click on one of my button kept on Default.aspx say FinalSave. So experts how can i do this?
Solution:
Okay, This simple guy have a solution it is as follow:
1. Find button control using FINDCONTROL Method.
Button fondButton = UserControl1.FindControl(“btnSave”);
2. Call Button click using following way:
((IPostBackEventHandler)fondButton).RaisePostBackEvent(null);
isn’t it a cool way to call button click??
Thanks to this guy for nice post :
http://www.netsplore.com/PublicPortal/Blog/tabid/284/EntryID/11/Default.aspx
Posted in ASP.NET | Leave a Comment »
Posted by kiranpatils on July 4, 2009
Challenge:
Yesterday, I would like to test some functionality in IE6 and i have installed IE7. So, I thought to download portable IE6, I found one site about Portable IE6. But download link was broken
How should i proceed now?
Solution:
I found its solution it is http://www.xenocode.com/Browsers/.
You can test your web application on any browser without installing it on your PC!. Isn’t it a great idea?
So just go to : http://www.xenocode.com/Browsers/ and first time you need to install add-in and then you can test your application in any of the following browsers:
Microsoft Internet Explorer 8, Internet Explorer 7, and Internet Explorer 6
Mozilla Firefox 3 and Firefox 2
Google Chrome, Opera, and Apple Safari
Hope you found this post helpful
Posted in General | Leave a Comment »