View Complete Post
Hello!
This is my code:
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %><% if (Request.IsAuthenticated) {%> <%:Application["Welcome"] %> <b><%: Page.User.Identity.Name %></b>! [ <%: Html.ActionLink(Application["LogOut"].ToString, "LogOff", "Account") %> ]<% } else {%> [ <%: Html.ActionLink(Application["LogIn"].ToString, "LogOn", "Account") %> ]<% }%>
WANTED BEHAVIOUR:
What I want to do is pretty simple, I set appropriate values in the application array at the global.asax level and would then want to see those values be written in place of the default ones. That obviously does not happen or I wouldn't be writing here :-P
ACTUAL BEHAVIOUR:
It gives out an error saying it doesn't find an correct overload for the method ActionLink(or something along these lines anyway).
Clearly, that's wrong :-P since I would expect it to display m
Hi,
I have a requirement to build a simple ASP.NET web page which sends some parameters to a web service, and then displays the string which was returned.
I'm a complete .NET newby and the only examples I can find seem really really complex. I just need something mega simple, but which an handle parameters being sent to the web service. Can anyone point me in the direction of a simple bit of C# which will do this with no frills or fuss?
Any help much appreciated, thanks!
hi guys
i have a string contain :
kasjbdfkjasbdf klsajdfl
ajbfk <html> ... </html> ksadfksadfwie...
now i wnat to find string beetwen <html> tag
(with regex)
how i can do that?
tnx guys
Iam getting the below string in a variable"result" after xslt tranformation.if i do Page.ParseControl(result) iam able to render controls to the page.But the requirement is different.I have 4 place holders in that aspx page.I need to bind div id="Section1" to placeholder1,div id="Section2" to placeholder2 and similar the other two sections also to the corresponding place holder.Please help me out how can i loop and add controls to corresponding place holder.
result =
<div id="Section1" xmlns:asp="remove"> <asp:Label id="lblSection1" runat="server" text="section1" /> <asp:RequiredFieldValidator ErrorMessage="Mandatory Field-1" runat="server" ControlToValidate="txtNameSection1" /> <asp:TextBox id="txtNameSection1" runat="server" /></div><div id="Section2" xmlns:asp="remove"> <asp:Label id="lblSection2" runat="server" text="section2" /> <asp:RequiredFieldValidator ErrorMessage="Mandatory Field" runat="server" ControlToValidate="txtNameSection2" /> <asp:TextBox id="txtNameSection2"
Hall of Fame Twitter Terms of Service Privacy Policy Contact Us Archives Tell A Friend