Click here to Skip to main content
15,915,800 members

Comments by Ganga Patangi (Top 8 by date)

Ganga Patangi 29-May-12 8:21am View    
Nope...you can use this...You wont get any errors or wrong output...
Ganga Patangi 22-May-12 5:31am View    
Hey Ashish thanks... I got solution ....
Ganga Patangi 17-May-12 4:39am View    
Thanku i got to know the exact error...
Ganga Patangi 17-May-12 2:50am View    
Thanks for ur post...

I have tried this one and its working fine in local system. but it is not working when it is deployed in server

protected void lnkView_Click(object sender, EventArgs e)
{
Session["ControlId"] = null;
Session["PatientName"] = null;
GridViewRow gvRow = (GridViewRow)(sender as Control).Parent.Parent;
Label lblId = (Label)gvRow.FindControl("lblId");
Label lblName = (Label)gvRow.FindControl("lblFirstname");
Label lblLastName = (Label)gvRow.FindControl("lblLastName");
Label facId = (Label)gvRow.FindControl("facId");
string PatientName = lblName.Text + " " + lblLastName.Text;
Session["PatientName"] = PatientName;
GetMappingpatientListByFacility(Convert.ToInt32(lblId.Text.Trim()),Convert.ToInt32(facId.Text.Trim()));
GetMappedpatientList(Convert.ToInt32(lblId.Text.Trim()));
Session["ControlId"] = lblId.Text.Trim();
Session["FacilityId"] = facId.Text.Trim();

}

ERR0R:(After deploying)

Runtime Error
Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.

Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customerrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customerrors> tag should then have its "mode" attribute set to "Off".


<!-- Web.Config Configuration File -->

<configuration>
<system.web>
<customerrors mode="Off">



Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's <customerrors> configuration tag to point to a custom error page URL.


<!-- Web.Config Configuration File -->

<configuration>
<system.web>
<customerrors mode="RemoteOnly" defaultredirect="mycustompage.htm">

Ganga Patangi 16-May-12 6:10am View    
Previously I was getting below error.

Invalid postback or callback argument. Event validation is enabled using in configuration or <%@ Page EnableEventValidation="true" %> in a page. For security purposes, this feature verifies that arguments to postback or callback events originate from the server control that originally rendered them. If the data is valid and expected, use the ClientScriptManager.RegisterForEventValidation method in order to register the postback or callback data for validation

When i set EnableEventValidation="false" nothing is happening. I mean no click event is firing...