Hello to All
Please let me know that Post back function can be used in ASP page if it can be used please give me the sample code. at earliest.

Naveed

Not in classic asp, however in asp.net yes.

Otherwise you redirect to yourself:

Dim strURL
strURL = Request.ServerVariables("SCRIPT_NAME")

If Len(Request.ServerVariables("QUERY_STRING")) > 1 Then strURL = strURL & "?" & Request.ServerVariables("QUERY_STRING")

Response.Redirect(strURL)

or you can do it in one code block:

If Len(Request.ServerVariables("QUERY_STRING")) > 1 Then
    Response.Redirect( Request.ServerVariables("SCRIPT_NAME") & "?" & Request.ServerVariables("QUERY_STRING") )
Else
    Response.Redirect( Request.ServerVariables("SCRIPT_NAME") )
End If
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.