You may use the following command on your cmd prompt to add a persistent route to windows server 2003.
C:\Route add -p network [network address] mask [subnet mask] [gateway] metric [value]
for help on this command type
C:\ route ADD
to print all added routes type in
C:\route print
hope it helps.
vaibhav chugh
Monday, August 18, 2008
adding a persistent route to windows server 2003
Posted by
vaibhav
at
10:55 AM
0
comments
Sunday, July 20, 2008
RadioButtons in gridview. Select one at a time
Hi,
This is another problem I just solved. I found all possible stuff on the internet and no one had solved it in an easier fashion. Though people might call it JUGAD Tech but I must say what I have made just worked for me.
The problem with using radio buttons in a gridview is that even if u use the groupname property of the radio button it will select multiple radio buttons.
So what i did is
1. To the column tag of the gridview add the following code
protected void uncheckOthers(object sender, EventArgs e)
{
int count = GridView1.Rows.Count;
for (int i = 0; i < count; i++)
{
RadioButton rb = (RadioButton)GridView1.Rows[i].Cells[0].FindControl("selectItem");
rb.Checked = false;
}
RadioButton test=(RadioButton)sender;
test.Checked = true;
}
Isn't it easy..
Cheers!!!
Vaibhav
Posted by
vaibhav
at
5:14 PM
0
comments
Wednesday, July 16, 2008
Fetching data into a variable from SqlDataSource in Asp.NET with C#
After my struggle of 3 hours I finally got it working. I thought it would be easy but MSDN was of no help at all and the web is full of all the stupid stuff but not the correct information. People just put in the concept and nobody even bothers to write down the steps to fetch the data after the execution of query.
Here is the code I made with the help of a post on some discussion forum. The title of the topic i read was "Getting Variable value out of a SqlDataSource in asp 2.0".
Following is the automatically generated markup when you configure the sqldatasource from the data tab.
Then to you onclick function just add the following lines:
protected bool CustomerAuthenticate(string username, string password)
{
DataView dv = ((System.Data.DataView)SqlDataSource1.Select(DataSourceSelectArguments.Empty)));
TextBox1.Text=dv.Table.Rows[0]["password"].ToString();
//check and return
}
I hope it will help
Posted by
vaibhav
at
6:50 AM
0
comments
Saturday, July 12, 2008
Master Pages and Themes in .NET
following are a few nice links for master pages and themes that can be used in .NET. I will be using them for my final project for my Internet Programming course.
http://msdn.microsoft.com/en-us/library/wtxbf3hh.aspx
http://www.simple-talk.com/dotnet/asp.net/beginning-asp.net-2.0/
http://msdn.microsoft.com/en-us/magazine/cc163967.aspx
http://www.odetocode.com/articles/450.aspx
http://www.west-wind.com/WebLog/posts/4899.aspx
Special thanks to Dr. Fawcett.
Vaibhav
Posted by
vaibhav
at
11:32 AM
0
comments
Wednesday, June 11, 2008
mounting and unmounting pendrive
This is for Damani Sir,
To mount a pendrive on ur freeBSD running on VMWARE SERVER or WORKSTATION. just plug in ur pendrive when vmware screen is in focus. It will show you some device information.
In case you dont see the device information coming up. go to
VM tab on the top of your screen > choose Detachable devices > and from the list choose the pendrive.
After doing the above
write
#cd /mnt
#mkdir pendrive
#mount -t msdos /dev/da0s1/ /mnt/pendrive/
and your pendrive is ready to use,
to unmount
#cd /mnt/pendrive
#sync
#cd ..
#umount /mnt/pendrive/
and u r all set to go...
ciao
vaibhav
Posted by
vaibhav
at
6:32 PM
0
comments
Saturday, April 26, 2008
A simple C program for writing to a file
Source:http://www.mycplus.com/cplus.asp?CID=8
#include "stdio.h"
main( )
{
FILE *fp;
char stuff[25];
int index;
fp = fopen("TENLINES.TXT","w"); /* open for writing */
strcpy(stuff,"This is an example line.");
for (index = 1; index <= 10; index++)
fprintf(fp,"%s Line number %d\n", stuff, index);
fclose(fp); /* close the file before ending program */
}
Posted by
vaibhav
at
6:39 AM
0
comments
Wednesday, April 9, 2008
B+ Tree Tutorial links.
For my DBMS course I studied the B+ tree implementation. I came across a few nice links.. I enjoyed reading the stuff and things were made pretty clear by the following links...This might be of some help to you as well..
http://www.scribd.com/doc/18211/B-TREE-TUTORIAL-PPT
http://www.seanster.com/BplusTree/BplusTree.html
http://www.ceng.metu.edu.tr/~karagoz/ceng302/302-B+tree-ind-hash.pdf
Take Care
Vaibhav
Posted by
vaibhav
at
7:28 AM
1 comments