Click here to Skip to main content
       

ASP.NET

 
Questionvisul studio installing Pinmemberagrigold22-Feb-13 23:48 
AnswerRe: visul studio installing PinmemberMarco Bertschi23-Feb-13 2:42 
AnswerRe: visul studio installing PinmvpSandeep Mewara23-Feb-13 4:13 
Questionhow to increment column value by 1 PinmemberMember 870181322-Feb-13 22:39 
AnswerRe: how to increment column value by 1 PinmemberMember 870181322-Feb-13 23:33 
QuestionWeb Task Scheduler PinmemberMohamad Hoosein Fakhravary22-Feb-13 12:17 
AnswerRe: Web Task Scheduler PinmvpRichard MacCutchan23-Feb-13 0:23 
GeneralRe: Web Task Scheduler PinmemberMohamad Hoosein Fakhravary23-Feb-13 1:21 
GeneralRe: Web Task Scheduler PinmvpRichard MacCutchan23-Feb-13 1:35 
GeneralRe: Web Task Scheduler PinmemberMohamad Hoosein Fakhravary24-Feb-13 2:01 
GeneralRe: Web Task Scheduler PinmvpRichard MacCutchan24-Feb-13 2:10 
GeneralRe: Web Task Scheduler PinmemberMohamad Hoosein Fakhravary24-Feb-13 21:17 
GeneralRe: Web Task Scheduler PinmvpRichard MacCutchan25-Feb-13 1:10 
Questiongridview [modified] PinmemberMember 870181322-Feb-13 8:34 
i wrote below code for gridview columns
<Columns>
  <asp:TemplateField HeaderText="S.No">
                            <ItemStyle HorizontalAlign="Left" VerticalAlign="Middle" />
                            <ItemTemplate>
 
                                <asp:Label ID="Lblslno" Visible="false" runat="server" Text='<%#Eval("RequestId")%>' />
                                <%#Container.DataItemIndex+1 %>
                            </ItemTemplate>
 
                        </asp:TemplateField>
<asp:BoundField DataField="RequestId" HeaderText="RequestId"
        ItemStyle-VerticalAlign="Top" ItemStyle-HorizontalAlign="Left"
        SortExpression="RequestId" >
    <ItemStyle HorizontalAlign="Left" VerticalAlign="Top" />
    </asp:BoundField>
<asp:BoundField DataField="ApplicationId" HeaderText="ApplicationId"
        ItemStyle-VerticalAlign="Top" ItemStyle-HorizontalAlign="Left"
        SortExpression="ApplicationId" >
    <ItemStyle HorizontalAlign="Left" VerticalAlign="Top" />
    </asp:BoundField>
<asp:BoundField DataField="Document1location" HeaderText="Document1 Location"
        ItemStyle-VerticalAlign="Top" ItemStyle-HorizontalAlign="Left"
        SortExpression="Document1location" >
    <ItemStyle HorizontalAlign="Left" VerticalAlign="Top" />
    </asp:BoundField>
<asp:BoundField DataField="Document2location" HeaderText="Document2 Location"
        ItemStyle-VerticalAlign="Top" ItemStyle-HorizontalAlign="Left"
        SortExpression="Document2location" >
    <ItemStyle HorizontalAlign="Left" VerticalAlign="Top" />
    </asp:BoundField>
<asp:BoundField DataField="Document3location" HeaderText="Document3 Location"
        ItemStyle-VerticalAlign="Top" ItemStyle-HorizontalAlign="Left"
        SortExpression="Document3location" >
    <ItemStyle HorizontalAlign="Left" VerticalAlign="Top" />
    </asp:BoundField>
  <asp:BoundField DataField="descr" HeaderText="Description" ItemStyle-VerticalAlign="Top" ItemStyle-HorizontalAlign="Left" SortExpression="descr"  />
  <asp:TemplateField ItemStyle-HorizontalAlign="left" ItemStyle-VerticalAlign="Top">
           <HeaderTemplate>Action</HeaderTemplate>
           <HeaderStyle  />
           <ItemTemplate>
              <asp:LinkButton ID="lnkverify"  runat="server" Text="Verify" CommandName="Application_verify"  CommandArgument='<%#Eval("RequestId") %>' />&nbsp;&nbsp;&nbsp;&nbsp;
              <asp:LinkButton ID="lnkreject"  runat="server"  Text="Reject" CommandName="Appication_reject" CommandArgument='<%#Eval("RequestId") %>' />
           </ItemTemplate>
        </asp:TemplateField>
</Columns>
protected void GridView1_RowCommand(object sender, GridViewCommandEventArgs e)
       {
           try
           {
               if (e.CommandName == "Application_verify")
               {
                   int projectid = Convert.ToInt32(e.CommandArgument);
                   Response.Redirect("~/details.aspx?RequestId=" + RequestId);
               }
}
catch (ApplicationException ex)
{
lblsuccess.Visible = true;
lblsuccess.Text = ex.Message;
}
catch (Exception ex)
{
StackTrace st = new StackTrace(new StackFrame(true));
StackFrame sf = st.GetFrame(0);
 
int line = sf.GetFileLineNumber() - 1;
if (ex.Message.StartsWith("Thread") == false) { Response.Redirect("~/HandleError.aspx?ID=" + ex.Message, false); }
}
}
can anyone tell me why i am getting "RequestId" doesn't exist in the current context on response.redirect(~/details.aspx?RequestId=" + RequestId);pls help me
i got solution


modified 22-Feb-13 13:43pm.

Questiondelete a table data&structure PinmemberMember 870181322-Feb-13 4:25 
QuestionRe: delete a table data&structure PinmvpRichard MacCutchan22-Feb-13 5:01 
AnswerRe: delete a table data&structure PinmemberMember 870181322-Feb-13 5:30 
GeneralRe: delete a table data&structure PinmvpRichard MacCutchan22-Feb-13 5:45 
GeneralRe: delete a table data&structure PinmemberMember 870181322-Feb-13 6:53 
GeneralRe: delete a table data&structure PinmvpRichard MacCutchan22-Feb-13 7:07 
AnswerDROP TABLE PinmemberDavid Mujica22-Feb-13 5:20 
GeneralRe: DROP TABLE PinmemberMember 870181322-Feb-13 5:31 
QuestionMVC and Web.config(ssssss)???!!!!!?? PinmemberSuper Lloyd21-Feb-13 15:14 
AnswerRe: MVC and Web.config(ssssss)???!!!!!?? PinmvpSandeep Mewara21-Feb-13 20:06 
GeneralRe: MVC and Web.config(ssssss)???!!!!!?? PinmemberSuper Lloyd21-Feb-13 22:49 
GeneralRe: MVC and Web.config(ssssss)???!!!!!?? PinmvpSandeep Mewara21-Feb-13 23:09 
QuestionHandling application settings in Virtual path provider PinmemberMark hafel21-Feb-13 14:33 
Questionasp.net app with c#, vb, and fortran Pinmemberryan johnson21-Feb-13 13:53 
AnswerRe: asp.net app with c#, vb, and fortran PinmemberRichard Deeming22-Feb-13 2:54 
QuestionDynamically update price based on exchange rate PinmemberDeepa420-Feb-13 21:06 
AnswerRe: Dynamically update price based on exchange rate PinmvpSandeep Mewara20-Feb-13 22:49 
GeneralRe: Dynamically update price based on exchange rate PinmemberDeepa420-Feb-13 23:00 
GeneralRe: Dynamically update price based on exchange rate PinmvpSandeep Mewara20-Feb-13 23:59 
AnswerRe: Dynamically update price based on exchange rate PinmvpRichard MacCutchan21-Feb-13 0:02 
AnswerUse webservice for exchange rate PinmemberDavid Mujica21-Feb-13 4:04 
QuestionASP.NET 4.0 How to make session values alive still user logout. PinmemberVishwaKL20-Feb-13 20:36 
AnswerRe: ASP.NET 4.0 How to make session values alive still user logout. PinmvpSandeep Mewara20-Feb-13 22:46 
QuestionUser control variable not declared in .aspx page Pinmemberqueenmichelle20-Feb-13 15:16 
AnswerRe: User control variable not declared in .aspx page PinmemberKarthik Harve20-Feb-13 18:45 
AnswerRe: User control variable not declared in .aspx page PinmvpSandeep Mewara20-Feb-13 20:17 
QuestionThe information session ID PinmemberMohamad Hoosein Fakhravary20-Feb-13 13:45 
AnswerRe: The information session ID PinmvpSandeep Mewara20-Feb-13 18:14 
AnswerRe: The information session ID PinmemberMohamad Hoosein Fakhravary21-Feb-13 9:28 
Questionbutton disable until all required fields are filled [modified] PinmemberMember 870181320-Feb-13 8:12 
AnswerRe: button disable until all required fields are filled PinmvpSandeep Mewara20-Feb-13 18:13 
GeneralRe: button disable until all required fields are filled PinmemberMember 870181320-Feb-13 21:04 
GeneralRe: button disable until all required fields are filled PinmvpSandeep Mewara20-Feb-13 22:42 
GeneralRe: button disable until all required fields are filled PinmemberMember 870181320-Feb-13 22:57 
GeneralRe: button disable until all required fields are filled PinmvpSandeep Mewara20-Feb-13 23:55 
GeneralRe: button disable until all required fields are filled [modified] PinmemberMember 870181321-Feb-13 3:07 

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

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


Advertise | Privacy | Mobile
Web02 | 2.8.141223.1 | Last Updated 24 Dec 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid