asp.net

Asp.net Update Panel

I am working in asp.net 3.5 and have some issue of update panel.I have some html content and Formview control in a page. I want to hide the html content when there is no data in the Formview and to show when there is data in the Formview control. My Formview control is in the updatepanel and it it is bind to SqlDataSource and Formview bi...

Saving data in SQL Server database and then sending the email later

I have a data entry and editing form and in every data entry or update event, I have to send an email to a dynamic list of recipients. I have been sending the email as soon as the user clicks the save or edit buttons but am thinking of first saving the data to the database, and then sending the email later. I want to do this partly to im...

how to handle save file dialog of firefox in selenium using c#

Hi... i am using selenium for testing website which has functionality for downloading online video. i am using asp.net as language in selenium,each time i press download button save file dialog appears which cant be handle by selenium, how can i handle save file dialog(without using autoIt exe file). is there a way to call autoit script...

ASP.NET page content in database vs file performance?

I am creating a site whose content is dynamic and has images in it. What/How much performance hit will my DB (MSSQL) take if I save content/Images in DB? I am just trying to understand what kind of problems I may run into. I appreciate any responses. Thanks! ...

Microsoft patterns and Practices, Anyone?

I happend to go through the below site from one of the Stack over flow Questions. http://webclientguidance.codeplex.com/wikipage?title=Getting_Started_Feb_2008 Is this "One of the" way to create our web app from VS? I can create a Website,Web App,MVC web apps. now one more? man, its getting confusing. ...

How to implement SQLDependency caching in Asp.Net?

HI Can any one explain me how to implement SQL Dependency Caching in Asp.Net? ...

How to change Asp.net Theme via Web.Config on the fly

Summary I have a web-application with more than 5 themes. Each themes covers a completely different style for different customers. whenever we publish a new version of our application we send it for all of customers. The problem. We specify theme in web.config file in <Page> tag. like <page theme="Theme1" /> // or Theme2 for second c...

Asp Net Web User Control Rendering in design time

I render some markup dynamically in a Web User Control, can I get that out in design mode, and not only runtime? public override void RenderControl(HtmlTextWriter writer) { if (this.DesignMode) writer.Write("<p>In design mode</p>"); else base.RenderControl(writer); } ... nothing happens when I check the design view of the contr...

Enclosing listbox inside DIV tag

Hi, I want to enclose listbox inside a DIV tag in the code behind file using C#.I am adding all the required attributes and adding the list box as below: Controls.Add(listBox); I want the generated listbox to be enclosed with in a div. Please suggest how this can be done. Thanks in advance. ...

System.Web.UI.WebControls.Image/ImageButton not displaying the image

Hi, I'm a newbie to Asp.net,learning from the Apress's Begining Asp.net...book.While very curious to see an image given by me on the browser,I'm stuck at the very first step, please help. Configuration : Win7(32-bit),VS2008 Pro/.net 3.5,Firefox as default browser. Now,In created a simple website(not web app) in C#,added three images(....

call blockUI on button onclick

Hi, I'm trying to call an blockUI after a buttonclick, but I can't get it to work. What am I doing wrong? Script: $(function() { $('#<%= btnSave.ClientID %>').click(function(e) { e.preventDefault(); $.blockUI({ message: '<div><h1><img src="Images/busy.gif" /> Please wait.....

ASP.Net C#: Call serverside function together with Jquery BlockUI

Hi, I want to show a Jquery blockUI when I click an asp:button that triggers a serverside function. When the function ends, I want to do the unBlockUI. Is this possible? If so, can I have an example, cause I'm not an Ajax specialist. Thx! ...

Get the rowIndex of an ASP.Net Gridview using jQuery

Hello, is it possible to get the current rowindex of a gridview using jQuery? Bit of background: I delete rows from a gridview using a server side link button in a template field like so: <asp:LinkButton CausesValidation="false" CommandName="Delete" ID="lnkDelete" OnClientClick="javascript: return(confirm('Delete item?'...

Multipoint Routing Algorithm

Hi All, I am working on a webbased routing solution which is basically for clubbing\creating the routes online using Google Maps for a transport\dispatch system. I have to achieve below functionality but as of now i was never succeeded to do so,,please help I have 300 customers information including Geocode\address. All are located w...

Find out users browser and operating system

Is there a way in ASP.Net to find out the browser and operating system of the user? Thanks Jamie ...

When/why to use sqlite with asp.net MVC/Webfoms?

I really dont know why people use sqlite. As i just gone through some Top voted sqlite question i can't get the point. So can someone suggest the point When/why to use sqlite with asp.net MVC/Webfoms? EDIT: Any good sample asp.net web application that uses sqlite for getting started? ...

Is it possible to use sharepoint master page in a separate application as parent master page...

Hi, Is it possible to inherit a sharepoint master page(as a parent) in another application's master page which will be treated as child (i.e. after integrating that standalone application with the sharepoint application)? I am totally new to Sharepoint...Any links or article source related to this will be highly appreciated. Regards, DC...

ASP.NET webforms wildcard route

I'm using asp.net routing in a webforms app. I would like to achieve the following url format: http://[domain]/{parent-category}/{sub-category}/{sub-category} where the right most category is available as a route value. Currently I have achieved this with the following route: routes.MapPageRoute( "category-browse...

Catching CustomErrors in ASP.NET

I have the following entry in the web.config: <customErrors mode="RemoteOnly" defaultRedirect="Error.aspx" /> Is there a way in Error.aspx.cs to obtain the error details so I can save to a file? ...

Traversing DataRelations in ASP.NET Gridview with ADO.NET and .NET 4

When one has a Gridview and two datatables and one wishes to get the parent row and bind it to a gridview, how would this be done? ...