|
thanks for the reponse
i am calling session at page 3 by using this code;
Image1.ImageUrl = "C:\\image\\" + Session["p1"].ToString();
plz suggest me.
thanks
|
|
|
|
|
Step through your code, put a break point anywhere that Session["p1"] is set. Where you set it is irrelevant, it's visible to your whole app.
Hard coding session strings is a nightmare, they should be in a static class.
Christian Graus
No longer a Microsoft MVP, but still happy to answer your questions.
|
|
|
|
|
Christian Graus wrote: Where you set it is irrelevant
I wouldn't say it is completly irrelevant
|
|
|
|
|
Well, so long as it's being set, it kind of is, the session is an app wide value.
Christian Graus
No longer a Microsoft MVP, but still happy to answer your questions.
|
|
|
|
|
thanks for the respones
plz send me some code
thanks
|
|
|
|
|
gaurav mangal wrote: plz send me some code
ROTFL. Brilliant. Someone shoot me.
Read my response again. Do what I suggested. Get back to me when you have something to report based on your doing something yourself. There is no code to solve your issue.
Christian Graus
No longer a Microsoft MVP, but still happy to answer your questions.
|
|
|
|
|
if(user != programmer)
{
Label1.Text = "No help will be given!"
}
|
|
|
|
|
Christian Graus wrote: Hard coding session strings is a nightmare, they should be in a static class.
I second that. But, it seems this particular forum ought to be renamed "Beginning ASP.NET"
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
Ok well if Session["p1"] is showing as blank then it means that no value is being put in it.
For a test set the session to a value of say '1' and then get that value on the next page and put it in a label and see if anything appears. If this works it means that ctcchild1.pic is not being put in your session.
What is ctcchild1?
|
|
|
|
|
I am sure if he sets breakpoints everywhere that this value is set or changed, he'll find his problem quick enough.
Christian Graus
No longer a Microsoft MVP, but still happy to answer your questions.
|
|
|
|
|
i am new in asp.net . i dont know how to apply breakpointat sessions.
but i will learn about that
anyway thanks sir
|
|
|
|
|
ctcchild is the id of the usercontrol .
ok i will try .
|
|
|
|
|
dear all i am integrating paypal with shopcart i want direct transcation will happen when user will clcik on checkout it shd not through user to login page of paypal so how can i impliment it.
Thanks & Regards,
Prashant B. Lavate
Software Engineer
Mobile : +919423872257
Pune(India)
|
|
|
|
|
Prashant B. Lavate wrote: so how can i impliment it
Using PayPal.
|
|
|
|
|
prashant , there is plenty of code available google before you ask any question, it's better you ask questions in paypal developer forum.
|
|
|
|
|
I have UCode and UName values. It should be passed into other page by using query string. How to pass more than one values in query string by using response.redirect?
Balasubramanian K.
|
|
|
|
|
Gosh. Does no-one here know anything about web development ? Look at the URL for this page. Buy a book on web development, PLEASE.
mypage.aspx?UCode=this&UName=isNotSecure
I would not put usernames on the query string.
Christian Graus
No longer a Microsoft MVP, but still happy to answer your questions.
|
|
|
|
|
Christian Graus wrote: Does no-one here know anything about web development ? Look at the URL for this page. Buy a book on web development, PLEASE.
I second that.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
I agree with Christian and if you really have to pass username via query string then at least hash it.
I Love T-SQL
"Don't torture yourself,let the life to do it for you."
|
|
|
|
|
BalasubramanianK wrote: It should be passed into other page by using query string.
Tell me this isn't your way of handling sessions?
|
|
|
|
|
Ok fine.. using sessions, I could pass. But I want to know about the two query string passing system.
Balasubramanian K.
|
|
|
|
|
BalasubramanianK wrote: But I want to know about the two query string passing system.
Response.Redirect("MyPage.aspx?Query1="+Variable1+"&Query2="+Variable2);
Or
Response.Redirect(String.Format("MyPage.aspx?Query1={0}&Query2={1}",Variable1,Variable2));
please don't forget to vote on the post that helped you.
|
|
|
|
|
BalasubramanianK wrote: But I want to know about the two query string passing system.
You know now.
|
|
|
|
|
I gave you an example already. The core issue is, if you don't know that, you should not be working on web apps, you should be reading a beginner book. Given that most URLs you visit would have examples for you.....
Christian Graus
No longer a Microsoft MVP, but still happy to answer your questions.
|
|
|
|
|
Christian Graus wrote: core issue is, if you don't know that, you should not be working on web apps, you should be reading a beginner book
I hope I never have to use his web app until he learns how to do a real web app
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|