12 March 2008

Check that how strong or best password you have!!!



Click here

04 March 2008

I have a web page with master page.

Now there is a functionality to "Print This Page", but not full page only one table form that. and it's value comes form database.

There is one want to open a page and load that same information form database. but using javascript, it's become so easier.

Let's check...



you can see that, there is some content with master page, Now I just want to print detail page, but not master page.

so I need to give ID to that control which one I want to print,

for example:

table id="tblResult"

and right down some javascript into this page.

script language="javascript">

function OpenWindow()
{

var printContent = document.getElementById("tblPrint");
var sFeatures = "height=200,width=300,status=no,toolbar=no,menubar=no,location=no";

win = window.open("","Print", sFeatures);
win.document.write(printContent.innerHTML);
win.document.close();
win.focus();
win.print();
win.close();

}

script>


Now, right down onClick event = " OpenWindow()" in button.

Finally you click on "Print" button, It will open a new popup window and it will see also open a print dialogbox.




getElementById(IDName).innerHTML will do this job.

Now Visual Studio 2008 have small name of "
getElementById" and that is "$get".


23 February 2008

Start to search in Gujrati language.

It will display Gurati language keyborad and search result in Internet Explorer.

20 February 2008

Download some learning Video for ASP.NET 3.5 from MSDN.

You can also download source code for them.

There are more then 100 video series for ASP.NET related technology.

14 February 2008

Visual Studio have a small "Browse With..." feature in IDE.

"Browse with" menu is use to browse our web page in particular selected browser.


Right click on solution explorer, on "aspx" page.



This is "Browse with" dialog box.

You can add any new browser which is not register here, like "FireFox", "Opera" etc, by clicking on "Add" button.

Select the browser name and "Set as Default" to open every time your web site in the same browser.


You can also set bowser resolution (window size) by clicking on bellow drop down.



And there is another small one feature "Internal Web Browser", here will browser your site in you IDE directly.

12 February 2008

Customer event is very easy from Web User Controls.

Just 4 steps of code for this!


1) Declare event in the user control

public EventHandler AddNew;


2) Fire that event form user controls event.

if (AddNew != null)
AddNew(sender, e);


(like button click event in that control.)

3) Now asign that event in Page_OnInit event for that control.

protected override void OnInit(EventArgs e)
{
myUserCotrol1.AddNew = new EventHandler(MyNewEventMethod);
}


4) Now wight down that method in which one you declared in page onInit event


protected void MyNewEventMethod (object sender, EventArgs e)
{
//Some code;
//Some code;
}

Done!!!!

31 January 2008

Download 59 learning video of Silver Light from Silver.net site.

Create PROCEDURE usp_MoveSequence]

@ID int,

@Sequence int,

@MoveBy varChar(4)

AS

BEGIN—PROCEDURE

SET NOCOUNT ON;

DECLARE @compateTo INT

DECLARE @compateToMax INT

DECLARE @currentSequence INT

DECLARE @NextSequence INT

DECLARE @NextRecordID INT

IF @MoveBy='UP'

Select TOP 1 @NextSequence=Sequence, @NextRecordID=ID from TableName where sequence<@Sequence ORDER BY sequence DESC

ELSE IF @MoveBy='DOWN'

Select TOP 1 @NextSequence=Sequence, @NextRecordID=ID from TableName where sequence>@Sequence ORDER BY sequence

--ENDIF

IF @NextRecordID<>0

BEGIN

UPDATE TableName SET Sequence=@NextSequence WHERE ID=@ID

UPDATE TableName SET Sequence=@Sequence WHERE ID=@NextRecordID

END

END--PROCEDURE

13 January 2008

Do you want to show 1 rupees note of year 1949?

Click Here to find really very great information about currency of our country with image preview and it year.
Did you started to learn new features of Visual Studio 2008?

  • What's New in Microsoft Visual Studio 2008
  • Microsoft LINQ
  • Microsoft ASP.NET AJAX
  • Microsoft Silverlight.
Download eBook of this new version of Visual Studio from Microsoft learning center.