asp.net

Linking User to Profile with forms authentication.

I am moving a legacy winform app to the web and would like some advice on forms authentication. Am I correct in assuming that forms authentication is better than rolling up my own user authentication functionality? It would be easy enough to roll my own since the this is what the winform application did and the table structure already...

Forms authentication table locations

When using aspnet_regsql to create the base tables for forms authentication, is it recommended that these tables be stored inside of the application database catalog or should a database catalog just for authentication be created. Thanks! ...

Crystal Reports

Hi My Crystal Reports is working well in the localhost but not on the server. When I press the calender in crystal report, it shows Run time Error.Iam using ASP.NET 2.0,vb.net,SQL 2005 how can i configure crystal report in the server ...

E-Mail address widget from Hotmail

When emailing someone from hotmail, the "To" field has a widget where individual email addresses are automatically encapsulated in a the closable box. What is this widget or control called? Can I downnload or purchase this control from anywhere? ...

How to specify the exact location of an assembly in a config file

I've got a web application and a corresponding web.config. The application depends upon assemblies, which are located on the system in a specific path (e.g. c:\programms\myprog\bla.dll) but not registered in the GAC. How can I tell my web application where to find these assemblies it depends upon? I guess I can do that somewhere in the w...

optimize web service client side performance?

Hello everyone, I am using the automatically generated proxy for a ASP.Net asmx web service. I find when send HttpWebRequest to my web server, it is the throughput from client side is very good (very big number). But when using the automatically generater proxy, it is very slow. I want to know some general ways to optimize the performan...

Opening a drop down and then changing the default value

If I have a drop down box, how can I have a default selection (know how to do this) which will change to another member in the drop down upon opening of the drop down? For example: My drop down has 2 values - "Hello", and "Hello Back". "Hello" is the default (0) value, but how can I display "Hello Back" when the drop down box is opened?...

How to use google maps API with multiple markers on the same map

So, i have the following script to use the google maps API, its all fine, but i need to create a map that has more than one Marker (the balloon shaped icon pointing to something) and i need each of those markers to point on a different area of the map (i.e. different coordinates), how can i do it? <script type="text/javascript"> ...

Entity framework and VARBINARY

I’m using the .NET entity framework and I’ve got one entity containing a varbinary. Is there an easy way to get the size of the varbinary in the codebehind, efter it’s been retrieved from the database? I’m thinking there might be some way to get the size directly from the entity, something like entity.Context.Size – or do one need to ha...

postback makes textbox cursor to hang

I'm trying to do a search that you type in some letters and it returns list of results and you can type more for accuracy. The next code is in modalpopupextender. <asp:UpdatePanel runat="server" ID="upnlPatientSearchModal" > <ContentTemplate> <div class="popupheader" align="left" width="300"> <asp:TextBox ID="txtFiel...

Is there any way to speed up the edit-compile-debug cycle in asp.net?

I have been programming in php for a while, and recently I started a new job ago where I am now programming in c#/asp.net. While asp has decent performance when deployed, there is one thing that has been bugging me for the past few months. After any code change it takes about 30 seconds for the page to reload for testing. I guess it i...

Is there an existing DataSource that takes its data from DataTable in ASP.NET?

I'm making an ASP.NET Web Forms application. I would like to get a DataSource which takes its data from a DataTable, and this table is persisted among requests (preferably in session, not ViewState). The idea is that there is a need for some fairly complex forms where there are several gridviews in each of them. All the gridviews have t...

.NET & ASP vs PHP

Earlier today I asked wether it would be a good idea to develop websites using C#. Most of the answers pointed towards .NET and ASP. Currently I develop with PHP. I've dabbled with Python and RoR but I always come back to PHP. This is the first time I've looked at .NET and ASP. A bucket load of Google searches later I'm not really seeing...

Why is my page not redirecting even though it does not error out?

I have this function that utilizes jQuery's post feature to send an ajax request to my logout handler, which destroys the session (set by asp.net) and redirects to the login page: <script type="text/javascript"> //<![CDATA[ function doLogout() { var conf = false; conf = confirm("Really log out?"); if (con...

Multiple Markers on a Google Map

I added a google map with two markers (i am just testing), the code is: function load() { var map = new GMap2(document.getElementById("map")); var marker = new GMarker(new GLatLng(<%=coordinates%>)); var marker2 = new GMarker(new GLatLng(31.977211,35.951729)); var html="<%=maptitle%><br/>" + "<%=text%>"; ...

asp.net, Panel Width

Hello Friends, I am using .net 2005. In that i have master page and content page, i am using panel inside content. Is any body know how to set panel width as per screen size at run time ?? Thanks ...

Is there a better and/or easier way to do a logout?

Here is the situation: User logs in via username/password stored in an MSSQL database If the user is authenticated, the system makes a session variable with username/SHA1'd password and boolean if the user is logged in or not (for subsequent pages) I need to be able to destroy the session variable. I want a confirmation box as well. ...

What is the best way to use links and anchors to toggle visibility in ASP.NET?

I have a page which is used to display numerous forms for the user to fill out and get reports generated. Each of these forms is inside it's own ASP:Panel control so that I can toggle the visibility of the form (so that only those with appropriate permissions get access to the reports they are allowed to). The client has now requested a...

Which controls have ViewState maintained?

I am trying to wrap my head around the control infrastructure to understand which ones ASP.NET maintains view state for. There are these regular HTML controls ex: <input type="radio" checked="checked"/> -> I understand these do not have viewstate Then there are HTML controls with runat="server" <input type="radio" checked="checked" run...

Should I use SubSonic or Dynamic Data for a new CRUD asp.net application?

I need to throw together a quick CRUD asp.net site, but this may become a bigger application down the road. I have some experience with SubSonic, but it has been so long since I did a project with it I have to relearn it. I am also considering using Dynamic Data. Does anyone have any experience with these tools that can tell me which way...