.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
david stephan
Gaurav Pal
Post New Web Links

design strategy to overcome a server side control that can be manipulated by the client - (Security

Posted By:      Posted Date: May 22, 2011    Points: 0   Category :.NET Framework

Ok so we have a dot net aspx app whereby we have some server side button controls which in some states may be disabled

However per Internet Explorer a user could  go to the developer tools and change / delete the disabled property of the button and then click the button to fire the action event.

What would be the best recommended strategy to prevent this.

many thanks

View Complete Post

More Related Resource Links

Treeview web server control client side evnts

HiI'm using Treeview control with asp.net 2.0. I would like to know how to get the client side events working. I don't want a post back for every little thing i do with the Treeview. Particularly i want to catch the node click event on the client side using java script, i want to enable/disable buttons based on the selected node. Is this possible? i tried some examples available on net but doesn't seem to be working. Please help me.. can someody give a working example....John 

client side functionality in a custom server control using vb?



is it posible to add client side functionality to a custom server control in vb.net?

i am looking at msdn library and there is no code for vb :/ http://msdn.microsoft.com/en-us/library/aa719700%28v=VS.71%29.aspx

I fount this on MSDN Library Adding Client Capabilities to a Web Server Control

What i'm trying to do is to add some client functionality to my control, so that you can get or set some properties/values on client side. From the above link i see  that this is doable with Ajax Server Control, but i don't have it, i have Custom Server Control. Can i do this with Custom Server Control and how?

Thank you.

How can I retrieve the value if a server side control value whose value is updated on client side on


I have a hidden variable and its value is being updated using javascript(client side) which I make a call from server side code. 

After making the call I am not able to retrieve the updated value from Server side variable.

I went through this forum http://forums.asp.net/p/1289684/3668484.aspx but not able find a way how to implement functionality with IFRAME.

Please provide me some sample code. I am trying to call the client side code and retrieve the updated value from server side in page_load event.


Server side validation of Fileupload control not working



I've tried this method in my code behind to try and validate that the Fileupload control has a file or not. I get the error message the the event "Server Validate" cannot be found. Can anyone tell why? Thanks.

Public Sub CustomValidator1_ServerValidate(ByVal source As Object, ByVal args As System.Web.UI.WebControls.ServerValidateEventArgs) Handles CustomValidator1.ServerValidate

' Get file name

        Dim uploadAvatar As FileUpload = DirectCast(AdvertisementForm.FindControl("uploadAvatar"), FileUpload)

        Dim UploadFileName As String = uploadAvatar.PostedFile.FileName

        If UploadFileName = "" Then
            ' There is no file selected
            args.IsValid = False
            Dim Extension As String = UploadFileName.Substring(UploadFileName.L

onclick() between client side and server side

Hello, I want to enhance a composite control's client side, my approach is to recreate all method on JavaScript, so here I have some troubles : 1) Can I call onclick event on client side otherwise on server side ? 2)  the statement table.onclick=SelectRow(event) fires a bug ! Hello,I want to enhance a composite control's client side, my approach is to recreate all method on JavaScript, so here I have some troubles :1) Can I call onclick event on client side otherwise on server side ?2)  the statement table.onclick=SelectRow(event) fires a bug !

How to read and save client side textarea control value ?

Hi. I am now trying to solve some problem. I want to read textarea value in client side behind code. I know if I use runat property, it will be solved easily. But is there any way to read client textarea value without using runat property ? I need to read textarea value and save them to my database. If there is someone who has experience in this case, please help me. thanks  

Dynamically (on client side) populating data control (repeater) when dropdown item is selected

Hello!I'm currently working on a project and I want to make as much things as possible performing on client side - with as little loading as possible.The project consist of three "main" pages. On one page I use jQuery DataTable plugin which is working great. One page has tabs (using jQuery). I want to put datacontrol (repeater) on this site and when  user selects one item in dropdown, data in repeater loads on client side, without performing the action on server.I wonder if this is possible and if somebody can give me some case to help with?Thanks!I hope I was clear enough. all the best

Can I invoke a client side script from server side code

Hi is it possible to involk a client side script from the server side code without any interaction from the client side?Such as a popup or alert box?I know I can code this with the page load or the click event, I would like to call the alert from within my serverside code and trigger the action from there.Thanks

stop execution of client-side from server-side.

I have a textbox inside a composite control. I have exposed the textchange event to the page. In the server-side text change event, i need to show an alert box. So i m using ScriptManager.RegisterStartUpScript to raise the alertbox. My problem is the event is fired when any button in the page is clicked and they may execute some client-side script. I need to stop their execution. Anybody knows how to do this? Please help.

convert client vbscript code to server side

Hi There, we have some .htm pages with client side vbscript,the code is pasted below, we want to get this page run on the server side so that we can access this from a URL, can you please advice how convert this code to be able to run on the server side. Client side code: <HTML><HEAD><TITLE>Select Module</TITLE> <SCRIPT LANGUAGE="VBScript" ><!--     Option Explicit        Dim College    Dim Modules    Dim ModulesArr    Dim counter    Dim MyModules         Set College = Top.App.ActiveCollege    Set Modules = College.Modules     'Sorts the ModulesArr Array by module name.    Sub SortModules(StartPosition, EndPosition)        Dim I, J        Dim CurrName, CurrIndex        For I = StartPosition to EndPosition            J = I            CurrIndex = ModulesArr(J, 0)            CurrName = ModulesArr(J, 1)             'while Mod

How to control no: of copies printed from a pdf in client side

 Hi Team I have a requirement to print a page based on the number of copies mentioned on a web page. Print button in my web application is creating a PDF on -the- fly and is opened in the client side for printing. How can I restrict the No of copies being printed for the PDF generated in the client side based on a predefined value ? Please help me to proceed Malini

Posting using Server Side and not Client side form?

Hey, i want to post to a page by using server side and not client side form and submit button.Now im using this code:Response.Redirect(Request.Url + "&t="+Title+"&d="+Description+"&a="+Author+"&p="+Published+"&i="+Thumbnail);so it redirecting to the same URL with parameters.. (it works)But it makes alot of bugs and the address bar is long as hell..How can i post to the same page using Server side code (C#) and send the same parameters?Thanks.

Urgent!!!!!!!-- xecuting Server Side .exe File From Client Side

helllocan any 1 plz teel me . How To run exe on client machine which(exe) store in Server side.I dont want user need to downoad My .exe file and then Install on his machine. I want user just click on Register linkbutton and directly Start Executable Installation process. PLZ HELP MEAMIT:)

How to connect to MOSS server using visual studio from client side

Dear All We are having one moss development environment and we are having many developers working on it.Since all the developers cannot work at a time,we are facing difficulties while developing sharepoint components. Is there any way to connect to sharepoint server from visual studio(from client side) so that we can compile our sharepoint components from client side and deploy later to the server? Any help on this would be much appreciated? Thanks Karthik S

Client Side vs. Server Side, which is better to do?


This is a two fold question. The first is which should I user over the other Client Side rendering or Server Side rendering? I know it depends on the situation like if I needed to build a drop down list populated from a SQL DB then server side but what about normal static things like links and this leads into my second question. I want to make button that reloads the page current page from scratch. Should I make an ASP:Button and have C# backend code that redirects to the URL or should I use a normal HTML button that has JScript to do the redirect? And if it makes a difference the dedicated server I run on has an Intel Xeon X345 @ 2.7GHz with 4 GB ram running 2008 R2 Web, IIS 7.5, and SQL 2008 web on it so resorces are limited.

ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend