Click here to Skip to main content
15,907,326 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: iframe is not showing the text in that after button click Pin
Abhijit Jana31-Jul-08 19:21
professionalAbhijit Jana31-Jul-08 19:21 
QuestionQuestion: Deploying Web Applications using Vs.net 2005 Web Setup Project? Pin
kfqnwang31-Jul-08 18:00
kfqnwang31-Jul-08 18:00 
AnswerRe: Question: Deploying Web Applications using Vs.net 2005 Web Setup Project? Pin
AhsanS31-Jul-08 19:02
AhsanS31-Jul-08 19:02 
QuestionFlyouts Pin
Cyberpulse31-Jul-08 14:38
Cyberpulse31-Jul-08 14:38 
AnswerRe: Flyouts Pin
Venkatesh Mookkan31-Jul-08 16:25
Venkatesh Mookkan31-Jul-08 16:25 
QuestionSession variables lost when using Process.Start Pin
Tomb42131-Jul-08 11:49
Tomb42131-Jul-08 11:49 
AnswerRe: Session variables lost when using Process.Start Pin
Bassam Saoud31-Jul-08 11:56
Bassam Saoud31-Jul-08 11:56 
GeneralRe: Session variables lost when using Process.Start Pin
Tomb4211-Aug-08 3:07
Tomb4211-Aug-08 3:07 
AnswerRe: Session variables lost when using Process.Start Pin
Christian Graus31-Jul-08 13:29
protectorChristian Graus31-Jul-08 13:29 
GeneralRe: Session variables lost when using Process.Start Pin
Tomb4211-Aug-08 3:30
Tomb4211-Aug-08 3:30 
QuestionProblems to Call System.Diagnostics.Process.Start("C:\\TEMP\\myfile.vbs"); Pin
Fabu197131-Jul-08 9:01
Fabu197131-Jul-08 9:01 
AnswerRe: Problems to Call System.Diagnostics.Process.Start("C:\\TEMP\\myfile.vbs"); Pin
led mike31-Jul-08 9:12
led mike31-Jul-08 9:12 
GeneralRe: Problems to Call System.Diagnostics.Process.Start("C:\\TEMP\\myfile.vbs"); Pin
Christian Graus31-Jul-08 13:45
protectorChristian Graus31-Jul-08 13:45 
GeneralRe: Problems to Call System.Diagnostics.Process.Start("C:\\TEMP\\myfile.vbs"); Pin
led mike1-Aug-08 5:54
led mike1-Aug-08 5:54 
AnswerRe: Problems to Call System.Diagnostics.Process.Start("C:\\TEMP\\myfile.vbs"); Pin
Bassam Saoud31-Jul-08 12:00
Bassam Saoud31-Jul-08 12:00 
GeneralRe: Problems to Call System.Diagnostics.Process.Start("C:\\TEMP\\myfile.vbs"); Pin
Fabu19716-Aug-08 10:53
Fabu19716-Aug-08 10:53 
Questionasp calendar control showing multiple months Pin
SomeGuyThatIsMe31-Jul-08 8:30
SomeGuyThatIsMe31-Jul-08 8:30 
AnswerRe: asp calendar control showing multiple months Pin
ToddHileHoffer31-Jul-08 8:54
ToddHileHoffer31-Jul-08 8:54 
GeneralRe: asp calendar control showing multiple months Pin
SomeGuyThatIsMe31-Jul-08 9:35
SomeGuyThatIsMe31-Jul-08 9:35 
GeneralRe: asp calendar control showing multiple months Pin
SomeGuyThatIsMe31-Jul-08 10:45
SomeGuyThatIsMe31-Jul-08 10:45 
QuestionAspx Page Call issue Pin
manish.singhal31-Jul-08 7:51
manish.singhal31-Jul-08 7:51 
AnswerRe: Aspx Page Call issue Pin
SomeGuyThatIsMe31-Jul-08 8:50
SomeGuyThatIsMe31-Jul-08 8:50 
GeneralRe: Aspx Page Call issue Pin
manish.singhal31-Jul-08 19:20
manish.singhal31-Jul-08 19:20 
GeneralRe: Aspx Page Call issue Pin
SomeGuyThatIsMe1-Aug-08 2:03
SomeGuyThatIsMe1-Aug-08 2:03 
ok say i have 2 web apps... a main app and a app that lets me process credit card info..you get to the main app by going to www.jimbob.com(i dontknow if thats a real address or not), and the payment app is in a subdomain payment.jimbob.com so that i can use it from other apps when i build them. make sense so far? good, now i have a button somewhere in the mainapp that takes you to the payment piece to buy something, so in the button click i'd insert data to the db(i do need to pass things between sites) and do a Response.Redirect("http://payment.jimbob.com/payment.aspx?tempId=35hgs"); now that obvisouly wont work in my dev environment because the dns records for jimbob and payment.jimbob poitn to my production webserver. so i put an entry into the <appsettings> section of my web.config file for the main app project that looks like, <add key="paymentPath" value="http://payment.jimbob.com/payment.aspx"> so with one change i make the apps work in dev or prod(i also have one for the connection string to th db so i can switch between dev and productio ndatabases easily. with the web.config entry my button code changes to

Response.redirect(ConfigurationSettings.AppSettings["paymentPath"] + "?tempId=35hgs");

i have used this method but have not tried the code snippets here, i may and probably do have typo's,sorry. if you're in dev and your dev machine is hosting everything, you can use http://localhost/whatever but you do have to have the http part if your leaving th ecurrent project/domain(changed from www.blah to payment.blah counts as changed domains espically if you are using ssl to secure things(i recommend that) and session info wont transfer..it also wont transfer between secure and non secure as the session is encrypted comeing out of secure, and its expceted to be encryped going into it..i may be wrong with the newwer versions out now, but i remmebber having that problem a couple years ago. If however you want to simply change directories or pages in the same projet you can use relative paths ../newdir/newpage.aspx or if everything is in the same dir you can use "newpage.aspx"

hope this is more helpful. if you want the exact code or more code than i've given you i recomend asking someone else, or reading the msdn pages about Response.Redirect or some of the articles here i know deal with it. for something more complicated i may post full or more code, but i hate posting full code for people because the vast majority just copy it and never learn how it works and its mine/our fault when it breaks.

Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.

GeneralRe: Aspx Page Call issue Pin
manish.singhal11-Aug-08 21:23
manish.singhal11-Aug-08 21:23 

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.