|
Hy,
I have a requiremnet in wi=hcih i hav to get a file from the client server and place it in my local machine.
the file may be of any type
thanks in advance,
raghvendra Panda
|
|
|
|
|
With ASP.NET you will not be able to push the file, you must make it available for the user to download. Place a link to the file on your page.
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
You need to be more precise with your terminology. When you say "client" do you mean customer or do you mean person using the browser? Is your local machine hosting the web site?
My two best guesses of what you mean are
1) User on computer A (client) using his browser uploads to computer B (server hosting the site) which then sends to your computer C
OR
2)Some process on computer Q (the server) automatically sends a file to your computer P without you having to click to download
|
|
|
|
|
hai ,
iam experiencing a strange problem.
some of the setting have been changed in visiualstudio and suddenly every space is filled by (DOT).
for example the code looks as below shown.
.....public.int.pdate.(string.empname,int.salary,int.dep)
.........{
.SqlConnection.conn=new.SqlConnection(connstr);
conn.Open();
..try
{
string.st.=."update.INTO.Employee..( EmpName,Salary,Dep).".+"VALUES.(empname,salary,dep)";
every page it looks the same and even in javascript pages also..
any one who knows solution please message here..
thanks in advance
|
|
|
|
|
Ctrl+R+W
me, me, me
"The dinosaurs became extinct because they didn't have a space program. And if we become extinct because we don't have a space program, it'll serve us right!"
Larry Niven
|
|
|
|
|
|
Hello,
I am working on a school result processing project. I have one checkedlist control which have 3 options:(To choose paper code)
All
First
Second
to select the paper code option. All stands for all papers i.e. paper1 and paper2; while if any of other than "All" option checked by user; the respective action should be taken place. Suppose, user checked on option First, then all records whose papercode <> 1; will be deleted by command.ExecuteNonQuery() and if user checked on Second, then all records whose papercode <> 2; will be deleted by command.ExecuteNonQuery(). If user checked on All or any of First/Second; no action is needed; because All option means no action required.
Kindly help to code this requirement or let me know, if i am not clear to explain my question.
Thank and Regards
Girish Sharma
|
|
|
|
|
Your problem is not very clear.Can you explain a bit?
What I understand, you need to delete the record if user selects first or second and dont need to do anything if user selects all. if yes then have check at serverside and take the action accordingly.
|
|
|
|
|
Hi Brij,
Thanks for your reply and time given to my problem. Let me once again clear it more:
If user selected "All" option with/without First/Second option then no action is required.
If user selected First only then
deleted those records whose papercode <> 1
Endif
If user selected Second only then
deleted those records whose papercode <> 2
Endif
If user selected First and Second
No Action required
Endif
If user selected All+First+Second
No action required
Endif
Means, only action required on selection of single "First" or "Second" option and wish to perfrom some delete operation on table.
Its vb.net 2005 project please.
Regards
Girish Sharma
|
|
|
|
|
I donno much about vb.net, but are you not able to check which all checkboxes checked at serverside?
|
|
|
|
|
hi, iam using asp.net2.0 with c#
in my gridview 1st column is checkbox control in template fileds
and iam using paging also. when user clicks the button ,all selected no of check boxes data has to be send in mail
can you give example which helps me
|
|
|
|
|
So what problem you are facing,on button click, iterate throgh the gridview rows and check the checkbox status and accordingly send the mail to all checked.
if facing any problem in sending mail then have a look
|
|
|
|
|
while iterating how i have to take that data and print as it is
can you give example which helps me
|
|
|
|
|
See, you need to prepare the format of mail as you already have all the data or you can read all the data from grid.So create mail body accordinly and send mail. and if you want the same html as grid then you can get the html as
StringBuilder sb = new StringBuilder();
StringWriter sw = new StringWriter(sb);
HtmlTextWriter textWriter = new HtmlTextWriter(sw);
grid1.RenderControl(textWriter);
string gridHTML= sb.ToString();
Now you have the html of grid as gridHTML and now use as you need.
|
|
|
|
|
hello all,
I have made a project in asp.net, in which there is need to have countDown timer using javascript .So, I have made a code for it. But it resets after very postback or you can say on every page refresh, Timer reset .
There must be static timer that should display some minutes and secs to remain .
Could anyone know the code of reverse timer for minutes and seconds that should not reset after page refresh.???
Thanks in advance
|
|
|
|
|
You must save the timer count on postback
and restore timer count when page reloads,
Use hidden field or cookie or the query
string to store the timer count value.
|
|
|
|
|
When the page loads, it checks for a particular cookie. If it is not found, it is the first time the page has been loaded: figure out the time to which you are counting down and set the cookie. If it is found, load it and start counting down again.
An alternative would be to store the time server-side -- the session object might be a good choice. If Session("Deadline") does not exist, the page is being generated for the first time; if it does, it contains the time. Use it to set a hidden field in the code that your Javascript will reference.
There are problems with either approach, but they should usually work.
|
|
|
|
|
HI all,
Iam working on chat application Module how i develop the chat application like gmail or Facebook style????
Suggest me good articles where i can learn and will get start.....
Regards
|
|
|
|
|
hi, iam using asp.net2.0 with c#,
in my textbox property textmode=multiline, so user can enter 4to 5 email ids
iam validating this textbox through regular expresiion validator but it is giving error message, so how to check for 4 to 5 email ids in textbox
can you give me example which helps me.
|
|
|
|
|
if there are multiple mailids and you donno the actual count then another way, go for custom validator and in the jas function you can validate each mail id using regex.
|
|
|
|
|
For Help please click on below link,
Link
|
|
|
|
|
If every address is on its own line, you can use the textbox's Lines property, like so:
For Each Line As String In TextBox1.Lines
If Not IsValidEmail(Line) Then
...
End If
Next
|
|
|
|
|
I have image control on my asp.dot page, i want to print that image. how can i do it? help please
|
|
|
|
|
You know 'window.print()' function will print the HTML content of the current page in the browser window.
Put the image in a DIV tag and then use the following code. The content of the DIV is written to a new window and then printed in this code.,
<script type="text/javascript">
function ClientSidePrint(idDiv)
{
var w = 600;
var h = 400;
var l = (window.screen.availWidth - w)/2;
var t = (window.screen.availHeight - h)/2; var sOption="toolbar=no,location=no,directories=no,menubar=no,
scrollbars=yes,width=" + w + ",height=" + h + ",left=" + l + ",top="+t;
var sDivText = window.document.getElementById(idDiv).innerHTML;
var objWindow = window.open("", "Print", sOption);
objWindow.document.write(sDivText);
objWindow.document.close();
objWindow.print();
objWindow.close(); }
</script>
|
|
|
|
|
hi iam using asp.net2.0 with c#
In the gridview 1st column is checkbox,in my gridview iam using paging , iam dispalying data from views so there is no primary key and displaying at page load event,
when user selects the check box that records are stored in database.
but when i selects the checkbox at 1st page then it is
storing all the records but when i selects the 1st page records as well as 2nd page records
then it is storing only second page records .
the selected records i have to display in other new page
iwant to store all the records what ever user has selects the checkbox.
can you give me example which helps me.
|
|
|
|