10 June 2008
02 June 2008


02 April 2008


This is one kind of RSS Reader software.
Using MSDN Reader we can brows MSDN Magazine very easily.
This is available on WidowsClient.net


Download MSDN Reader
Using MSDN Reader we can brows MSDN Magazine very easily.
This is available on WidowsClient.net


Download MSDN Reader
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">
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".
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.
It will display Gurati language keyborad and search result in Internet Explorer.

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.
"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.

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
2) Fire that event form user controls event.
(like button click event in that control.)
3) Now asign that event in Page_OnInit event for that control.
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);
}
protected void MyNewEventMethod (object sender, EventArgs e)
{
//Some code;
//Some code;
}
Subscribe to:
Posts
(
Atom
)