asp.net

Is there a way to alter a value in Request.Params["MyCustomKey"]

Good day I need to change a value in Request.Params["MyCustomKey"] Is any way to do it? Thanks in advance ...

.browser MenuFix won't works on 2010

I used <browsers> <browser refID="Safari1Plus"> <controlAdapters> <adapter controlType="System.Web.UI.WebControls.Menu" adapterType="" /> </controlAdapters> </browser> </browsers> This menufix for my menu to make it html table in browsers like safari. But with 2010 it makes no sense and even i...

Sending Soap Header from WCF service

Hello, I do migration from ASP.NET web service to WCF. Current code is like this: Server Side public class MyType { public int x; public string s; } public class MyService : WebService { public MyType myObj; [WebMethod] [SoapHeader("myObj", Direction=SoapHeaderDirection.InOut)] public string SomeMethod() // NO P...

Problem with asp.net web site?

I have created a web site. At home page, I am saving lots of data in caching and session. It has process button on click of that it does lots of calculation on the basis of caching and session and display the result on result page. Result page has back button on click of that it goes to home page. Sometimes (not frequently) when i go to ...

Encountering Error when doing post-back using __doPostBack()

Hi, I am getting an error on javascript when doing post back. The code is as follows: <%@ Page Language="C#" AutoEventWireup="true" CodeFile="test.aspx.cs" Inherits="test" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; <html xmlns="http://www.w3.org/1999/...

Suggestion on treeview control that renders valid xhtml and works withou javascript

Hi, I'm looking for an ASP.NET control that renders a tree structure, very much like the ASP.NET TreeView control, but filling the following requirements: Dont uses tables for rendering tree structure. Markup Adhering to valid XHTML 1.0 Strict. Works with AND without javascript. Also, if the control is licensed under a MIT och GPL l...

Looking for an online code Cleaner/Helper like resharper

Is there any online tool which helps clean code or write smaller code somewhat like what resharper does? Is there any online tool which can do this on C# code snippets? ...

how do I find out which skin Telerik's RADeditor is using by default ??

In firebug under "Style" its showing the css file as follows when I hover mouse over RadEditor "http://localhost/myWeb/WebResource.axd?d=WSPnt1ffDvgb4bj2Ii5nA4MecfZdsnZ0wvgLy3HVcihYTy2nMTq7iIu8RlAb7ZMF61e07jisMUNhQZabIxK2kyuxNpeCFqhE3cgnDSm1-Pc1&amp;t=634237829795625000" In telerik:RadEditor tag ..I haven't specified any property such...

ASP.NET repeater control overlapping for some users

My whole websites makes use of the ASP.NET(2.0) repeater control and I have been getting some complains from people that they cant view my site as the controls are overlapping. This sounds like a browser issue to me as I never see it in IE8 or IE7 or Chrome or Firefox. Any idea why this is happening? What should I do to prevent this fr...

how to prevent tempering for hidden field value by malacious user.

hi all actually i am using the hidden field for storing some value <asp:HiddenField ID = "hfObjectID" runat="server" /> <asp:HiddenField ID = "hfIsBestanswer" runat="server" /> hfObjectID.value = // fetching pk_id from data base. hfIsBestanswer.value = // fetching pk_id from data base. <input type="hidden" value="100" id="ctl00_Conte...

Property 'CommandArgument' is WriteOnly

I have the following line in my code, inside the click event handler of an ImageButton: Protected Sub FinaliseBtn_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles FinaliseBtn.Click, SubmitPaymentViaChequeBtn.Click Dim str as String = sender.commandargument.ToString.ToLower End Sub Both Controls are ImageButton's. ...

How to display Model internal validation messages in asp.net mvc 2?

Hi, I have developed the application in asp.net mvc 2 with c# language. I have deployed it successfully on IIS 5.1 , working perfect. but one of form only displaying the red shade box after execution. It seems like this : May be this is issue of date format but tough I give it as dd/MM/yyyy it shows same. Also While I have debug the ...

If I have a button click event and an ObjectDataSource selecting event, which fires first and why?

Title explains it all really, which event fires first in the page life cycle and why? ...

.Net Security Exception when trying to render a reCaptcha control

I've downloaded the recaptcha.dll in both 1.0.1.0 and 1.0.4.0. When trying to render the control, I get the following exception: Security Exception Description: The application attempted to perform an operation not allowed by the security policy. To grant this application the required permission please contact your system administ...

Howto: convert WSDL to XSD?

I'm using an ASP.NET web service with some large and complex structures. I can examine the WSDL and use it to generate code for my (Delphi) application. And it all works just fine. I also have a (homemade) message viewer which captures the SOAP messages and will display it's content. I use it to capture the data sent to and from the serv...

what is the purpose of command name and command argument for a control example button?

what is the purpose of command name and command argument for a control example button? when should we go for this? ...

How to hide the "Missing parameter" message

Hi, In an asp.net web service (asmx), how do I hide the error messages that are sent to the client when it doesn't send the proper parameter: "Missing parameter: parameterName."? In the web.config I have a custom error page setup that works in actual errors, but this doesn't appear to effect the web service parameter validation. Thanks...

ASP .NET 2.0 integration with ASP .NET MVC 2.0 ...

Is there any reason why this configuration should not work?: parent application (A) is a closed (uneditable) ASP .NET 2.0 application in IIS 6.0 an ASP .NET MVC 2.0 (B) application installed in a subfolder of A; however the MVC application CANNOT be set as an application in IIS as A will then not pass security information through I h...

Partial ASP.NET MVC View submit

Hello, I'm new in ASP.NET MVC so the question could appear 'stupid', sorry. I have a Partial View inside my Home view. The Partial View submit a form calling an Action Method inside the HomeController. It works fine with server validation, the problem is that after the post only the Partial View is rendered. How can I render the enti...

ViewState value retain for checkbox,radiobutton when i disabled the viewstate.

Hi , The above question is my problem,Can any one expalin what is viewsate and from your point with a nice and simple example. thanks ...