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

ASP.NET

 
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 
QuestionMissing Parameters in call to WebService Pin
Miszou31-Jul-08 7:12
Miszou31-Jul-08 7:12 
AnswerRe: Missing Parameters in call to WebService Pin
SomeGuyThatIsMe31-Jul-08 8:24
SomeGuyThatIsMe31-Jul-08 8:24 
QuestionCan't load WebControl from subfolder Pin
hajoshajo31-Jul-08 6:16
hajoshajo31-Jul-08 6:16 
AnswerRe: Can't load WebControl from subfolder Pin
Gayani Devapriya31-Jul-08 23:57
Gayani Devapriya31-Jul-08 23:57 
QuestionWeb.Config vs. Machine.Config Pin
KreativeKai31-Jul-08 5:13
professionalKreativeKai31-Jul-08 5:13 
AnswerRe: Web.Config vs. Machine.Config Pin
led mike31-Jul-08 5:31
led mike31-Jul-08 5:31 
Questionrequest project website from other PC in network Pin
piyush_patel111131-Jul-08 4:53
piyush_patel111131-Jul-08 4:53 
AnswerRe: request project website from other PC in network Pin
Bassam Saoud31-Jul-08 12:02
Bassam Saoud31-Jul-08 12:02 
GeneralRe: request project website from other PC in network Pin
piyush_patel11114-Aug-08 23:23
piyush_patel11114-Aug-08 23:23 
Questioncheck and click programmattically Pin
caradri31-Jul-08 4:21
caradri31-Jul-08 4:21 
QuestionRequired fields in a gridview [modified] - Answered Pin
Dan Neely31-Jul-08 4:07
Dan Neely31-Jul-08 4:07 
AnswerRe: Required fields in a gridview [modified] - Answered Pin
eyeseetee31-Jul-08 4:31
eyeseetee31-Jul-08 4:31 
QuestionRunning javascript from server side. Pin
JimBob SquarePants31-Jul-08 3:43
JimBob SquarePants31-Jul-08 3:43 
AnswerRe: Running javascript from server side. Pin
led mike31-Jul-08 4:44
led mike31-Jul-08 4:44 
GeneralRe: Running javascript from server side. Pin
JimBob SquarePants31-Jul-08 5:20
JimBob SquarePants31-Jul-08 5:20 
GeneralRe: Running javascript from server side. Pin
led mike31-Jul-08 5:27
led mike31-Jul-08 5:27 

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.