3/3/09

How to access HTML Input control value from .aspx page?

Hi all,
If you are accessing a plain HTML form, it HAS to be submitted to the server via a submit button (or via a javascript post). This means that your definuition looks something like this:


<Form action="page.aspx" method="post" >
<input id="customerName" name="customerName" >
<input id="customerPhone" name="customerPhone" >
< type="submit" value="Save" >< /form >

Now, from .aspx page, you should be able to access these controls using this line of code:

string name = Request.Form["customerName"].ToString();

If you are using "GET" method (however, it is not recommended for the sake of security), try using following line:

string name = Request.QueryString["customerName"].ToString();

This, of course will work only if the page is "POSTED", "SUBMITTED" or done via a "POSTBACK", or it was done via a javacript postback.

12/29/08

Want to write diaries on computer? No problem.

Hey all, 

Many of us likes to create diary. 

But, in the diary, which part is most important?

Obviously, the contents. But, without proper dating, it would be nearly useless. 

So, here is a simple technique using which you can simply use Notepad (MS Windows) to write the diary of your own.

Here I go .................

1. Open "Notepad".

2. Type ".LOG" on the first Line.

3. Save the file with proper name.

And it is done!!!

Yeah, and now every time you open the file, date and time will be there. Write your contents underneath it and save the file.

Enjoy!!!

12/25/08

Welcome all you programmers!!!

Hi!
As a programmer and an x-faculty, I thought it's my job to help the other programmers to create more sophisticated programs with ease.
I have learnt, worked on, and taught following languages :-
1. Assembly
2. C
3. C++
4. Java
5. VB.Net
6. C#.Net
7. Command line programming in Command Prompt in Windows

Technologies :-
1. Console Applications in Java
2. Windows Applications in Java
3. Web Applications in Java
4. Windows Applications in VB.Net
5. Console Applications in C#.Net
6. Windows Applications in C#.Net
7. ASP.Net Applications in C#.Net

Databases :-
1. MS Sql Server 2000
2. MS Sql Server 2005

Scripting Languages :-
1. Javascript
2. HTML
3. DHTML
4. XML
5. XSD

So, you see that you can post problem of nearly any language, database, technology, it might be solved.

Might? Yes, because I'm also a human and there is always a point where I can fail. But, I will try my level best.

Thank you!