Click here to Skip to main content
12,405,498 members (63,948 online)
   

ASP.NET

 
Questionvisul studio installing Pin
agrigold22-Feb-13 22:48
memberagrigold22-Feb-13 22:48 
AnswerRe: visul studio installing Pin
Marco Bertschi23-Feb-13 1:42
memberMarco Bertschi23-Feb-13 1:42 
AnswerRe: visul studio installing Pin
Sandeep Mewara23-Feb-13 3:13
mvpSandeep Mewara23-Feb-13 3:13 
Questionhow to increment column value by 1 Pin
Member 870181322-Feb-13 21:39
memberMember 870181322-Feb-13 21:39 
AnswerRe: how to increment column value by 1 Pin
Member 870181322-Feb-13 22:33
memberMember 870181322-Feb-13 22:33 
QuestionWeb Task Scheduler Pin
Mohamad Hoosein Fakhravary22-Feb-13 11:17
memberMohamad Hoosein Fakhravary22-Feb-13 11:17 
AnswerRe: Web Task Scheduler Pin
Richard MacCutchan22-Feb-13 23:23
mvpRichard MacCutchan22-Feb-13 23:23 
GeneralRe: Web Task Scheduler Pin
Mohamad Hoosein Fakhravary23-Feb-13 0:21
memberMohamad Hoosein Fakhravary23-Feb-13 0:21 
GeneralRe: Web Task Scheduler Pin
Richard MacCutchan23-Feb-13 0:35
mvpRichard MacCutchan23-Feb-13 0:35 
GeneralRe: Web Task Scheduler Pin
Mohamad Hoosein Fakhravary24-Feb-13 1:01
memberMohamad Hoosein Fakhravary24-Feb-13 1:01 
GeneralRe: Web Task Scheduler Pin
Richard MacCutchan24-Feb-13 1:10
mvpRichard MacCutchan24-Feb-13 1:10 
GeneralRe: Web Task Scheduler Pin
Mohamad Hoosein Fakhravary24-Feb-13 20:17
memberMohamad Hoosein Fakhravary24-Feb-13 20:17 
GeneralRe: Web Task Scheduler Pin
Richard MacCutchan25-Feb-13 0:10
mvpRichard MacCutchan25-Feb-13 0:10 
Questiongridview Pin
Member 870181322-Feb-13 7:34
memberMember 870181322-Feb-13 7: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 Pin
Member 870181322-Feb-13 3:25
memberMember 870181322-Feb-13 3:25 
QuestionRe: delete a table data&structure Pin
Richard MacCutchan22-Feb-13 4:01
mvpRichard MacCutchan22-Feb-13 4:01 
AnswerRe: delete a table data&structure Pin
Member 870181322-Feb-13 4:30
memberMember 870181322-Feb-13 4:30 
GeneralRe: delete a table data&structure Pin
Richard MacCutchan22-Feb-13 4:45
mvpRichard MacCutchan22-Feb-13 4:45 
GeneralRe: delete a table data&structure Pin
Member 870181322-Feb-13 5:53
memberMember 870181322-Feb-13 5:53 
GeneralRe: delete a table data&structure Pin
Richard MacCutchan22-Feb-13 6:07
mvpRichard MacCutchan22-Feb-13 6:07 
AnswerDROP TABLE Pin
David Mujica22-Feb-13 4:20
memberDavid Mujica22-Feb-13 4:20 
GeneralRe: DROP TABLE Pin
Member 870181322-Feb-13 4:31
memberMember 870181322-Feb-13 4:31 
QuestionMVC and Web.config(ssssss)???!!!!!?? Pin
Super Lloyd21-Feb-13 14:14
memberSuper Lloyd21-Feb-13 14:14 
AnswerRe: MVC and Web.config(ssssss)???!!!!!?? Pin
Sandeep Mewara21-Feb-13 19:06
mvpSandeep Mewara21-Feb-13 19:06 
GeneralRe: MVC and Web.config(ssssss)???!!!!!?? Pin
Super Lloyd21-Feb-13 21:49
memberSuper Lloyd21-Feb-13 21:49 
GeneralRe: MVC and Web.config(ssssss)???!!!!!?? Pin
Sandeep Mewara21-Feb-13 22:09
mvpSandeep Mewara21-Feb-13 22:09 
QuestionHandling application settings in Virtual path provider Pin
Mark hafel21-Feb-13 13:33
memberMark hafel21-Feb-13 13:33 
Questionasp.net app with c#, vb, and fortran Pin
ryan johnson21-Feb-13 12:53
memberryan johnson21-Feb-13 12:53 
AnswerRe: asp.net app with c#, vb, and fortran Pin
Richard Deeming22-Feb-13 1:54
memberRichard Deeming22-Feb-13 1:54 
QuestionDynamically update price based on exchange rate Pin
Deepa420-Feb-13 20:06
memberDeepa420-Feb-13 20:06 
AnswerRe: Dynamically update price based on exchange rate Pin
Sandeep Mewara20-Feb-13 21:49
mvpSandeep Mewara20-Feb-13 21:49 
GeneralRe: Dynamically update price based on exchange rate Pin
Deepa420-Feb-13 22:00
memberDeepa420-Feb-13 22:00 
GeneralRe: Dynamically update price based on exchange rate Pin
Sandeep Mewara20-Feb-13 22:59
mvpSandeep Mewara20-Feb-13 22:59 
AnswerRe: Dynamically update price based on exchange rate Pin
Richard MacCutchan20-Feb-13 23:02
mvpRichard MacCutchan20-Feb-13 23:02 
AnswerUse webservice for exchange rate Pin
David Mujica21-Feb-13 3:04
memberDavid Mujica21-Feb-13 3:04 
QuestionASP.NET 4.0 How to make session values alive still user logout. Pin
VishwaKL20-Feb-13 19:36
memberVishwaKL20-Feb-13 19:36 
AnswerRe: ASP.NET 4.0 How to make session values alive still user logout. Pin
Sandeep Mewara20-Feb-13 21:46
mvpSandeep Mewara20-Feb-13 21:46 
QuestionUser control variable not declared in .aspx page Pin
queenmichelle20-Feb-13 14:16
memberqueenmichelle20-Feb-13 14:16 
AnswerRe: User control variable not declared in .aspx page Pin
Karthik Harve20-Feb-13 17:45
memberKarthik Harve20-Feb-13 17:45 
AnswerRe: User control variable not declared in .aspx page Pin
Sandeep Mewara20-Feb-13 19:17
mvpSandeep Mewara20-Feb-13 19:17 
QuestionThe information session ID Pin
Mohamad Hoosein Fakhravary20-Feb-13 12:45
memberMohamad Hoosein Fakhravary20-Feb-13 12:45 
AnswerRe: The information session ID Pin
Sandeep Mewara20-Feb-13 17:14
mvpSandeep Mewara20-Feb-13 17:14 
AnswerRe: The information session ID Pin
Mohamad Hoosein Fakhravary21-Feb-13 8:28
memberMohamad Hoosein Fakhravary21-Feb-13 8:28 
Questionbutton disable until all required fields are filled Pin
Member 870181320-Feb-13 7:12
memberMember 870181320-Feb-13 7:12 
AnswerRe: button disable until all required fields are filled Pin
Sandeep Mewara20-Feb-13 17:13
mvpSandeep Mewara20-Feb-13 17:13 
GeneralRe: button disable until all required fields are filled Pin
Member 870181320-Feb-13 20:04
memberMember 870181320-Feb-13 20:04 
GeneralRe: button disable until all required fields are filled Pin
Sandeep Mewara20-Feb-13 21:42
mvpSandeep Mewara20-Feb-13 21:42 
GeneralRe: button disable until all required fields are filled Pin
Member 870181320-Feb-13 21:57
memberMember 870181320-Feb-13 21:57 
GeneralRe: button disable until all required fields are filled Pin
Sandeep Mewara20-Feb-13 22:55
mvpSandeep Mewara20-Feb-13 22:55 
GeneralRe: button disable until all required fields are filled Pin
Member 870181321-Feb-13 2:07
memberMember 870181321-Feb-13 2:07 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    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.160721.1 | Last Updated 29 Jul 2016
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid