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

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

Posting using Server Side and not Client side form?

Posted By:      Posted Date: September 08, 2010    Points: 0   Category :ASP.Net
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.

View Complete Post

More Related Resource Links

Populate Treeview upon entered criteria and page action without complete page posting on client side


1. I have a treeview on left side in a panel in my aspx page and I have a Text box and a Search button on the right panel. On entering a search criteria and clicking the Search button, I want to get the data needed for the treeview (FYI - I have a webservice call for that) and then populate the treeview completely but keep it collapsed to the root node.

  Each time I enter the search criteria and click the Search button, I don't want to post the entire page (and also don't like the page flicker), how can I achieve this? I know that in order to avoid complete postback upon Search button click, I can do so by client callback and get the data needed for the treeview, but in this case, I have to build the treeview nodes as table - row/cells and handle all the events and handlers myself, which I want to avoid (also means that I won't be able to take advantage of the inherent expand and collapse capabilities of the Treeview). On the other hand, if I use the OnTreeNodePopulate event handling of the Treeview control, using the C# script code on the aspx markup, it doesn't recognize the entered criteria in the Text box. So either way,

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 !

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 

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

Restoring Databases form SQL Server 2000 and SQL Server 2005 to SQL Server 2008 -Side by Side --he

Hi all I Installed SQL Server 2008 R2 in Server and I took backup of all the User databases backup from 2000 and 2005(two instance are running) Now I am doing restore the Databases,while I am restoring I am information icon in bottom of the restore window that is "The Full-Text Upgrade Option server property controls whether full-text indexes are improved,rebuild or reset" that means I have to upgrade full-text indexes or this just inforamtion.If I want find out whither Database using full-text how to check ? once I done this I have to move the users as well.Please dome body share the script you have.   Thanks in AdvanceSNIVAS

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.

Server Side Validation for SharePoint 2007 Form Fields


Hi Guys,

Need to validate NewForm.aspx and EditForm.aspx of SharePoint custom list. My current implementation is by using JavaScript. It's working fine.

Someone suggested JavaScript is not a good approach.I am unable to fetch ids dynamically by JavaScript only for few fields (people picker, calendar control) and in that case i have hard coded the ids. hardcoding is always a bad approache.

Is there any way to validate those mentioned form at server side? Is it really good way to think that my validation can put inside Event Handler?

thanksArup MCTS - SharePoint

Play Sudoku

WCF session client service reference "State" is not updated when the server side has closed


I am using vb.net (Visual Studio 2008 with framework 3.5). I have a server that exposes several services requiring sessions. I am using wsHttpBinding for all. One of my requirements is to allow non-dot net third parties to access these services. When a client connects to a service and then some time later the server goes away, the state of the connection is still reporting "open".

Currently I have implemented a "ping" function on the server. My client calls this function every 5 to 10 seconds and if the server does shutdown, I get alerted with an exception error. This works, but I was wondering if there is a way where I don't have to call my ping function?

I don't want to use a dual connection binding and I was hoping to use the connection state variable? But, I don't know how to get it to update by itself. The client user application could just wait until it goes to invoke a service method, but I was wondering if there was another way.

Thanks in advance!!


Can't Submit Form Unless Remove ASP .NET Server-Side Form


Something has been driving me nuts about a project  I'm working on.  Long story short: I have a small form that submits a user's name, email address, and a few hidden fields to an external vendor's website.  It works-but ONLY if I remove the "outer" ASP .NET server-side form!  If I don't do that, the page from which I'm submitting the form simply refreshes itself, and the form never gets submitted.


Should I go Client Side or Server Side?


Hi Everyone,


I am currently working on a site where I expect most of the visitors to be returning visitors.  Their main use for this site will be to check a vast amount of data which should only occur some minor changes about once a day.  I will expect quite a lot of users and I would like my website to operate as efficiently as possible. 


To make the site as efficient as possible I am thinking of building my website in a way that does not seem to be the way most web developers go about building their site I and would like to know what some of you think about my approach.  I decided to make all my pages in HTML, CSS and Javascript and therefore no .aspx pages.  All data relative to the user will be stored in cookies and I will have an AJAX script that will poll the server to check only for changes in the data since the last time a query to the data was made meaning that the user will not have to download all the data every time the user visits the site but only the small changes.  The login part of the web site will also be javascript based.  Inside a cookie a session id will be stored and every query to the web server will require that session id to be sent to validate if the user is allowed to access tha

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.

Client side script for server side controls


I have a whole table full of checkboxes each of which is associated with a label.  Both checkboxes and labels have runat="server".  What I'd like to do is to write a small script that will make visible or hide the label depending on the check state of the checkbox.

function ShowHideLabel(cbControl, lControl)
    lControl.Visible = cbControl.Checked;


<asp:checkbox id="cb1" runat="server" text="CheckBox 1" OnClick="?" />
<asp:label id="l1" runat="server" text="I am visible" />

What do I need to put in OnClick for this to work?



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.


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