ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip   SiteMap shows list of All Categories in this site.
Google
 
Categories  >>  Code Snippets  >>  Programming Code  >>  Dot Net Code  >>  ASP.NET Code
 
 


 

 
 ASP.NET Code interview questions  ASP.NET Code Interview Questions
 VB.NET Code interview questions  VB.NET Code Interview Questions
 C Sharp Code interview questions  C Sharp Code Interview Questions
 ADO.NET Code interview questions  ADO.NET Code Interview Questions
Question
what is the value that reside in a hidden field when no 
value is assigned to it?how it can be used in a if 
statement??
 Question Submitted By :: Prakash Kuttappan
I also faced this Question!!     Rank Answer Posted By  
 
  Re: what is the value that reside in a hidden field when no value is assigned to it?how it can be used in a if statement??
Answer
# 1
If No value assigned to a hidden field then it contains 
String.Empty value.

Habling empty value:

<%@ Page Language="VB" AutoEventWireup="true" 
CodeFile="Default.aspx.vb" Inherits="_Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 
1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Demo</title>
</head>
<body>
    <form id="form1" runat="server">          
<asp:HiddenField ID="hndField" runat="server" />
           </form>
</body>
</html>

Code behind...
  Protected Sub Page_Load(ByVal sender As Object, ByVal e 
As System.EventArgs) Handles Me.Load

        If hndField.Value <> String.Empty Then
do......
        End If
    End Sub
 
Is This Answer Correct ?    2 Yes 0 No
Rupinder
 

 
 
 
Other ASP.NET Code Interview Questions
 
  Question Asked @ Answers
 
how to upload an excel in c# ASP.Net?  2
Give coding for Exception Handling Techniques in ASP.NET? Microsoft3
How to Export Data to Excel? Eastcom-Systems3
How to integrate the regional language in asp.net and c# like Telugu, Hindi etc,. send a sample program NIIT2
How we implement the paypal in my website and how we make a payment through Credit Card.  2
Code for Sending E-Mail with System.Web.Mail?  1
How to send e-mail from an ASP.NET application? TCS10
hold checkbox values  4
how can we close a web page in asp.net without using jscript?  1
working with fileUpload ?  1
what is the value that reside in a hidden field when no value is assigned to it?how it can be used in a if statement??  1
how to convert Dataset to Object Array or list in c# .net  3
how to design a ListView control?  1
Give coding for Implementing a Fixed GridView Header in ASP.NET?  1
What do you create for easier access of data? NIIT2
How to Create Scrollable Micro Windows?  2
Code for a Simple Way to Write XML in .NET (XmlTextWriter)  1
Data Reader Vs DataSet TCS1
Code for Getting Information About A File?  1
how to upload a photo? i need to use it in a matrimonial applicaton...  1
 
For more ASP.NET Code Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com