Click here to Skip to main content
15,896,453 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Return List from user control & bind to parent page grid. Pin
Peace ON28-May-10 1:22
Peace ON28-May-10 1:22 
GeneralRe: Return List from user control & bind to parent page grid. [modified] Pin
zeego28-May-10 1:31
zeego28-May-10 1:31 
Questionmake website url like www.websitename.com/username Pin
sumit703428-May-10 0:54
sumit703428-May-10 0:54 
AnswerRe: make website url like www.websitename.com/username Pin
Peace ON28-May-10 1:24
Peace ON28-May-10 1:24 
Questionwhy it gives an error in crystal report? Pin
hi_everybody28-May-10 0:34
hi_everybody28-May-10 0:34 
Questionhow can i send parameters by post method in asp.net? Pin
buffering8327-May-10 20:51
buffering8327-May-10 20:51 
AnswerRe: how can i send parameters by post method in asp.net? Pin
Sandeep Mewara27-May-10 21:33
mveSandeep Mewara27-May-10 21:33 
AnswerRe: how can i send parameters by post method in asp.net? Pin
Peace ON27-May-10 21:37
Peace ON27-May-10 21:37 
hi,

When the source page uses the HTTP POST action to navigate to the target page, you can retrieve posted values from the Form collection in the target page. Note that you can get only the post values; you cannot read the values of arbitrary controls on the page.

To get the values of controls from the source page in another application

1. In the source page, include a form element that contains HTML elements (such as input or textarea) or ASP.NET server controls (such as TextBox or DropDownList controls) that post values when the form is submitted.

2. In the target page, read the Form collection, which returns a dictionary of name/value pairs, one pair for each posted value.

The following code example displays the ID and value of every posted control in the source page and displays the posted values in a label named Label1.

VB
Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) _
        Handles Me.Load
    Dim displayValues As New StringBuilder()
    Dim postedValues As NameValueCollection = Request.Form
    Dim nextKey As String
    For i As Integer = 0 To postedValues.AllKeys.Length - 1
        nextKey = postedValues.AllKeys(i)
        If nextKey.Substring(0, 2) <> "__" Then
            displayValues.Append("<br>")
            displayValues.Append(nextKey)
            displayValues.Append(" = ")
            displayValues.Append(postedValues(i))
        End If
    Next
    Label1.Text = displayValues.ToString()
End Sub


For more help refer following link...
http://msdn.microsoft.com/en-us/library/6c3yckfw.aspx[^]


HTH
Jinal Desai - LIVE
Experience is mother of sage....

QuestionWeb applications impacted due to upgradation of IE 6 to IE 8 Pin
Rajiya27-May-10 18:40
Rajiya27-May-10 18:40 
AnswerRe: Web applications impacted due to upgradation of IE 6 to IE 8 Pin
Anurag Gandhi27-May-10 20:26
professionalAnurag Gandhi27-May-10 20:26 
AnswerRe: Web applications impacted due to upgradation of IE 6 to IE 8 Pin
Peace ON28-May-10 0:42
Peace ON28-May-10 0:42 
Questiontransfer datas from a table into an Object [modified] Pin
nstk27-May-10 10:56
nstk27-May-10 10:56 
AnswerRe: transfer datas from a table into an Onject Pin
Not Active27-May-10 14:38
mentorNot Active27-May-10 14:38 
QuestionJavascript calendar control for first time not openning in Mozilla Pin
attalurisubbu27-May-10 5:09
attalurisubbu27-May-10 5:09 
QuestionHow to get configuration file's path Pin
Eric Vonjacson27-May-10 2:07
Eric Vonjacson27-May-10 2:07 
AnswerRe: How to get configuration file's path Pin
Andreas X27-May-10 2:16
professionalAndreas X27-May-10 2:16 
QuestionWhere is the appropriate lifecycle step we can introduce JavaScript execution in the page Pin
yadlaprasad27-May-10 1:57
yadlaprasad27-May-10 1:57 
QuestionGridView Edit Pin
Member 322226427-May-10 1:08
Member 322226427-May-10 1:08 
AnswerRe: GridView Edit Pin
Sandeep Mewara27-May-10 1:35
mveSandeep Mewara27-May-10 1:35 
AnswerRe: GridView Edit Pin
Andreas X27-May-10 2:06
professionalAndreas X27-May-10 2:06 
QuestionSimple DropdownList with javascript Ajax Pin
garfield18526-May-10 22:06
garfield18526-May-10 22:06 
Questionhow to remove browse text and decrease the size browse button of fileupload control in asp.net Pin
developerit26-May-10 22:02
developerit26-May-10 22:02 
AnswerRe: how to remove browse text and decrease the size browse button of fileupload control in asp.net Pin
Sandeep Mewara26-May-10 23:26
mveSandeep Mewara26-May-10 23:26 
QuestionOpen Save as dialog in ultrawebgrid hyperlink cell onclick Pin
priyagee26-May-10 21:41
priyagee26-May-10 21:41 
QuestionVS 2005 takes much time to load Pin
reogeo200826-May-10 20:17
reogeo200826-May-10 20:17 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.