Click here to Skip to main content
15,887,875 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionRe: How do I access a csv file without hardcoding it in my code? Pin
Norris Chappell30-Apr-15 4:56
Norris Chappell30-Apr-15 4:56 
AnswerRe: How do I access a csv file without hardcoding it in my code? Pin
Norris Chappell30-Apr-15 7:01
Norris Chappell30-Apr-15 7:01 
QuestionExport data to excel in asp.net Pin
Obaidullah Sulaimankhail26-Apr-15 20:07
Obaidullah Sulaimankhail26-Apr-15 20:07 
AnswerRe: Export data to excel in asp.net Pin
Abhinav S27-Apr-15 19:00
Abhinav S27-Apr-15 19:00 
QuestionServer Side Code and Client Side Code Pin
King Fisher23-Apr-15 18:37
professionalKing Fisher23-Apr-15 18:37 
AnswerRe: Server Side Code and Client Side Code Pin
aarif moh shaikh24-Apr-15 0:10
professionalaarif moh shaikh24-Apr-15 0:10 
AnswerRe: Server Side Code and Client Side Code Pin
Kornfeld Eliyahu Peter26-Apr-15 20:32
professionalKornfeld Eliyahu Peter26-Apr-15 20:32 
QuestionHow do I assign Session value to label in Asp.net? Pin
samflex23-Apr-15 4:52
samflex23-Apr-15 4:52 
I have this link control that passes values via querystring to another page:

PHP
ItemTemplate>
    <asp:HyperLink ID="hdReserve" class="js_siteid"  AutoPostBack="false" runat="server" Text="Select"
      Navigateurl='<%# String.Format("requestSummary.aspx?id={0}&groupsize={1}&facilityFees={2}&depoitAmt={3}&cancelAmt={4}&keydeptAmt={5}&extrahour={6}&facility={7}&hoursdiff={8}", CType(Container.DataItem, System.Data.DataRowView)("siteId") , ddlPartySize.SelectedValue,CType(Container.DataItem, System.Data.DataRowView)("RentalFeeAmount"),CType(Container.DataItem, System.Data.DataRowView)("DepositAmount"),CType(Container.DataItem, System.Data.DataRowView)("CancellationAmount"),CType(Container.DataItem, System.Data.DataRowView)("DepositAmount"),CType(Container.DataItem, System.Data.DataRowView)("ExtraHourAmount"),CType(Container.DataItem, System.Data.DataRowView)("AssetName"), hf1.Value) %>' />
</ItemTemplate>


A user clicks the link but before the user is redirected to requestSummary.aspx page, user is prompted to login.

After a successful login, the user is then taken to that page.

The issue I am running into is that the querystring values that are passed to requestSummary.aspx are now empty.

To resolve this, I attempted to assign these values to session and passed the values back to the label controls.

This is not working as the controls are still blank.

This is what I have tried, just one example to show what I have tried:

PHP
'retrieve querystring values for hoursdiff:

'the markup - label control:
 <td style="font-weight:bold"> Extra Hours: <asp:Label ID="lblhourspassedval" runat="server" /></td>

Dim intHours As Integer = 0
intHours = Request.QueryString("hoursdiff")

'Assign intHours to session:
Session("intHours")

Pass the session value back to the label control:
 lblhourspassedval.Text = Session("intHours")


So far, the label control is still blank.

What am I doing wrong?

I have been struggling with this for a whole day.

Thanks a lot in advance.
AnswerRe: How do I assign Session value to label in Asp.net? Pin
F-ES Sitecore23-Apr-15 22:37
professionalF-ES Sitecore23-Apr-15 22:37 
QuestionUse of LastOrDefault() Pin
Member 1096876723-Apr-15 0:16
Member 1096876723-Apr-15 0:16 
AnswerRe: Use of LastOrDefault() Pin
Richard Deeming23-Apr-15 2:05
mveRichard Deeming23-Apr-15 2:05 
QuestionHow to encrypt message in WCF by writing code Pin
Tridip Bhattacharjee22-Apr-15 22:05
professionalTridip Bhattacharjee22-Apr-15 22:05 
AnswerRe: How to encrypt message in WCF by writing code Pin
Richard MacCutchan22-Apr-15 23:28
mveRichard MacCutchan22-Apr-15 23:28 
AnswerRe: How to encrypt message in WCF by writing code Pin
Gerry Schmitz24-Apr-15 16:08
mveGerry Schmitz24-Apr-15 16:08 
QuestionMultiple page redirection in ASP.NET WebApi Pin
Abdul Shakoor p22-Apr-15 20:34
Abdul Shakoor p22-Apr-15 20:34 
Questiondefault gridview listing not showing on page Pin
spirospap22-Apr-15 14:30
spirospap22-Apr-15 14:30 
AnswerRe: default gridview listing not showing on page Pin
Richard Deeming23-Apr-15 2:00
mveRichard Deeming23-Apr-15 2:00 
GeneralRe: default gridview listing not showing on page Pin
spirospap23-Apr-15 12:34
spirospap23-Apr-15 12:34 
Questionasp.net, c# Pin
Member 1124536521-Apr-15 16:28
Member 1124536521-Apr-15 16:28 
QuestionASP.Application is giving "An unhandled win32 exception occured in w3wp.exe The Just-In-Time debugger was launched without necessary security permissions" error Pin
indian14320-Apr-15 7:48
indian14320-Apr-15 7:48 
AnswerRe: ASP.Application is giving "An unhandled win32 exception occured in w3wp.exe The Just-In-Time debugger was launched without necessary security permissions" error Pin
indian14320-Apr-15 10:20
indian14320-Apr-15 10:20 
Questionquestion Pin
yousfi amina19-Apr-15 0:20
yousfi amina19-Apr-15 0:20 
AnswerRe: question Pin
Richard Andrew x6419-Apr-15 13:00
professionalRichard Andrew x6419-Apr-15 13:00 
QuestionHow to write to fileOutputStream mapped to physical file c# Pin
Tridip Bhattacharjee17-Apr-15 10:04
professionalTridip Bhattacharjee17-Apr-15 10:04 
QuestionRe: How to write to fileOutputStream mapped to physical file c# Pin
jkirkerx17-Apr-15 13:04
professionaljkirkerx17-Apr-15 13:04 

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.