asp.net

C# Button Not Firing?

I have an ASP Button that I am creating in the CodeBhind of a Control. Here is the code: Button SubmitButton = new Button(); protected override void CreateChildControls() { SubmitButton.Text = "Submit"; SubmitButton.Click += new EventHandler(SubmitButton_Click); } private void SubmitButton_Click(object sender, EventArgs e) { ...

Javascript Call from ASP.NET GridView - Parameter not getting passed

I use a jQuery popup window to show a new page with a parameter in the query string. <script language="javascript" type="text/javascript"> function ShowProfile(clickedItem) { $.fn.colorbox({ html: '<iframe SCROLLING="Yes" frameborder="0" src="SiteVP.aspx?siteid="' + clickedItem + ' width="999" height="550" />', wi...

In .NET web services, how can the SoapException.Message property be easily readable?

I am writing an ASP.NET web service and am throwing a SoapException with a message: throw new SoapException("BANG!", SoapException.ClientFaultCode); When I create an ASP.NET client, and request a label to display the SoapException.Message property, it displays a message similar to the following: System.Web.Services.Protocols.SoapExce...

Expire all forms authentication cookies.

I have a small website with about 10 members. 5 of those are now banned. I have ensured that they cannot login through the login page. However because the authentication cookie is persistent and is set to expire after a few months if they return to the site they will still be logged in. A simple solution is just to expire all authenti...

how do I store system.web.authorization details in an external config file?

I want to maintain different user authorization lists for different environments. I know that connectionstrings can be broken out in an external file with configSource, but how would I do this for the following? <authorization> <allow users="someuser1"/> <allow users="someuser2"/> <allow users="someuser3"/> <deny users="*"/> </...

ASP.net: How to get the content of a specific html element on server side

I get some URL from a XML feed. Now the question is how do I get a specific data from each page represented by those URLs. For example if I have a URL: www.abc.com in the feed data and on that page there is a table like this: <table> <body> <tr> <td class="snip"> <span class="summary"> abc ... abc &amp; xyz ... <br> ..........

ASP.NET site maintenance tip

I am planning to shift my site from one host to other. Any best practices to follow while moving the site? my site is always accessed using both http://mysomesite.com and http://www.mysomesite.com. I have not set redirection from http to http://www. Should I be doing it now? When the nameservers are updated, how do I inform the users...

Change to Asp.net 4.0 got "The page cannot be found"

I've just change the existing virtual dir ASP.net version from 2.0 to 4.0 and browsed previous working web page. But right now I'm getting an error saying "HTTP Error 404 - File or directory not found." Any ideas? Revert it back to ASP.net 2.0, problem went away. I've also executed "aspnet_regiis.exe -i", it didn't work. ...

ASP.NET 2.0 to 4.0

I have a site in ASP.NET 2.0. I plan to move to 4.0. Is there any thing in particular I need to take care of or I just select the 4.0 framework and recompile and VS 2010 will update the web.config to reflect the changes? ...

What is .NET architecture and what is .NET framework?

Could somebody tell me what is the architecture of the .NET, and what is .NET framework and what are the very important things that I really need to learn? On googling I am not getting any satisfactory answers and I am getting more confused also. Please also provide me the good links to learn it. ...

Confusing terms in asp.net

I am confused with the following terms. Please elaborate on what each of the following means: Run time execution time dynamically creation virtual machine ...

storing logger information asp.net

Hi Everybody, i am building site where there are three types of user. Admin,Merchant and Assitant User. Where to store information so that my application will know which user has logged on( whether it is admin or assitant user or merchant) Thank you ...

Can I call C#, or C++, from html pages for server-side scripting/programming on localhost?

I am running Aprelium Abyss Web Server from my home computer and I have a plain old normal website. You know how you can have separate PHP files, and then call the functions inside of then within the HTML page using the onclick="" of a button? Well, I have a C# and C++ program on my computer (where the server is located), and would lik...

zoom image using jquery

I am looking for a jQuery image zoom script with functonality as like in this link. Has anyone done this before? I am looking for scripts which supports with ASP.NET. ...

Open Jquery Dialog Using asp.net Gridview Template Field

Hi. How Can I Open Jquery Dialog with and image button that putted in Gridview Template Field? <asp:TemplateField HeaderText="افزودن"> <ItemTemplate> <asp:ImageButton ID="add" runat="server" CausesValidation="false" CommandName="adddetail" ...

Dynamic Text Box value comparison?

Hi all, I am generating dynamic text boxes in my application. I need to compare the values in each dynamic text boxes when I click the submit button. Can any one please help me by providing some ideas or sample codes to solve this task? The solution might either be in jQuery, Javascript or C# asp.net ...

why page redirects with an aberrant behaviour

i am facing a weird problem which for long i am unable to sort out the issue is i am having a aspx page located in ../admin/createstudentsId but when i compile (ctr+f5) it redirects me to "http://localhost:1104/PlacementManager/login.aspx" and give error message "The resource cannot be found. Description: HTTP 404. The resource you a...

Losing unicode Char when sending via query string in an AJAX call

Hello all, I'm trying to send some data in an Ajax call to update a record in the server var OrderNotes = $.ajax({ url:'AjaxActions/OrderNotesUpdate.aspx?OrderID=' + OrderID + '&Notes=' + $('#txtNotes').val(), async:false }).responseText; "Notes" are in unicode. When...

Problems POSTing data to an asp.net webpage (problem in Desktop C# end)

Hello all! Thank you so much for taking the time to read my post! I am having a problem POSTing data from a C# Desktop application to a C# asp.net web page. I believe that the problem lies in the Desktop application (or at least one of the problems does!) I will also post the asp.net code I am using. If asp.net is not your speciality, d...

Tools and technologies for a highly secure web application

We're planning to build a web application that needs to be highly secure because a lot of money and reputation is at risk. Therefore I'm looking for tools and technologies that help in that endeavor. The tools and technologies should help prevent things like SQL injection, cross-site scripting vulnerabilities, remote code execution etc. ...