|
I think he meant "How can I make a GoDaddy clone".
lol, easy...should only take about 30 minutes. Jeez.
Surely there is some good GoDaddy sample code out there.
|
|
|
|
|
hi, everybody..
I want to retrieve client drives (in short file manager).
Actually i am trying with Directory.GetLogicalDrive() function, but its returns logical drive of the server in which asp.net website is installed. i want logical drives from client PC..
i.e. i want to client to be select some files or folder from own PC and by that path i upload whole folder or files without using fileupload control limitations.
im using this code right now
foreach (string drive in Directory.GetLogicalDrives())
{
TreeNode tn = new TreeNode();
tn.Text = drive;
tn.Value = drive;
TreeView1.Nodes.Add(tn);
}
thanks in advance...
please i m really stuck at this.
Best Regards,
Punit Belani
|
|
|
|
|
punit belani wrote: i.e. i want to client to be select some files or folder from own PC
You have to use any Scripting language to do so. Use Javascript to get the files on the client system and then bind it to tree or any control you want to show the result.
|
|
|
|
|
first of all thanks for reply.
i am new to scripting language, can you give some broader idea, for using java scripts for this purpose. or give some useful links.
|
|
|
|
|
|
thanks for reply, im now start working on it.
|
|
|
|
|
Hi,
I have two sites and I want to login from one to another. I have simply used Response.Redirect("http://www.site1.com?username=abc&password=123").
I have encrypted username and password for security.
I want only to confirm is this approach good or not?
Thanks
|
|
|
|
|
Dot-Net-Dev wrote: I want only to confirm is this approach good or not?
No, not at all!
Dot-Net-Dev wrote: I have encrypted username and password for security.
Username/password or any sensitive information should never be passed in querystring even if encrypted!
|
|
|
|
|
|
Set an authentication cookie. There's more than a few examples out there but here's a starting point for what I think you want:
http://msdn.microsoft.com/en-us/library/9wff0kyh.aspx
Never ever use querystrings for this sort of thing. You're exposing an entry point, encrypted or no, for someone savvy enough to mess with.
|
|
|
|
|
yes, @Sandeep Mewara is true. there are many ways for decrypt your encryption. never use sensitive data in querystring.
|
|
|
|
|
Hi
How can I use word press blog and forum in my asp.net web application
as I have less time and already we have blog and forum in word press so any way to do above.
thanks
You get the best out of others when you give the best of yourself.
|
|
|
|
|
Word press is written in PHP, I don't think you'll be able to easily integrate it into your asp.net app. There are plenty of other blogs you could use that are implemented in asp.net.
|
|
|
|
|
trilokharry wrote: How can I use word press blog and forum in my asp.net web application
What does it mean ? Do you want to integrate Wordpress Blog with your asp.net application ?
|
|
|
|
|
I am using Asp.Net 2.0. How can I avoid using back button after logged out from the page. Thanks in adv.
Balasubramanian K.
|
|
|
|
|
|
madhukk wrote: Disable back button using javascript
What if the user has disabled javascript?
What if user uses Alt+LeftArrowKey?
..Go Green..
|
|
|
|
|
Just search it in CP Q&A forum. This has been asked number of times:
one of the ways: Try...In you logout event:
protected void LogOut()
{
Session.Abandon();
string nextpage = "Logoutt.aspx";
Response.Write("<script language=javascript>");
Response.Write("{");
Response.Write(" var Backlen=history.length;");
Response.Write(" history.go(-Backlen);");
Response.Write(" window.location.href='" + nextpage + "'; ");
Response.Write("}");
Response.Write("</script>");
}
|
|
|
|
|
This is the second time today when I was answering a question and as soon as I finished answering, I saw your answer above me.
*I hope you got my previous message in the notification mail.
..Go Green..
|
|
|
|
|
Done! Sure... tell me how can i help..
modified on Wednesday, June 2, 2010 5:58 AM
|
|
|
|
|
|
The best option is
(1) check for a valid session object as the first statement to be executed for your page load event handler. If there is no session (or session object is null you write code to redirect user to login and force user to create a session. Assumption is, while logging out code is written to clear Session which has been created at the time of "Login".
(2) Sometime, developer creates "Base" page class and write this kind of session checking in base page itself so that every derived page class follows the same.
This way, you can set aside any dependency of javascript.
Hope it helps you,
Thanks,
Arindam D Tewary
|
|
|
|
|
Thanks to all.
Balasubramanian K.
|
|
|
|
|
Did web service come first or Dotnet?
Regards,
netquestions
|
|
|
|
|