|
|
You can also use java script analog control from dynamicdrive.com
|
|
|
|
|
Hello
I'm new to Web based technology and i have to decide whether to implement using ASP.net or PHP
Here is my requirement
There will a be a Web based software which would be sold via website download.
There were 2 options
1. There will be one Web Server controlled by one person where you have the link to purchase the software. When user purchases the software, in the same Web Server virtual directory will be created and user will start using software.
2. Allow user to download the software with the setup and he will decide to host the software on his own Web Server.
I decided to go for 1st option considering the following points
If i develop my software in asp.net then since I have one Web Server which can host on IIS.
If I allow user to download and host on their web server then if they have Unix server, my website software developed in ASP.net might not work, their UNIX server might not have IIS
I understand that if it PHP based then it works on both Windows & Unix
Is my understanding right.
Please help me to decide how to go about. Are there any other points I need to consider while designing the software
Thank You for your help in Advance
|
|
|
|
|
See here [^]for a recent discussion on the merits of each platform.
In this case I would choose option 1 as it follows the software as a service model and would be better for support and maintainabilty. If you allow the software to be downloaded and installed in users system you will have to supply support for the multitude of configurations that an end user may have in addition to providing patches and and upgrades.
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
In my opinion you need to go for PHP.
By developing it in PHP you are providing flexibility
to your customers in hosting aspect.
HTH
Jinal Desai - LIVE
Experience is mother of sage....
|
|
|
|
|
Instead of allowing customers to download your software and host it for themselves, sounds like you prefer to host it yourself. Given that option, your software is Software As A Service (SAAS). There are many advantages to you by going this route. #1 You only have to worry about one code base and installation, you are in complete control.
What you should consider is Multitennancy, read this on WikiPedia for general understanding, then google the topic for more (and possibly better) articles on the subject.
http://en.wikipedia.org/wiki/Multitenancy[^]
It's not easy to design and maintain SAAS, but in the long run I think you will be better off.
Good Luck.
|
|
|
|
|
sallam 2 all;
tat is my code
<asp:Button ID="btnCaseDetailsAttach" runat="server" Text="Attach" CssClass="ButtonBlackCss" OnClientClick="return triggerFileUpload();" onclick="btnCaseDetailsAttach_Click" />
<asp:Button ID="btnCaseDetailsDetachFile" runat="server" Text="Detach File" CssClass="ButtonBlackCss" onclick="btnCaseDetailsAttach_Click"/>
<asp:HiddenField id="pathpicker" runat="server" />
<input type="file" id="File1" style="visibility:hidden;" onchange="LoadPath();" />
<asp:Label ID="lblSendMail" runat="server"></asp:Label>
<asp:GridView ID="gvCaseDetailsWebFileName" runat="server" CssClass="hor-minimalist-c" Enabled="false">
</asp:GridView>
<script type="text/javascript"language="javascript">
function triggerFileUpload()
{
document.getElementById("File1").click();
}
function LoadPath()
{
var a=document.getElementById("File1").value;
alert(a);
document.getElementById("<%=pathpicker.ClientID%>").value=a;
alert(document.getElementById("<%=pathpicker.ClientID%>").value);
return true;
}
</script>
on attach btn
gvCaseDetailsWebFileName.DataSource = null;
gvCaseDetailsWebFileName.Visible = false;
string value = pathpicker.Value;
objCaseGeneration.FilePath(value.ToString());
gvCaseDetailsWebFileName.DataSource = objCaseGeneration.dsMissingDateOfServices.Tables["CaseGeneration"];
gvCaseDetailsWebFileName.DataBind();
gvCaseDetailsWebFileName.Visible = true;
tis code only browses files bt not works and not places file name in gridview
n tis browses in internet xplorer not in mozilla y?
|
|
|
|
|
I think there is some problem in your javascript, that is why it is not
showing browse in internet explorer not in mozilla.
You need to check the error console of mozilla to track what is
the problem
Just go to Tools>Error Console in mozilla or press
Ctrl+Shift+J.
And the grid is also not binding because of the same problem.
HTH
Jinal Desai - LIVE
Experience is mother of sage....
|
|
|
|
|
te error is on tis line of code
document.getElementById
bt what should be tere i hav no idea
|
|
|
|
|
|
Use PRE tags (Code Block) to format your code. It would be more readable. And you can surely expect more answers.
..Go Green..
|
|
|
|
|
i'm newbee. i tried to pass values but every time i'm usint server.transfer or response.redirect. is is possible to pass the values to that page without displaying that page.
|
|
|
|
|
For that you need to use Session.
Once you store value in Session you can use it on any page.
There are many alternatives of session, Like you can use cookies, Application object or Cache.
HTH
Jinal Desai - LIVE
Experience is mother of sage....
|
|
|
|
|
yes what you said is correct. but can you tell me how to send to that page with out calling that page.
actually my problem is : i'm having two aspx pages namely page1 and page2
page1 has 'print' button and checkbox. so i need to send the information to page2 when print button is clicked whether checkbox is checked or not?
so can you please elaborate your answer.
thank you very much.
regards,
dittu
|
|
|
|
|
ok I got your point. But without calling the page it is not possible to pass the value.
(It is possible to call page methods using AJAX, but that is for the same page.)
Because when you call the page, the page is compiled at the same time, not before or after.
So I think it is not possible.
HTH
Jinal Desai - LIVE
Experience is mother of sage....
|
|
|
|
|
You can use QueryString or CrossPage PostBack for this purpose.
Just google it. You will get a lot of examples and codes.
dittu7 wrote: how to send to that page with out calling that page.
BTW, what do mean by without calling that page?
|
|
|
|
|
what exactly i was asking is how to send a value from page1 to page2 with out redirect to page2.
if we use query string we write as:
in page1: Server.Transfer("page2.aspx?value=checked")
in page2: string str= Request.QueryString("value")
in the above senario page2 is displaying on the browser which should not occur.
so kindly you please send me some suggestions for that
thanks
dittu
|
|
|
|
|
That is what I am telling in my last post.
It is not possible. We cannot get compiled page
without transferring control to it.
So we cannot process it without calling it.
HTH
Jinal Desai - LIVE
Experience is mother of sage....
|
|
|
|
|
then why you use page2?
i think you want to call some function from Page2 to Page1
page class are public partial class. so you can call that from Page1
for example
public partial class _Page1()
{
PageLoad()
{
_Page2 objPage2=new _Page2();
DataTable dt=objPage2.BindData(false);
}
}
public partial class _Page2()
{
DataTable BindData(bool x)
{
}
}
But this is not a good practice
Raju.M
|
|
|
|
|
You mean to say that you wish to execute Page2.aspx but don't want to display on the browser.
Use Server.Execute for the same.
In Page1:
Server.Execute("page2.aspx?value=checked");
Page2 seems fine.
Hope this will help.
|
|
|
|
|
thank you very much to every one who given reply. now i got that using sessions with out displaying the page2..
even though this is my first post i'm really encouraged with all your support...
thank you
dittu
|
|
|
|
|
Hi all
Currently i am in A.Aspx and i have 2 other pages lets say B.aspx and C.aspx and all these page have on master page say Master.aspx.
one user log in into web site and he is currently on A.aspx page and he can see only A.aspx and B.aspx can not see C.aspx
but once he change the address in Browser to C.aspx he was able to go on that page i have one list which contain permission
but when i am checking this thing in Master Page and redirecting him to his default page.
it is giving exception Unable to evaluate expression because the code is optimized or native frame is on top of the stack
is it possible to redirect page to other page on master page load event because master page is loaded yet.
thanks,
|
|
|
|
|
I would rather put the Authorization code in a base class and inherit in all the other classes. Doing Authorization from Master pages is not a good practice.
|
|
|
|
|
yes, i am also support Dinesh. put your Authorization code in derived pages of MasterPage. MasterPage Mainly Used to reduce Design Works.
Raju.M
|
|
|
|
|
Hi
I have created virtual directory in root application but when I'm accessing virtual directory pages then session value does not exists but when I move to root pages session value exists.
So what I need to do to resolve this issue.
Thanks in advance
|
|
|
|