Click here to Skip to main content
11,432,119 members (59,150 online)
   

ASP.NET

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