|
It's probably going to be easier to encrypt the file after sending it (but really not very useful). Is the same host downloading the file? Unless the same host that is downloading the file, you'll need to send some sort of encryption key.
This site will likely have all that you need to get started: http://www.devhood.com/Tutorials/tutorial_details.aspx?tutorial_id=489
A secure and useful method would be to open a secure communication using a public/private key pair and then the server could send an encryption code for the client to encrypt the file. The client would then send the encrypted file to the server and there the server could decrypt the file since it knows the encryption code.
That way is going to be a lot more difficult, but more practical.
Hope that helps.
|
|
|
|
|
Hi!!
All I am developing a site using ASP.Net I want to develop a site that generates textboxes,lables,tablecells at runtime ie is from database itself depending on the no of rows in the table in database. That is to get as many textboxes as there are rows in table. What I am doing right now is creating new text boxes in the code and then adding them to the cells and rows of the table control.All it is I am doing on PageLoad event. This all works fine.
The problem comes when I have to extract data from the form which is entered by user and insert into databse table onClick event of button. As it is in other function I am not able to access textboxes and its properties on that event function code. How do I get the properties of the controls generated in runtime and placed on the Table control?
while on click to get value code are as fallows
string Value = string.Empty;
Table tbl = (Table)Panel1.FindControl("table123");
for (int i = 0; i < NumberOfControl; i++)
{
TextBox txt = (TextBox)tbl.FindControl("DynamicTextBox" + i.ToString());
Value = Value + txt.Text + "";
}
Label1.Text = Value;
krishna veer singh
|
|
|
|
|
If you generate them after or during page load, they won't ever have viewstate. The best way to deal with this, is to store the text that's entered in a hidden control, perhaps as XML if you have many textboxes ?
Christian Graus
Driven to the arms of OSX by Vista.
"I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )
|
|
|
|
|
Probably you are adding these dynamic control in another control like place holder or panel, in that case you must use search dynamic controls in that panel or place holder, like:
VB Code
-------
Me.Panel1.Controls.Add(txt1)
Me.Panel1.Controls.Add(txt2)
must be read like
Me.Panel1.FindControl(txt1) instead of Me.FindControl(txt1)
Hope this helps.
Be a part of solution, rather then be a part of problem
|
|
|
|
|
Hi friends,
In my application i want to send datas from one form to other using Querystring. I dont know how to send multiple datas. I send it seperated by comma. But it will be sended as a single data. the code is
xmlHttp.open("GET","ResponserFile.aspx?sendData=" + id,nam,cel ,true);
CAn anyone correct it?
|
|
|
|
|
use
ResponserFile.aspx?id=3&name=nam&cell=cell
Now from server side get the data using
Request.QueryString["id"]
Request.QueryString["name"]
Request.QueryString["cell"]
|
|
|
|
|
Hi, I write it as u mention. But it does not work.
xmlHttp.open("GET","ResponserFile.aspx?id=3&name=nam&cell=cell,true)
Can u correct it ? Pls..
|
|
|
|
|
you are using a comma before true, this is not correct. The correct string will be like:
xmlHttp.open("GET","ResponserFile.aspx?id=3&name=nam&cell=cell&var=true")
in the above syntax id, name, cell, var are variables that will be called by:
Request.Querystring("id") etc....
& is user to join two variable so be careful to use values.
Be a part of solution, rather then be a part of problem
|
|
|
|
|
Hi,
Can i know frm where ur trying to send the query string vale?
Regards
Anil Pal
|
|
|
|
|
Actually i used it in Ajax. I send it to server side page for inserting datas in a table. I want to know how to send multiple datas? can u tell?
|
|
|
|
|
Hi
ResponserFile.aspx?id=3&name=nam&cell=cell
I think u r using correct format to send the multiple data through query. May be problem in syntax of calling in ajax.
Can u provide the exact error whcih u r receiving.
R u workking in VS 2003?
Regards
Anil Pal
|
|
|
|
|
Hi Karthick_gc,
Have you tried doing it like this:
xmlHttp.open("GET","ResponserFile.aspx?id=" + id + "&name=" + nam + "&cell=" + cel + "&bool=true");
I'm assuming that id, nam and cel are variables. Then to retrieve the data on the form you would use:
Request.QueryString["id"]
Request.QueryString["name"]
Request.QueryString["cell"]
Request.QueryString["bool"]
I hope this helps.
Ryan
|
|
|
|
|
Buy a book and read it, or learn to use google, instead of making stuff up.
Christian Graus
Driven to the arms of OSX by Vista.
"I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )
|
|
|
|
|
|
Can anybody please tell me how to get youtube video url through asp.net.It can be done with php easily.but i am not able to do the same with classic asp.
|
|
|
|
|
Hi,
you want to integrate youtube vedio in yr ASP application?
Regards
Anil Pal
|
|
|
|
|
yes. i need the virtual path of the flv file from youtube site.
|
|
|
|
|
hi,
Hmm... Check out below url
http://chiragrdarji.wordpress.com/2008/09/16/integrate-youtube-in-aspnet
Regards
Anil Pal
|
|
|
|
|
Thanks for your reference.
Is it possible to get flv file(or virtual path of the video in youtube site) of youtube video by supplying the youtube url.
|
|
|
|
|
Subarna4D wrote: It can be done with php easily.but i am not able to do the same with classic asp.
Well if it can be done in php, what is preventing you from doing it in asp? smells fishy!
Yusuf
Oh didn't you notice, analogous to square roots, they recently introduced rectangular, circular, and diamond roots to determine the size of the corresponding shapes when given the area. Luc Pattyn[^]
|
|
|
|
|
Thanx for ur reply.
Can you please give me the equivalent classic asp(vb scrpt) code for the php code below.
<?php
if (isset($_GET['url'])) {
$url = $_GET['url'];
$data = implode("", file($url));
if (preg_match_all("/&t=[^&]*/", $data, $matches))
{
$t = $matches[0][0];
$t = preg_split("/=/", $t);
$t = $t[1];
$v = $url;
$v = preg_split ("/\?v=/", $v);
$v = $v[1];
$youtubepath = "http://www.youtube.com/get_video.php?video_id=" . $v . "";
$youtubepath2 = "t=". $t . "";
echo "$youtubepath&$youtubepath2&.flv";
} else {
echo "null";
}
} else {
echo "No YouTube URL to process";
}
?>
I am searching it from last 2 months.
Thanks in advance.
|
|
|
|
|
Subarna4D wrote: I am searching it from last 2 months.
2 months
what a waste, you could have learned php to the point you could have understood the code.
Yusuf
Oh didn't you notice, analogous to square roots, they recently introduced rectangular, circular, and diamond roots to determine the size of the corresponding shapes when given the area. Luc Pattyn[^]
|
|
|
|
|
Hi,
How to use javascripts in sitemap
|
|
|
|
|
Hi,
I hv a user control. I want to use a method that is inside a BasePage which is inherited by System.Web.UI.Page. Bt I cant inherit this page into my usercontrol and use the method.
So i tried to create another usercontrol put the method inside it and inherit it to the required userControl. Bt it is giving error.
How i can inherit a usercontrol into another.
Thank you all for your help.
|
|
|
|
|
Hi,
It would be nice i f u explain certain things:
1. Whats is y r exact requirement?
2. What method u want to inherit/override and why?
Which user control u r trying to create window/web and where u want to consume it?
Regards
Anil Pal
|
|
|
|