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.
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
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.
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
Hi,
May I know what are the best practices for implementing a site search in ASP .net web app. The user should be able to enter some keywords and get related links with the keyword. I have just started researching. It would be great if you put on your ideas.
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
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!
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.
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?
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.
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.
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
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?
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
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 ?
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!
Hi all,
Now I am working on project using asp.net mvc 2 and linq to sql, the problem is occurs when trying to insert data in a table where the table has an identity column type of tinyint. When trying to insert the error following error occurs,
The primary key column of type 'TinyInt' cannot be generated by the server.
What is the problem, does linq to sql support tinyint datatype?
Please help me
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?
I don't want to make this into a "which is better... MVC or WebForms" type of question. Im sure that has been asked a bunch of times here already.
My Question: If I am building a MVC web project, why should I not use an ASP.NET datagrid control on one of my "Views" .aspx pages?
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, I have an asp.net web app and I need to launch a pdf report that is developed in SSRS using SQL 2005. The SSRS report query has been created. How can I go about launching the report?