Click here to Skip to main content
15,887,267 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionWeb tabstrip user control Pin
bijeshputhalath1-May-08 22:18
bijeshputhalath1-May-08 22:18 
QuestionDropdownlist without autopostback [modified] Pin
raushan_91-May-08 21:24
raushan_91-May-08 21:24 
AnswerRe: Dropdownlist without autopostback Pin
eyeseetee1-May-08 22:31
eyeseetee1-May-08 22:31 
GeneralRe: Dropdownlist without autopostback Pin
raushan_91-May-08 22:35
raushan_91-May-08 22:35 
GeneralRe: Dropdownlist without autopostback Pin
eyeseetee1-May-08 22:43
eyeseetee1-May-08 22:43 
QuestionReg creating custom layout pages in sharepoint portal Pin
manikandanid1-May-08 20:01
manikandanid1-May-08 20:01 
AnswerRe: Reg creating custom layout pages in sharepoint portal Pin
Vasudevan Deepak Kumar1-May-08 21:12
Vasudevan Deepak Kumar1-May-08 21:12 
QuestionResource file nightmare Pin
Christian Graus1-May-08 18:21
protectorChristian Graus1-May-08 18:21 
OK, so all I want to do, is to store the URLs I use for links, in a resource file. Is this possible ? Apparently not.

I need to have a hyperlink column in a datagrid, which uses a URL from the resource file. The trouble is, when I get it into a form that compiles, it won't run, because a resource file is internal, and resets to internal whenever you change it. But, despite the file being in the same project as my page, internal means the page cannot access it.

Is there any way around this ?

Oh, and the DataNavigateUrlFormatString cannot be build from a code behind method at all. The <%= syntax is plain ignored by so many controls, it's hard to work out where it will work and where not.

<asp:HyperLinkField DataNavigateUrlFormatString='<%=VMSURL.ViewURL%>' DataNavigateUrlFields='IDRequest, CaseNumber' DataTextField="CaseNumber" HeaderText="Case #" Target="_blank" />


Renders the <%= syntax verbatim

<asp:TemplateField>
<ItemTemplate>
<asp:HyperLink runat="server" Text='<%# Eval("CaseNumber") %>' NavigateUrl='<%# string.Format(VMSURL.ViewURL, Eval("IDRequest"), Eval("CaseNumber" ) ) %>' />
</ItemTemplate>
</asp:TemplateField>

Throws an error because VMSURL does not exist. Changing the resource class to public fixes it, until I edit the resource file and it goes internal again.

Christian Graus

Please read this if you don't understand the answer I've given you

"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

AnswerRe: Resource file nightmare Pin
Christian Graus1-May-08 19:31
protectorChristian Graus1-May-08 19:31 
QuestionCrosssite Scripting [modified] Pin
dan!sh 1-May-08 18:04
professional dan!sh 1-May-08 18:04 
AnswerRe: Crosssite Scripting Pin
Vasudevan Deepak Kumar1-May-08 21:13
Vasudevan Deepak Kumar1-May-08 21:13 
QuestionUnable to find an entry point named 'FreeCredentialsHandle' in DLL 'security.Dll' Pin
c#ivan1-May-08 10:56
c#ivan1-May-08 10:56 
AnswerRe: Unable to find an entry point named 'FreeCredentialsHandle' in DLL 'security.Dll' Pin
Vasudevan Deepak Kumar1-May-08 21:14
Vasudevan Deepak Kumar1-May-08 21:14 
GeneralRe: Unable to find an entry point named 'FreeCredentialsHandle' in DLL 'security.Dll' Pin
c#ivan2-May-08 0:29
c#ivan2-May-08 0:29 
Question[Message Deleted] Pin
newbcoder1-May-08 10:35
newbcoder1-May-08 10:35 
AnswerRe: logout problem Pin
Christian Graus1-May-08 11:54
protectorChristian Graus1-May-08 11:54 
AnswerRe: logout problem Pin
N a v a n e e t h1-May-08 16:42
N a v a n e e t h1-May-08 16:42 
QuestionForum packages? Pin
pankazmittal1-May-08 10:26
pankazmittal1-May-08 10:26 
AnswerRe: Forum packages? Pin
Vasudevan Deepak Kumar1-May-08 21:14
Vasudevan Deepak Kumar1-May-08 21:14 
GeneralRe: Forum packages? Pin
pankazmittal2-May-08 3:34
pankazmittal2-May-08 3:34 
QuestionRestrict open in file download prompt Pin
Kschuler1-May-08 10:01
Kschuler1-May-08 10:01 
AnswerRe: Restrict open in file download prompt Pin
SomeGuyThatIsMe1-May-08 10:34
SomeGuyThatIsMe1-May-08 10:34 
AnswerRe: Restrict open in file download prompt Pin
Vasudevan Deepak Kumar1-May-08 21:15
Vasudevan Deepak Kumar1-May-08 21:15 
Questionproblem regarding thumbnail generation. Pin
Iunknown1-May-08 8:24
Iunknown1-May-08 8:24 
AnswerRe: problem regarding thumbnail generation. Pin
SomeGuyThatIsMe1-May-08 10:22
SomeGuyThatIsMe1-May-08 10:22 

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.