Click here to Skip to main content
15,905,420 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,


I have used query string in my application. i used following code in RowDeleting event

VB
Dim argInt As Integer
Dim VistorID, AppID, Status As String
argInt = Convert.ToInt32(e.RowIndex)
VistorID = CType(Grid_trans.Rows(argInt).Cells(2).FindControl("Label1"), Label).Text
AppID = CType(Grid_trans.Rows(argInt).Cells(1).FindControl("Label4"), Label).Text
Status = CType(Grid_trans.Rows(argInt).Cells(0).FindControl("Label5"), Label).Text
Dim url As String = "Approved.aspx?VisitorID=" & VistorID & "&Status=" & Status & "&AppID=" & AppID & ""
Response.Redirect(url, False)




i can get only AppID values in Approved.aspx. other VistorID, Status is in null.

i got this exception RowDeleting event
VB
"There is no source code available for the current location"


How to resolve this?

Thanks in advance...
Posted
Updated 5-Feb-12 20:53pm
v2

1 solution

Is aprroved.aspx in the same directory as the calling code?
Does the query string have any data in it after being executed?

I would start with a breakpoint on

VB
Dim url As String = "Approved.aspx?VisitorID=" & VistorID & "&Status=" & Status & "&AppID=" & AppID & ""


and step through it and see what the values are
 
Share this answer
 
Comments
palraj001 6-Feb-12 4:30am    
Approved.aspx?VisitorID=093&Status=P &AppID=73
palraj001 6-Feb-12 4:31am    
yes . it is in same directory.. thanks for replying
Simon_Whale 6-Feb-12 4:33am    
I would then put a break point in the first line of the onload or new in the approved.aspx page and try stepping through the code again

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900