|
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
|
|
|
|
|
If I understand correct, you are trying to share ROOT application's session with the VIRTUAL directory application. This is not possible in .NET Framework level. But there are third parties and custom method to achieve it. Google it.
|
|
|
|
|
Hi All,
I have 3 seperate select queries in a stored procedure, when I get the stored procedure in my code behind in the cs file in to a dataset. There I want to directly access by using the table name instead of table index. Is there any way to achieve this task.
Thanks & Regards,
Md. Abdul Aleem
NIIT technologies
|
|
|
|
|
Assign a table name after you fetch the data from stored procedure to the dataset, like ds.Tables[0].Name ="SomeName"
WWW, WCF, WWF, WPF, WFC .... WTF
|
|
|
|
|
I know that way but, if there is any means of giving the table name from the query itself or stored proc itself only. That is far better.
Thanks & Regards,
Md. Abdul Aleem
NIIT technologies
|
|
|
|