Click here to Skip to main content
15,895,462 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionHow to find application URL while using separate script file in asp.net ? Pin
zeego21-Jun-11 20:47
zeego21-Jun-11 20:47 
AnswerRe: How to find application URL while using separate script file in asp.net ? Pin
Vasudevan Deepak Kumar22-Jun-11 10:42
Vasudevan Deepak Kumar22-Jun-11 10:42 
AnswerRe: How to find application URL while using separate script file in asp.net ? Pin
Shahriar Iqbal Chowdhury/Galib22-Jun-11 11:04
professionalShahriar Iqbal Chowdhury/Galib22-Jun-11 11:04 
GeneralRe: How to find application URL while using separate script file in asp.net ? Pin
AspDotNetDev22-Jun-11 11:12
protectorAspDotNetDev22-Jun-11 11:12 
AnswerRe: How to find application URL while using separate script file in asp.net ? Pin
AspDotNetDev22-Jun-11 11:10
protectorAspDotNetDev22-Jun-11 11:10 
QuestionRemember sort order on paging for Datagrid Pin
vanikanc21-Jun-11 15:34
vanikanc21-Jun-11 15:34 
AnswerRe: Remember sort order on paging for Datagrid Pin
nainakarri21-Jun-11 20:30
nainakarri21-Jun-11 20:30 
QuestionHow to load the Iframe with hidden fields after the page load event Pin
Vimalsoft(Pty) Ltd21-Jun-11 8:24
professionalVimalsoft(Pty) Ltd21-Jun-11 8:24 
hi all

I am using a third party gateway. The third party gateway does not support query-string , so i will need to post the form to pass the values to the given URL and another thing is that they don't expose the web-services so we need to use their page and that means we need to host it in an iframe in asp.net

so what i did is that i have hidden fields that will be used as parameters as depicted below

<input type="hidden" name="p1" value='4635' />
<input type="hidden" name="p2" value='Reference_test' />
<input type="hidden" name="p3" value='Purchase credits' />
<input type="hidden" name="p4" value='500' />
<input type="hidden" name="m_1" value='142' />
<input type="hidden" name="m_2" value='720' />


and i will have a button to demonstrate what i want and i have an iframe as depicted below

<asp:Button ID="Button1" runat="server" Text="Proceed"  PostBackUrl="https://www.vcs.co.za/vvonline/ccform.asp" />
      <iframe id="iframe1"    src=""
        style="width: 744px; height: 333px; margin-top: 16px; margin-bottom: 0px;">
    Your browser does not support inline frames or is currently configured not to display inline frames.
    </iframe>



now on form load i have this

<body onload="Loadiframe()" 


and the Javascript looks like this

<script type="text/javascript">
        function Loadiframe() {
            document.getElementById("iframe1").src = "https://www.vcs.co.za/vvonline/ccform.asp"
            
            return false;
        }
    </script>


now the purpose of this , is to load the iframe after the page load event of the asp.net gets fired.

Now my problem here is that when the iframe loads , it does not pass the parameters to the url that is being set in the iframe.

I have attached the example, project. (2kb)

When you run the project you will notice when the iframe loads there is an Error

"NO VCS ID"

now this means that the parameters were not passed when the Iframe loads , i can understand because it seems like iframe does not do a full form post. so to demonstrate what i want, click the proceed button and you will notice it will give you a page with no errors and it will be a page where credit card details are required , i want to iframe to load that the first time.



Example Project[^]

Thanks
Vuyiswa Maseko,

Spoted in Daniweb-- Sorry to rant. I hate websites. They are just wierd. They don't behave like normal code.

C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.com
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/

QuestionRedirect to UnAuthorized Page in Windows Authentication Pin
antony beula21-Jun-11 2:07
antony beula21-Jun-11 2:07 
AnswerRe: Redirect to UnAuthorized Page in Windows Authentication Pin
Not Active21-Jun-11 2:23
mentorNot Active21-Jun-11 2:23 
GeneralRe: Redirect to UnAuthorized Page in Windows Authentication Pin
antony beula21-Jun-11 2:40
antony beula21-Jun-11 2:40 
QuestionTextbox value doesn't change between postbacks Pin
benams21-Jun-11 1:20
benams21-Jun-11 1:20 
AnswerRe: Textbox value doesn't change between postbacks Pin
mcyogi21-Jun-11 1:37
mcyogi21-Jun-11 1:37 
AnswerRe: Textbox value doesn't change between postbacks Pin
Not Active21-Jun-11 2:26
mentorNot Active21-Jun-11 2:26 
Questionwhat are the configuratiions in the asp.net validation controls? and please give the code to the configurations? Pin
hariprasad.yandrapu20-Jun-11 22:25
hariprasad.yandrapu20-Jun-11 22:25 
AnswerRe: what are the configuratiions in the asp.net validation controls? and please give the code to the configurations? Pin
Not Active21-Jun-11 2:24
mentorNot Active21-Jun-11 2:24 
AnswerRe: what are the configuratiions in the asp.net validation controls? and please give the code to the configurations? Pin
thatraja21-Jun-11 19:38
professionalthatraja21-Jun-11 19:38 
Questionexception: Missing semicolon (;) at end of SQL statement [modified] Pin
benams20-Jun-11 8:32
benams20-Jun-11 8:32 
AnswerRe: exception: Missing semicolon (;) at end of SQL statement Pin
Parwej Ahamad20-Jun-11 8:38
professionalParwej Ahamad20-Jun-11 8:38 
GeneralRe: exception: Missing semicolon (;) at end of SQL statement Pin
benams20-Jun-11 8:41
benams20-Jun-11 8:41 
AnswerRe: exception: Missing semicolon (;) at end of SQL statement Pin
AspDotNetDev20-Jun-11 8:54
protectorAspDotNetDev20-Jun-11 8:54 
GeneralRe: exception: Missing semicolon (;) at end of SQL statement Pin
Parwej Ahamad20-Jun-11 8:55
professionalParwej Ahamad20-Jun-11 8:55 
GeneralRe: exception: Missing semicolon (;) at end of SQL statement Pin
benams20-Jun-11 23:13
benams20-Jun-11 23:13 
GeneralRe: exception: Missing semicolon (;) at end of SQL statement Pin
Parwej Ahamad21-Jun-11 0:26
professionalParwej Ahamad21-Jun-11 0:26 
GeneralRe: exception: Missing semicolon (;) at end of SQL statement Pin
benams21-Jun-11 0:39
benams21-Jun-11 0:39 

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.