EDN Admin
Well-known member
<p style="margin:0in 0in 0pt <a rel="nofollow <span style="font-size:small <span style="font-family:Calibri Hey guys,
<p style="margin:0in 0in 0pt <span style=" <span style="font-size:small; font-family:Calibri
<p style="margin:0in 0in 0pt <span style=" <span style="font-size:small <span style="font-family:Calibri I really need some expert help on the following:
<p style="margin:0in 0in 0pt <span style=" <span style="font-size:small; font-family:Calibri
<p style="margin:0in 0in 0pt <span style=" <span style="font-size:small <span style="font-family:Calibri Currently I have an .ASPX page that contains Start/End date fields and a search button.
<p style="margin:0in 0in 0pt <span style=" <span style="font-size:small <span style="font-family:Calibri After the user selects start/end date and presses search button, GridView is filled with data pulled from SQL.
<p style="margin:0in 0in 0pt <span style=" <span style="font-size:small <span style="font-family:Calibri At this point I will select one of the returned fields and go to server side code below:
<p style="margin:0in 0in 0pt <span style=" <span style="font-size:small; font-family:Calibri
<p style="margin:0in 0in 0pt <span style=" <span style="font-size:9.5pt; color:blue; font-family:Consolas protected<span style=" <span style="font-size:9.5pt; font-family:Consolas
<span style="color:blue void GridView1_SelectedIndexChanged(<span style="color:blue object sender,
<span style="color:#2b91af EventArgs e)
<p style="margin:0in 0in 0pt <span style=" <span style="font-size:9.5pt; font-family:Consolas {
<p style="margin:0in 0in 0pt <span style=" <span style="font-size:9.5pt; font-family:Consolas <span style="
<span style="color:green //Get selected row
<p style="margin:0in 0in 0pt <span style=" <span style="font-size:9.5pt; font-family:Consolas <span style="
<span style="color:#2b91af GridViewRow row = GridView1.SelectedRow;
<p style="margin:0in 0in 0pt <span style=" <span style="font-size:9.5pt; font-family:Consolas
<p style="margin:0in 0in 0pt <span style=" <span style="font-size:9.5pt; font-family:Consolas <span style="
<span style="color:green //Get Status value for row selected
<p style="margin:0in 0in 0pt <span style=" <span style="font-size:9.5pt; font-family:Consolas <span style="
<span style="color:blue string statusValue = row.Cells[4].Text;
<p style="margin:0in 0in 0pt <span style=" <span style="font-size:9.5pt; font-family:Consolas <span style="
<span style="color:blue string nameValue = row.Cells[1].Text;
<p style="margin:0in 0in 0pt <span style=" <span style="font-size:9.5pt; font-family:Consolas
<p style="margin:0in 0in 0pt <span style=" <span style="font-size:9.5pt; font-family:Consolas <span style="
<span style="color:green //Get GUID - Must use DataKeys since link is set to not visible in GridView
<p style="margin:0in 0in 0pt <span style=" <span style="font-size:9.5pt; font-family:Consolas <span style="
<span style=" <span style="color:blue int index = GridView1.SelectedIndex;
<p style="margin:0in 0in 0pt <span style=" <span style="font-size:9.5pt; font-family:Consolas <span style="
<span style="color:blue string guidValue = GridView1.DataKeys[index].Value.ToString();
<p style="margin:0in 0in 0pt <span style=" <span style="font-size:9.5pt; font-family:Consolas
<p style="margin:0in 0in 0pt <span style=" <span style="font-size:9.5pt; font-family:Consolas <span style="
<span style=" ...
<p style="margin:0in 0in 0pt <span style=" <span style="font-size:9.5pt; font-family:Consolas <span style=" <span style="
<span style=" <span style="color:green //window.open("FileStatusErrors.aspx", "File Status Details", "menubar=no,width=430,height=360,toolbar=no,resizable=yes");
<p style="margin:0in 0in 0pt <span style=" <span style="font-size:9.5pt; font-family:Consolas
<p style="margin:0in 0in 0pt <span style=" <span style="font-size:9.5pt; font-family:Consolas }
<p style="margin:0in 0in 0pt <span style="font-size:small <span style="font-family:Calibri <span style=" <span style=" <span style=" <span style=" <span style="
<span style="
<p style="margin:0in 0in 0pt <span style="font-size:small <span style="font-family:Calibri What I would like to do Is open a new ASPX page and pass it guidValue from the server side code after I get that data.
<p style="margin:0in 0in 0pt <span style="font-size:small <span style="font-family:Calibri Please if anyone has any ideas on how I would do this I would really appreciate it!
<p style="margin:0in 0in 0pt <span style="font-size:small <span style="font-family:Calibri - If it is possible to do this through javascript, please let me know how I would pull values from the GridView using javascript (including a hidden valule).
<p style="margin:0in 0in 0pt <span style="font-size:small; font-family:Calibri
<p style="margin:0in 0in 0pt <span style="font-size:small <span style="font-family:Calibri Thnx a lot!
<p style="margin:0in 0in 0pt <span style="font-size:small <span style="font-family:Calibri Neno
View the full article
<p style="margin:0in 0in 0pt <span style=" <span style="font-size:small; font-family:Calibri
<p style="margin:0in 0in 0pt <span style=" <span style="font-size:small <span style="font-family:Calibri I really need some expert help on the following:
<p style="margin:0in 0in 0pt <span style=" <span style="font-size:small; font-family:Calibri
<p style="margin:0in 0in 0pt <span style=" <span style="font-size:small <span style="font-family:Calibri Currently I have an .ASPX page that contains Start/End date fields and a search button.
<p style="margin:0in 0in 0pt <span style=" <span style="font-size:small <span style="font-family:Calibri After the user selects start/end date and presses search button, GridView is filled with data pulled from SQL.
<p style="margin:0in 0in 0pt <span style=" <span style="font-size:small <span style="font-family:Calibri At this point I will select one of the returned fields and go to server side code below:
<p style="margin:0in 0in 0pt <span style=" <span style="font-size:small; font-family:Calibri
<p style="margin:0in 0in 0pt <span style=" <span style="font-size:9.5pt; color:blue; font-family:Consolas protected<span style=" <span style="font-size:9.5pt; font-family:Consolas
<span style="color:blue void GridView1_SelectedIndexChanged(<span style="color:blue object sender,
<span style="color:#2b91af EventArgs e)
<p style="margin:0in 0in 0pt <span style=" <span style="font-size:9.5pt; font-family:Consolas {
<p style="margin:0in 0in 0pt <span style=" <span style="font-size:9.5pt; font-family:Consolas <span style="
<span style="color:green //Get selected row
<p style="margin:0in 0in 0pt <span style=" <span style="font-size:9.5pt; font-family:Consolas <span style="
<span style="color:#2b91af GridViewRow row = GridView1.SelectedRow;
<p style="margin:0in 0in 0pt <span style=" <span style="font-size:9.5pt; font-family:Consolas
<p style="margin:0in 0in 0pt <span style=" <span style="font-size:9.5pt; font-family:Consolas <span style="
<span style="color:green //Get Status value for row selected
<p style="margin:0in 0in 0pt <span style=" <span style="font-size:9.5pt; font-family:Consolas <span style="
<span style="color:blue string statusValue = row.Cells[4].Text;
<p style="margin:0in 0in 0pt <span style=" <span style="font-size:9.5pt; font-family:Consolas <span style="
<span style="color:blue string nameValue = row.Cells[1].Text;
<p style="margin:0in 0in 0pt <span style=" <span style="font-size:9.5pt; font-family:Consolas
<p style="margin:0in 0in 0pt <span style=" <span style="font-size:9.5pt; font-family:Consolas <span style="
<span style="color:green //Get GUID - Must use DataKeys since link is set to not visible in GridView
<p style="margin:0in 0in 0pt <span style=" <span style="font-size:9.5pt; font-family:Consolas <span style="
<span style=" <span style="color:blue int index = GridView1.SelectedIndex;
<p style="margin:0in 0in 0pt <span style=" <span style="font-size:9.5pt; font-family:Consolas <span style="
<span style="color:blue string guidValue = GridView1.DataKeys[index].Value.ToString();
<p style="margin:0in 0in 0pt <span style=" <span style="font-size:9.5pt; font-family:Consolas
<p style="margin:0in 0in 0pt <span style=" <span style="font-size:9.5pt; font-family:Consolas <span style="
<span style=" ...
<p style="margin:0in 0in 0pt <span style=" <span style="font-size:9.5pt; font-family:Consolas <span style=" <span style="
<span style=" <span style="color:green //window.open("FileStatusErrors.aspx", "File Status Details", "menubar=no,width=430,height=360,toolbar=no,resizable=yes");
<p style="margin:0in 0in 0pt <span style=" <span style="font-size:9.5pt; font-family:Consolas
<p style="margin:0in 0in 0pt <span style=" <span style="font-size:9.5pt; font-family:Consolas }
<p style="margin:0in 0in 0pt <span style="font-size:small <span style="font-family:Calibri <span style=" <span style=" <span style=" <span style=" <span style="
<span style="
<p style="margin:0in 0in 0pt <span style="font-size:small <span style="font-family:Calibri What I would like to do Is open a new ASPX page and pass it guidValue from the server side code after I get that data.
<p style="margin:0in 0in 0pt <span style="font-size:small <span style="font-family:Calibri Please if anyone has any ideas on how I would do this I would really appreciate it!
<p style="margin:0in 0in 0pt <span style="font-size:small <span style="font-family:Calibri - If it is possible to do this through javascript, please let me know how I would pull values from the GridView using javascript (including a hidden valule).
<p style="margin:0in 0in 0pt <span style="font-size:small; font-family:Calibri
<p style="margin:0in 0in 0pt <span style="font-size:small <span style="font-family:Calibri Thnx a lot!
<p style="margin:0in 0in 0pt <span style="font-size:small <span style="font-family:Calibri Neno
View the full article