The ASP.NET Control/PostBack Architecture is excellent for most Web . However, there are a few limitations that can sometimes be quite significant.One of the most fundamental problems has been the restriction to one server Form. This is very annoying for me i tried different methods but none of them worked, finally i tried with the panels and worked perfectly. I'm sharing you steps for enabling multiple forms in a single asp.net page. This article is a review of solution to the problems:
Trick
Use Panels inside the form tags....
Sample Code
< id="Form1" method="post" runat="server">
< id="panel1" runat="server">
< id="Textbox2" runat="server">Form1
< runat="server" id="Button1" name="Button1" text="Click to see Form2">
< id="panel2" runat="server" visible="false">
< id="TextBox1" runat="server">Form2
< runat="server" id="Button2" name="Button2" text="Click to see Form1">
Just try it and give feedbacks...
Looking for informative and engaging content? Look no further than our blog! Our team of expert writers covers a wide range of topics, from lifestyle and wellness to business and technology. With in-depth analysis, practical tips, and a conversational writing style, our blog is the perfect destination for anyone seeking to stay informed and inspired. So why wait? Browse our latest posts today and discover something new!
Wednesday, March 25, 2009
Tuesday, March 24, 2009
Programming with Parallel Port LPT
Now i'm working on a project to create a C/C++ software for communicating to the Parallel Port [LPT1]. Here i'm giving you the source code part which can be used for Parallel Port Programming. I'm sure that this may help you in some ways for your projects. Later i found that there is a library file named ParaPin which it easy to write C code under Linux that controls individual pins on a PC parallel port. but i didnt use that coz my whole system must be changed in order to do a small program. But Parapin is really helpful file for developers.
Source Code
----------
#include
#include
#include
#include
#include
#define port 0x378 //data port 8pins 2,3,4,5,6,7,8,9
#define status 0x379 //status 5pins 11,10,12,13,15
#define control 0x37A //control 4pins 17,16,14,1
void main()
{
long int value;
int ch;
go:
clrscr();
//checkstatus();
cout<<"** AD9851 Programming with LPT1 **";
cout<<"\n----------------------------------";
cout<<"\n1. Send values to LPT";
cout<<"\n2. Set all data pins HIGH";
cout<<"\n3. Set all data pins LOW";
cout<<"\n4. Reset";
cout<<"\n5. Exit";
cout<<"\n Choose your entry :";
cin>>ch;
switch(ch)
{
case 1:
for(int i=0;i<5;i++)
{
cout<<"\nEnter W"<<<"=";>
cin>>value;
outport(port,value);
cout<<"\nValue"<<<"sent>
outport(control,0001); //clock high
cout<<"Setting Word Clock High!!!\n";
}
outport(control,0010); //freq update high
cout<<"Setting Frequency Update as HIGH !!!";
cout<<"Word Entered Successfully....";
getch();
goto go;
case 2:
outport(port,255);
cout<<"\n Setting all data pins to high...";
cout<<"\nPress any key to continue...";
getch();
goto go;
case 3:
outport(port,0);
cout<<"\n Setting all data pins to low...";
cout<<"\nPress any key to continue...";
getch();
goto go;
case 4:
outport(control,0011);
cout<<"\nResetting Complete...";
cout<<"\nPress any key to continue...";
getch();
goto go;
case 5: exit(0); break;
default : cout<<"\nWrong entry...";
}
}
void checkstatus()
{
unsigned int far *ptradr; /* Pointer to location of Port Addresses */
unsigned int address; /* Address of Port */
int a;
ptradr=(unsigned int far *)0x00000408;
for (a = 0; a <>
{
address = *ptradr;
if (address == 0)
printf("No port found for LPT%d \n",a+1);
else
printf("Address assigned to LPT%d is %Xh\n",a+1,address);
*ptradr++;
}
}
Source Code
----------
#include
#include
#include
#include
#include
#define port 0x378 //data port 8pins 2,3,4,5,6,7,8,9
#define status 0x379 //status 5pins 11,10,12,13,15
#define control 0x37A //control 4pins 17,16,14,1
void main()
{
long int value;
int ch;
go:
clrscr();
//checkstatus();
cout<<"** AD9851 Programming with LPT1 **";
cout<<"\n----------------------------------";
cout<<"\n1. Send values to LPT";
cout<<"\n2. Set all data pins HIGH";
cout<<"\n3. Set all data pins LOW";
cout<<"\n4. Reset";
cout<<"\n5. Exit";
cout<<"\n Choose your entry :";
cin>>ch;
switch(ch)
{
case 1:
for(int i=0;i<5;i++)
{
cout<<"\nEnter W"<<<"=";>
cin>>value;
outport(port,value);
cout<<"\nValue"<
outport(control,0001); //clock high
cout<<"Setting Word Clock High!!!\n";
}
outport(control,0010); //freq update high
cout<<"Setting Frequency Update as HIGH !!!";
cout<<"Word Entered Successfully....";
getch();
goto go;
case 2:
outport(port,255);
cout<<"\n Setting all data pins to high...";
cout<<"\nPress any key to continue...";
getch();
goto go;
case 3:
outport(port,0);
cout<<"\n Setting all data pins to low...";
cout<<"\nPress any key to continue...";
getch();
goto go;
case 4:
outport(control,0011);
cout<<"\nResetting Complete...";
cout<<"\nPress any key to continue...";
getch();
goto go;
case 5: exit(0); break;
default : cout<<"\nWrong entry...";
}
}
void checkstatus()
{
unsigned int far *ptradr; /* Pointer to location of Port Addresses */
unsigned int address; /* Address of Port */
int a;
ptradr=(unsigned int far *)0x00000408;
for (a = 0; a <>
{
address = *ptradr;
if (address == 0)
printf("No port found for LPT%d \n",a+1);
else
printf("Address assigned to LPT%d is %Xh\n",a+1,address);
*ptradr++;
}
}
Internet Activity Monitor Wizard
This software is developed for interet users. Now-a-days
there is a small problem for dialup users(usually) ie. if we
have connected the system to internet for downloading
in the night time and if the mobile battery power is running
lower, the mobile will be powered off and the net wil be
disconnected and the system will be in the ON state till
furthe user interactions, this will charge a lot of power.
So i developed this software to counter this, it will monitor
the system and will power off automatically whenever
the net connection is terminated.
How to install?
--------------
OPEN SETUP.EXE
Pre-Requesties?
---------------
.net Framework 2.0 or higher
Developed by
Aravind NC
n.c.aravind@gmail.com
aravind_n_c@yahoo.co.in
Download Now
Quick SMS v2.10
On JAN 27,2009 This is my new software by which you can send free sms to any mobile with this software. I created this software by using the gateway of 160by2. Just use this software and wend me your valuable feedbacks. Thank you..
How to Install
--------------
use setup.exe to install
.net framework 2.0 or greater required
Feedbacks
---------
aravind_n_c@yahoo.co.in
n.c.aravind@gmail.com
Bugs Fixed in new version
-------------------------
* Fixed problem with letter 'T'
* Added a new option to reconnect during connection failure
* windows can be moved anywhere
Download Now
Subscribe to:
Posts (Atom)
Popular Posts
-
Here is the working script for PHP Mailer in GoDaddy Hosting, include("includes/class.phpmailer.php"); date_default_timez...
-
Hanuman Jayanti is a significant Hindu festival celebrated in honor of Lord Hanuman's birth anniversary. It is observed on the full mo...
-
Use the below code to create a calendar event in PHP and send it as email to Microsoft Outlook or iPhone Calendar. < ?php /** * @cate...
-
Hi Folks, In Wordpress while uploading a file sometime you may encounter an HTTP Error while crunching file. Usually this error can be resol...
-
Siblings Day is a special day that celebrates the bond between brothers and sisters. Observed on April 10th, this day is a great opportunit...
-
Here is a simple way to generate a signed request for diferent services using AWS: /// AWS API keys $aws_access_key_id = 'your-aws...
-
1. The Menu menu This another great CSS menu Stu Nicholls that’s unique – hovering over a menu item reveals a submenu. If you want get...
-
I've created this program as a part of a project 'Image Enhancer'. This Program can be used //Checking and validation of an BM...
-
When adding a fancybox popup you may encounter a common issue, which shows the below error message, while clicking the link. "Th...
-
Q: Can I start my own company on oDesk? A: Yes! oDesk allows you to build and manage a team of workers, colleagues and collaborators. Yo...