Click here to Skip to main content
15,895,084 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionCrystal Report Printing From ASP.net web page. Pin
VikashGohil23-Apr-10 20:04
VikashGohil23-Apr-10 20:04 
AnswerRe: Crystal Report Printing From ASP.net web page. Pin
Abhijit Jana23-Apr-10 20:40
professionalAbhijit Jana23-Apr-10 20:40 
GeneralRe: Crystal Report Printing From ASP.net web page. Pin
VikashGohil25-Apr-10 20:16
VikashGohil25-Apr-10 20:16 
QuestionVertical gridveiw header text make header column width changed Pin
Andraw11123-Apr-10 9:54
Andraw11123-Apr-10 9:54 
AnswerRe: Vertical gridveiw header text make header column width changed Pin
T M Gray23-Apr-10 12:00
T M Gray23-Apr-10 12:00 
AnswerRe: Vertical gridveiw header text make header column width changed Pin
Abhijit Jana23-Apr-10 20:45
professionalAbhijit Jana23-Apr-10 20:45 
AnswerRe: Vertical gridveiw header text make header column width changed Pin
sashidhar24-Apr-10 1:15
sashidhar24-Apr-10 1:15 
Questionbinding a constant value to a asp.net hiddenfield Pin
Pratik Vasant Shah23-Apr-10 1:53
Pratik Vasant Shah23-Apr-10 1:53 
Hello,
I have an aspx page (Test.aspx) and a class (Constants.cs).
The aspx page has a single Asp.net HiddenField.
The Constants.cs class has a list of some public constants defined.

I am not able to bind the value of the hiddenfield with a constant (defined in Constants.cs) during the design time. I need to explicitly call hiddenField.DataBind() method in my Page_Load() method at the run time.

The code that I am using to bind the "Value" property of the HiddenField is:

<asp:hiddenfield id="hdnPosition" runat="server" value="<%# Constant.Position%>">


The Value property of the hiddenField is set only when I call the hdnPosition.DataBind() method in my C# code.

Is there any other alternative to this?? I would not like to call the DataBind() method every now and then since my page has almost 8 - 10 hidden fields which are being bound to such constant values which are defined in Constants.cs

Awaiting for your valuable inputs.
Thanking you all in Advance

Regards
Pratik Shah

AnswerRe: binding a constant value to a asp.net hiddenfield Pin
Not Active23-Apr-10 2:15
mentorNot Active23-Apr-10 2:15 
AnswerRe: binding a constant value to a asp.net hiddenfield Pin
Shahriar Iqbal Chowdhury/Galib23-Apr-10 10:00
professionalShahriar Iqbal Chowdhury/Galib23-Apr-10 10:00 
GeneralRe: binding a constant value to a asp.net hiddenfield Pin
Pratik Vasant Shah25-Apr-10 21:22
Pratik Vasant Shah25-Apr-10 21:22 
Questionhelp on popup window Pin
S.Aijaz23-Apr-10 0:43
S.Aijaz23-Apr-10 0:43 
GeneralRe: help on popup window Pin
Arun Jacob23-Apr-10 1:07
Arun Jacob23-Apr-10 1:07 
GeneralRe: help on popup window Pin
S.Aijaz23-Apr-10 1:39
S.Aijaz23-Apr-10 1:39 
AnswerRe: help on popup window Pin
Brij23-Apr-10 1:14
mentorBrij23-Apr-10 1:14 
GeneralRe: help on popup window Pin
S.Aijaz23-Apr-10 1:50
S.Aijaz23-Apr-10 1:50 
GeneralRe: help on popup window Pin
Brij23-Apr-10 2:33
mentorBrij23-Apr-10 2:33 
AnswerRe: help on popup window Pin
Sandesh M Patil23-Apr-10 1:15
Sandesh M Patil23-Apr-10 1:15 
AnswerRe: help on popup window Pin
T M Gray23-Apr-10 10:18
T M Gray23-Apr-10 10:18 
QuestionSql LIMIT Pin
Morgs Morgan23-Apr-10 0:02
Morgs Morgan23-Apr-10 0:02 
AnswerRe: Sql LIMIT Pin
Viral Upadhyay23-Apr-10 1:19
Viral Upadhyay23-Apr-10 1:19 
GeneralRe: Sql LIMIT Pin
Morgs Morgan23-Apr-10 3:01
Morgs Morgan23-Apr-10 3:01 
AnswerRe: Sql LIMIT Pin
Sandesh M Patil23-Apr-10 5:00
Sandesh M Patil23-Apr-10 5:00 
AnswerRe: Sql LIMIT Pin
T M Gray23-Apr-10 10:36
T M Gray23-Apr-10 10:36 
GeneralRe: Sql LIMIT Pin
Morgs Morgan27-Apr-10 20:20
Morgs Morgan27-Apr-10 20:20 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.