Click here to Skip to main content
15,916,702 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Questionimages on gridview Pin
Britney S. Morales26-Sep-06 9:33
Britney S. Morales26-Sep-06 9:33 
AnswerRe: images on gridview Pin
Not Active26-Sep-06 11:00
mentorNot Active26-Sep-06 11:00 
GeneralRe: images on gridview Pin
Britney S. Morales26-Sep-06 11:49
Britney S. Morales26-Sep-06 11:49 
GeneralRe: images on gridview Pin
Not Active26-Sep-06 12:02
mentorNot Active26-Sep-06 12:02 
AnswerRe: images on gridview Pin
Bishoy Labib26-Sep-06 12:35
Bishoy Labib26-Sep-06 12:35 
QuestionNeed GetGlobalResourcesObject (the type+property version) Pin
User 178031526-Sep-06 9:25
User 178031526-Sep-06 9:25 
AnswerRe: Need GetGlobalResourcesObject (the type+property version) Pin
minhpc_bk27-Sep-06 2:33
minhpc_bk27-Sep-06 2:33 
GeneralRe: Need GetGlobalResourcesObject (the type+property version) Pin
User 178031527-Sep-06 2:55
User 178031527-Sep-06 2:55 
hey there,
My first understanding was that it retrieves some object from the resource, tries to cast it into the type specified as the 3rd argument and then looks whether the result of the cast has the property named in the 4th parameter. If it was so, then the call would make sense for retrieval of objects like bitmaps and getting their dimension in one call, for instance. Another use would be for implicitly setting a control's property, as in:

<asp:label runat="server" meta:resourcekey="LabelPrefix">

Then it would make sense to call this method for properties of Label like Text or ToolTip. Only... implicit resource expression is supposed to work only with local resources (see http://quickstarts.asp.net/QuickStartv20/aspnet/doc/localization/localization.aspx#expressions) - in such instance using GetGlobalResourceObject makes no sense at all.

Looking at the description of the parameters at msdn (http://msdn2.microsoft.com/en-us/library/ms153594.aspx):
<br />
className<br />
    A string representing a ClassKey. <br />
<br />
resourceKey<br />
<br />
    A string representing a ResourceKey. <br />
<br />
objType<br />
<br />
    The type of object in the resource to get. <br />
<br />
propName<br />
<br />
    The property name of the object to get.<br />
<br />
Return Value<br />
An object representing the requested resource object; otherwise, a null reference (Nothing in Visual Basic).<br />


it seems the call should return the value of the object's named property cast to the type in the 3rd parameter...

In a word - I'm totally confused with this overload Smile | :) - as you say, it seems to make no sense.
QuestionFormatting Dates in Form to Email Pin
hers2keep26-Sep-06 9:15
hers2keep26-Sep-06 9:15 
AnswerRe: Formatting Dates in Form to Email Pin
Guffa26-Sep-06 11:37
Guffa26-Sep-06 11:37 
QuestionEncrypted Emails in ASP.NET Pin
S7626-Sep-06 8:24
S7626-Sep-06 8:24 
QuestionHelp with Regex (Matching words longer than 20 charcaters - to stop long words breaking my layouts) Pin
Dominic Pettifer26-Sep-06 7:53
Dominic Pettifer26-Sep-06 7:53 
QuestionKind of out of place since theis is not an ASP.NET question, but it's ASP & VB script related Pin
RoswellNX26-Sep-06 7:41
RoswellNX26-Sep-06 7:41 
AnswerRe: Kind of out of place since theis is not an ASP.NET question, but it's ASP & VB script related Pin
Guffa26-Sep-06 8:07
Guffa26-Sep-06 8:07 
GeneralRe: Kind of out of place since theis is not an ASP.NET question, but it's ASP & VB script related Pin
RoswellNX26-Sep-06 8:21
RoswellNX26-Sep-06 8:21 
GeneralRe: Kind of out of place since theis is not an ASP.NET question, but it's ASP & VB script related Pin
Guffa26-Sep-06 8:59
Guffa26-Sep-06 8:59 
GeneralRe: Kind of out of place since theis is not an ASP.NET question, but it's ASP & VB script related Pin
RoswellNX26-Sep-06 9:17
RoswellNX26-Sep-06 9:17 
AnswerRe: Kind of out of place since theis is not an ASP.NET question, but it's ASP & VB script related Pin
Guffa26-Sep-06 9:51
Guffa26-Sep-06 9:51 
GeneralRe: Kind of out of place since theis is not an ASP.NET question, but it's ASP & VB script related Pin
RoswellNX26-Sep-06 10:09
RoswellNX26-Sep-06 10:09 
AnswerRe: Kind of out of place since theis is not an ASP.NET question, but it's ASP & VB script related Pin
Guffa26-Sep-06 11:24
Guffa26-Sep-06 11:24 
NewsWorks! Pin
RoswellNX26-Sep-06 10:38
RoswellNX26-Sep-06 10:38 
QuestionEvent Handling Pin
jorsh26-Sep-06 7:06
jorsh26-Sep-06 7:06 
AnswerRe: Event Handling Pin
minhpc_bk26-Sep-06 15:40
minhpc_bk26-Sep-06 15:40 
QuestionAsp.Net 2.0 RSS. Need advice. Pin
shapper26-Sep-06 5:33
shapper26-Sep-06 5:33 
AnswerRe: Asp.Net 2.0 RSS. Need advice. Pin
minhpc_bk26-Sep-06 15:41
minhpc_bk26-Sep-06 15:41 

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.