|
Piyush Vardhan Singh wrote: how run setup from aspx page?
What does it mean ? Do you want to run a setup from web application ? Where your setup files is located ?
If you want to install it client system, just give clients to download option of setup and then can user run the application.
Let me know if you want something different.
cheers,
Abhijit
CodeProject.Com MVP
|
|
|
|
|
Thanks for reply.
yaa i want to start my setup from web application, i just want to run or download option in my web application.. for example yahoo msngr download
Piyush Vardhan Singh
p_vardhan14@rediffmail.com
http://holyschoolofvaranasi.blogspot.com
http://holytravelsofvaranasi.blogspot.com
|
|
|
|
|
if u have any link then foreword me.
Thanks
Piyush Vardhan Singh
p_vardhan14@rediffmail.com
http://holyschoolofvaranasi.blogspot.com
http://holytravelsofvaranasi.blogspot.com
|
|
|
|
|
Try this
Response.AddHeader("Content-Disposition", "attachment; filename=Setup.Exe");
Response.WriteFile("Setup.exe", true);
cheers,
Abhijit
CodeProject.Com MVP
|
|
|
|
|
where i keep the setup.exe
Piyush Vardhan Singh
p_vardhan14@rediffmail.com
http://holyschoolofvaranasi.blogspot.com
http://holytravelsofvaranasi.blogspot.com
|
|
|
|
|
Piyush Vardhan Singh wrote: where i keep the setup.exe
On Server , and give the path.
cheers,
Abhijit
CodeProject.Com MVP
|
|
|
|
|
You have to explain in details what you want to achieve. dont just write one line
Vuyiswa Maseko,
Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers."
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.tiyaneProperties.co.za
vuyiswam@its.co.za
|
|
|
|
|
Hi,
When I submit my page after some client side (Javascript) validation, I got the following error...
Application Error
Support information should be hereInvalid postback or callback argument. Event validation is enabled using in configuration or in a page. For security purposes, this feature verifies that arguments to postback or callback events originate from the server control that originally rendered them. If the data is valid and expected, use the ClientScriptManager.RegisterForEventValidation method in order to register the postback or callback data for validation.
Can anybody help me on this?
Thanks for your time.
Sebastian
|
|
|
|
|
Do one thing
Go to the paspx page and in the Page tag.Set the attributes enableEventValidation and validateRequest as false and then run it.Do let me know the status
Cheers!!
Brij
|
|
|
|
|
Thanks a ton. Now its working fine..
Sebastian
modified on Thursday, January 8, 2009 8:47 AM
|
|
|
|
|
it should resolve you error.Check this[^]
Cheers!!
Brij
|
|
|
|
|
How to restrict the validation-controls, to fire the validation only on the click of a particular button.
I am having 2 buttons on the page in 2 different panels(say,button1 in panel1 & button2 in panel2). Both are set as defaultButtons on each panels. Only 1 panel(panel2) is having validation controls. But suppose if I am using panel1 ,on the click of Enter,it should not check the validations in panel2 rather it should perform the button1_click(). How can I achieve this. Kindly Give some advice.
Thank you.
|
|
|
|
|
You can do one thing,
Just collect the validation controls from the panel1 assign them to a group( there is property of each validator control "ValidationGroup" and give a value to it) and then set the property "ValidationGroup",set it with the name of the group that you made of the button in panel1.
Do similarly for Panel2.
It'll solve your problem.If any issue please let me know
Cheers!!
Brij
|
|
|
|
|
Hey,Thanx for your reply but,its not working.I am still getting those validation errors.I might have done something wrong.
What I did was, I assigned a common name to the ValidationGroup property of the button & all the validation controls in 1 panel.But it dint work.It is still showing me all error messages on pressing Enter Key.
One more thing, I am having a reCaptcha in 2nd panel,with other validators. Along with the validators this reCaptcha is also checked on client side & this is not among the Data Validators provided by .net. So,how can I deal with this reCaptcha even after changing the settings for the rest of the validators.
Kindly guide.
|
|
|
|
|
anada8886 wrote: I might have done something wrong.
What I did was, I assigned a common name to the ValidationGroup property of the button & all the validation controls in 1 panel.But it dint work.It is still showing me all error messages on pressing Enter Key.
You must given different group name to panel2 controls?Do the same for both panel. and on enter whicn is getting clicked.If still there are issues post you code here.Then I can try to identify the problem.
Cheers!!
Brij
|
|
|
|
|
|
Hi ,
Presently i am working on Web Setup Project. i have issue while creating a virtual directory and physical path .
How to Handle Code for the Radio Buttons in web setup project. please Help me out there is no info in net also .only a real time members can help.
Can u send any code or any links related to the above issue in web setup project of c#
I will B Very thank full
Thanks & Regards
Shavil Hussain S
|
|
|
|
|
shavil wrote: have issue while creating a virtual directory and physical path .
What are the issues are you getting ?
Please Read this Article[^]. This describes step by steps details to create Virtual Directory and all other stuffs.
shavil wrote: How to Handle Code for the Radio Buttons in web setup project.
I didn't get your point. please clarify !!
cheers,
Abhijit
CodeProject.Com MVP
|
|
|
|
|
What issues do you have when creating a Virtual Directory ?
Because when you create a Setup Project for Web , there is a Property that allows you to enter the Name of the Virtual Directory and automaticall it will be created under (inetpubs/wwwroot/) still open for correction.
Now when it comes to the code to Handle the Radio button, am not sure what are you talking about. because we dont write a code in setup Projects.
never remember trying to do that
Vuyiswa Maseko,
Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers."
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.tiyaneProperties.co.za
vuyiswam@its.co.za
|
|
|
|
|
Hi Vuyiswa Maseko,
First Of All Thanks For giving Reply.
Coming to my issue can u send any code or link about that property which allows me to create Virtual Directory automatically it will be created under (inetpubs/wwwroot/) .(Please rember that i want at the Deployment of the Web setup project)
are u can explain me from these Reply.
Coming to the Radio Buttons issue,there is a userintrface screens where i can select Radio Buttons .just i want to how to write the code for that issue and where 2 write.
i will Be waiting for ur reply soonly
Thanks & Regards
Shavil Hussain S
|
|
|
|
|
hi Shavil
When you create a Web Setup Project, in your Setup Project right Click and Select "View FileSystem" , on your left hand side you will see "Web Application Folder" , right click on it and select Properties and in the Properties the last option is "Virtual Directory" that is where you name your Virtual Directory. By default you will find that the virtual Directory is equal to the name of your Setup Project. Make Sure when you Create a Setup Project you only Select "Web Setup Project" not "Setup Project".
At the end ofg the day you want to Deploy you Web Application like a Windows application by using a Setup. Now if you want to Do more you can Configuire it there is not code that is needed to be Written for radio buttons. can you explain what more Options do you want.
Thank you
Vuyiswa Maseko,
Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers."
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.tiyaneProperties.co.za
vuyiswam@its.co.za
|
|
|
|
|
Hai Vuyiswa,
What u have said i got it ,But i am not getting the properties what u have said i think i am doing in setup project i will check and let u know.
when Coming to the Radio Button i am doing database Installer script which runs automatically when it is deploying or installing it.
Of cource i got the soution.But, i want Radio Button bcoz there are 3 options 1 is for Sql Server and 2 is for Oracle and 3 is for MySql
When he selects any one of these,means i want to install my script in that particular Database.
and i will Be providing the Connection String also like "Server name,Database name,Username,password" at the time of the installation
So i want code for the Radio Buttons.how to handle at the time of the Deployment or installation
If u have done any web setup project can u send the code to my mail id shaik.shavil@gmail.com
Thanks & Regards
Shaik Shavil
|
|
|
|
|
hi shavil
Sorry for a late answer, was a little bit busy, please have a look at this Article it will give you an idea on how to do it
http://www.codeproject.com/KB/install/WebServieInstaller.aspx[^]
Hope it helps
Vuyiswa Maseko,
Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers."
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.tiyaneProperties.co.za
vuyiswam@its.co.za
|
|
|
|
|
I have downloaded application from code project.
Its giving error like
It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS
How can i clear this problem?
|
|
|
|
|
Check there might be more than one web.config file in your project which contain
allowDefinition='MachineToApplication'
|
|
|
|