I am adding functionality to an ASP.Net webforms application and we've decided that new development will be done MVC with a view to move all functionality over eventually.
Obviously, MVC and WebForms play together rather nicely when it comes to accessing an MVC action via a URL. However, I'd like to display the MVC view within an existing tab (telerik) control on a WebForm page. This view will be using js/css file so that will need to be considered also.
Can any one guide me on how i can send emails with a return path in ASP.net 3.5 / C# 3.5. I know this was possible few years back but now due to spoofing issues this is not possible. I have been looking on internet but no use. I want the emails if bounced, should reach my bounce mail box, which could be like [email protected].
Please guide. Really stuck ...
Best regards,
Haroon
I need to scroll to the top of the page after an Async Postback in an update panel. I've tried a couple of methods, and while they all scroll to the top of the page, they all get "overriden" by ASP.Net Ajax which returns the page to where it was when the postback occurs. I have already set MaintainScrollPositionOnPostBack="false" in the Page directive.
I have an asp.net menu control which the child items(submenu) width is tied to its parent's width, I was wondering is there a work around? because some of the titles for the submenu are longer than the title of the parent so it looks all smooshed together and just horrible on the eyes. Any help is much appreciated. :)
.net control:
<asp:Menu ID="navigation" runat="server" Orientation="Horizontal" CssClass="topmenu" MaximumDynamicDisplayLevels="20" IncludeStyleBlock="false">
<DynamicSelectedStyle />
<DynamicMenuItemStyle />
<DynamicHoverStyle />
<DynamicMenuStyle />
<StaticMenuItemStyle />
<StaticSelectedStyle />
<StaticHoverStyle />
</asp:Menu>
html rendered:
<div class="topmenu" id="navigation">
<ul class="level1">
<li><a class="popout level1" href="dashboard.aspx?option=1">Seguridad</a>
<ul class="level2">
<li><a class="level2" href="security/users.aspx?option=15">Usuarios</a></li>
<li><a class="level2" href="security/profiles.aspx?option=16">Perfiles</a></li>
<li><a class="level2" href="security/options.aspx?option=17">Opciones</a></li>
<li><a class="level2" href="security/actions.aspx?option=18">Acciones</a></li>
</ul>
</li>
</ul>
</div>
css:
div.topmenu{}
div.topmenu ul
{
list-style:none;
padding:5px 0;
margin:0;
background: #0b2e56;
}
div.topmenu ul li
{
float:left;
padding:10px;
color: #fff;
height:16px;
z-index:9999;
margin:0;
}
div.topmenu ul li a, div.menu ul li a:visited{ color: #fff; }
div.topmenu ul li a:hover{ color:#fff; }
div.topmenu ul li a:active{color:#fff; }
thats what I have and the styling works i just need help in getting submenus to expand if they are bigger than main title. Thanks in advance!
Hello Friends,
I implemented Microsoft charting controls for pie and wave charts. It's working in Firefox, but when I try IE the chart is not displaying and when I refresh the page couple of times its
displying. I am using asp.net mvc appliction with jquery..
Can anybody have the suggestion about this?
thanks
Hello Friends,
Can anyone help me?
How can I read SMS from mobile with my .net application? i have a Nokia 5310 mobile phone. Can you tell me from where i can download Nokia SDK or source code or Nokia API etc?
I want to make a custom application which reads SMS and at the same time sends a response to the sender's mobile number.
When I do ThreadPool.QueueUserWorkItem, I don't want unhandled exceptions to kill my entire process. So I do something like:
ThreadPool.QueueUserWorkItem(delegate() {
try { FunctionIActuallyWantToCall(); }
catch { HandleException(); }
});
Is this the recommended pattern? It seems like there should be a simpler way to do this. It's in an asp.net-mvc app, if that's relevant.
I need to get an image from a SQL Server as a byte[], and load it to a WebControl.Image. The only seemingly good way to do it that I found is to implement IHttpHandler and handle the request accordingly.
But I'm stuck to using asp.net 1.1. Does it support ashx files?
Hi folks, i would like to know what is it that motivated you to move to .net 4.0 from earlier frameworks?
What specifically could be done better & what was the scenario?
TIA
I have a asp.net website and i need to import address books from yahoo, msn and aol. I have already done gmail import by downloading the google contacts api. But i cannot find the same for yahoo,msn and aol. does anyone know if there's a single dll avilable that can do this? or any other way is fine.
Hi everbody,
I write a countdown timer in jquery and i need to keep some datas in a session when countdown ends. datas have to be sent to server to update. How can i handle this situation. I am new in jquery and asp.net so could you explain this briefly
When we have anything that requires user input (Eg adding a product to a database) the Edit screen looks the same as the add screen. When using MVC .Net how do you handle this? Do you return the same view? Just adjust the model to reflect the change?
We have a number of small but useful WCF services which are being hosted using the WebScriptServiceHostFactory class and consumed via ASP.NET AJAX. We've noticed that in our production environment that the javascript proxies are not being cached by the client. Is there anyway to allow these files to be cached?
what is advantage of using control state instead of view state when i create custom control in asp.net ?
so i want to know why to use control state ?
can some please provide me good article or descriptive answer for this ?
can I make role based authorization when sending requests to an ASP.NET MVC backend system. I am calling action methods and expecting JSON results, however, some action methods are decorated with the [Authorize] attribute, others require some role privileges to be present. I certainly hope that passing authorization data with every request is possible
Hello,
Does adding a Web Service to my ASP.NET MVC project break the whole concept of MVC?
That Web Service (WCF) depends on the Model layer from my MVC project to communicate with the back-end (so it looks to me like it needs to be part of the MVC solution).
Should I add this to the Controller or Model layer?
Hi All,
I have an existing webapp and i'm attempting to setup BlogEngine .Net to share the membership tables
Everything seems to work.. accept i can see that the Membership.ValidateUser call in blogengine returns false! While the other apps returns true.
I'm at a loss.. Membership.GetUser called from both apps returns the correct user..
Any ideas? thanks!
I want to batch insert multiple records in sql server database using ADO.NET command/sqldataadapter and get identity value generated for all the rows in a single database trip.
What are my options?
When I run my asp.net mvc 2 site (shared hosting) I get the following error:
Method not found: 'Void System.Web.Mvc.DataAnnotationsModelValidatorProvider.set_AddImplicitRequiredAttributeForValueTypes(Boolean)'.
In the bin directory I have System.Web.Mvc.dll version 2.0.50217.0
On my local dev machine it runs fine.
Is it possible that if the hosting provider has a different mvc 2 version installed it would cause this error?
Thank you!
Hello Friends,
I implemented Micrsoft charting controls for Pie chart and wave chart Its working in Firefox but when I come for IE chart is not displying and when i refresh the page couple of times its
displying. I am using asp.net mvc appliction with jquery..
can anybody have the sujjestion about this?
thanks
Hi!
Is there an easy way to get the relative compliment of two sets? Perhaps using LINQ?
http://en.wikipedia.org/wiki/Complement_(set_theory)
I have to find the relative compliment of a set A relative to B. Both A and B are of type HashSet but I think the algorithm could be made more generation (IEnumerable or even ISet)?
I could use a solution in either vb.net or C#.