asp.net

Value cannot be null. Parameter name URL on ASP.net form submit

Hello, I have a ASP.net webform with few controls and when I hit the submit button I am getting the following error sys.webforms.pagerequestmanagerservererrorexception: Value cannot be null. Parameter name:url On submit of the button I am just inserting values into the database. How do I fix this issue? When I try to put a breakpoin...

asp.net webforms: using pagemethod in combination with jquery for login form

Hi all, I want to change my login page from using an updatepanel to a pagemethod which will be called using jquery. Now I'm wondering if this is a safe approach? The username and password will be send to the pagemethod and from there it will be validated, hashed and checked against the database. Client side validation will be done using...

Creating an online visual designer using silverlight

Hello I'm trying to create an visual designer like Visual Studio, Expression Blend, Dreamweaver etc as an ONLINE APPLICATION (ASP.NET). Can Silverlight be helpful with this? What are the things i need to be aware of before starting developing this online app? How good is it dragging, dropping & moving controls around with Silverlight...

Access to hyperlink in listview in Itemtemplate

I'm trying to access a hyperlink on my listview. When the user logs in, the hyperlink will show on my homepage. It doesn't show. protected void lvtop6_ItemCommand(object sender, ListViewCommandEventArgs e) { ListView hlBuy = (ListView)lvtop6.FindControl("hlBuy"); if (User.Identity.IsAuthenticated==true) { hlBuy.Vis...

ASP.NET Session Performance

I'm experiencing performance issues on my asp.net application. Sometimes it would take the client 30-40 seconds to execute a command, where as in sometimes it would take 3-4 seconds. I tried SQL Profiler and I don't see any problems. I was not able to replicate the issue on my side, under the same scenario when the client was trying. I...

Cannot open database "gainpeace" requested by the login. The login failed. Login failed for user 'MALIK\ASPNET'.

I'm using this for connection to SQL Server 2005 [Windows authentication] <add key="ConnectionString" value="Data Source=MALIK\sqlexpress;Initial Catalog=gainpeace;Integrated Security=SSPI"></add> but it generates an error Cannot open database "gainpeace" requested by the login. The login failed. Login failed for user 'MALIK...

How do i log off the user from the initial location when he logs in from a different location?(asp.net web site)

I am creating a web site in visual studio 2008. I want to allow the current user to log in but log off any other person logged in under the same username as the current user. (just like like Y!M does when you log in from a different location: It signs you out from the initial location) For managing log in and sign up i am using visual ...

ASP .NET or MVC3

Possible Duplicate: Biggest advantage to using ASP.Net MVC vs web forms Which would you pick if developing a new application? ...

Can I change the language of ASP.NET Configuration Tool ?

My Visual Studio is in english but ASP.NET Configuration Tool runs in the os language because I don't work in an english country. How to configure it into english language if possible ? ...

Custom Membership Provider not listed in asp.net configuration tool

I have followed the tut here: http://blog.krisvandermast.com/UsingAccessInsteadOfSQLServerForYourASPNETApplicationServices.aspx I added the dll and the aspnet.mdb files as explained above, my website compiles without error with this web.config <?xml version="1.0"?> <!-- Note: As an alternative to hand editing this file you can use...

Nested control's events not firing in UserControl

Hello I have a weird issue. I have a user control which I load dinamycally using LoadControl. In this UserControl I have a button whith assigned OnClick event, but when I click that button, the event is not fired. <%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ServiceInput.ascx.cs" Inherits="uPay.UserControls.ServiceInputs...

Random Questions using DetailsView (Help)

Greetings everyone, i would just like to ask how do i retrieve data rows in my table in my database randomly... i was able to create an online quiz wherein it displays the question,choices in consecutive order but what i want is, every time when user will start a quiz it will show questions in random order. I am using mssql 2005 as my d...

Cancel all events from Page_Load

EDIT: for those who come here with a similar problem, now i know this was a BAD IDEA. hi, I have something like this: bool preventEvents; protected void Page_Load(object sender, eventargs e) { preventEvents = doSomeValidation(); } protected void Button1_Click(object sender, EventArgs e) { if (preventEvents) return; // .....

Screen Scrapping - Read Captcha

Hi, I am working on Screen Scrapping, I was able to do, but some of the website have captcha and need to enter captcha information to proceed further Is there anyway to read captcha information and submit those values that are in captcha or how can we handle this scenario ? Thanks ...

Failed to Create AppDomain

What is this Error For? I repaired my Vs but this did not solve it. My OS : Windows 7 64 bit home edition. Visual studio 2010 Ultimate. Does My question need more information? ...

Need debugging hints: Visibility change on Postback works on one page but not another

I have a webform containing a user control. On that user control is a set of radio buttons. When the radio button is changed, a panel and a text box is shown or hidden depending on which radio button was selected. I can give you an example that works correctly: testcontrol.aspx: <asp:RadioButtonList ID="ChoicesRadioButtonList" AutoPos...

Thread.Sleep in aspx error page. Why?

In this advisory concerning the oracle padding exploit, Microsoft posted the following recommended error page: <%@ Page Language="C#" AutoEventWireup="true" %> <%@ Import Namespace="System.Security.Cryptography" %> <%@ Import Namespace="System.Threading" %> <script runat="server"> void Page_Load() { byte[] delay = new b...

How to handle application shutdown in Quartz.Net

I have used Quartz.Net for queuing and sending emails from my application. I don't know how each scheduled job responds to application instance stopping, pausing or shutting down. The IJob interface has no method that can notify a running job about these events. My question is how can I handle these cases when they occur so that the job...

HttpStatusCodeResult in ASP.NET MVC 2

I have noticed that ASP.NET MVC 3 introduces a HttpStatusCodeResult action result. How do we do the equivalent in ASP.NET MVC 2? I want to return a 410 code. ...

ASP.Net/web.config - "The entry 'x' has already been entered" ?

In ASP.Net when I see the error message "The entry 'x' has already been entered" I think that means a name (in this case 'x') is defined twice in Web.Config. Is that a reasonable summary of what causes that error or are there other ways it could be generated ? The 'x' in question doesn't appear twice in the web.config - any ideas of w...