|
you can use
1. query string with the new window url.
2. session variables
I prefer first one.
|
|
|
|
|
hi,
ok,then how to get that query string values in 2nd page
kamalnath
|
|
|
|
|
through request object.
string str = Request.QueryString["var_Name"].ToString();
Best Regards,
Apurva Kaushal
|
|
|
|
|
ok ,
i got it.thank u.
kamalnath
|
|
|
|
|
Hi,
I am trying to download files from a datagrid but am using a simple button to test if the codes work. The codes displays the download window but it is downloading my aspx file instead of my word document. I hope u could help me solve this error.
Thanks.
===== My Code =====
Dim objFile As System.IO.FileInfo
objFile = New System.IO.FileInfo("C:\project\Testing File.doc")
' Clear the current output content from the buffer
Response.Clear()
' Add the header that specifies the default filename for the Download/SaveAs dialog
Response.AddHeader("Content-Length", objFile.Length.ToString())
' Add the header that specifies the file size, so that the browser can show the download progress
Response.AddHeader("Content-Length", objFile.Length.ToString())
' Specify that the response is a stream that cannot be read by the
' client and must be downloaded
Response.ContentType = "application/octet-stream"
' Send the file stream to the client
Response.WriteFile(objFile.FullName)
Response.Flush()
' Stop execution
Response.End()
-- sam
|
|
|
|
|
You might want to add something like
Response.AddHeader( "Content-Disposition", "attachment;filename="testingFile.doc" ) you your headers to specify the download name.
|
|
|
|
|
Hi Developers
Is there any way to Read a Text File directly from its URL like http://www.codeproject.com/links.txt.....
If I download Text File on my local system then its Quiet easy to Read this file using Stream Reader object. But I want to read Text File without downloading it.
Thanks in advance
Lets work it Out.........!
|
|
|
|
|
|
Hello Everybody,
I'm Making a Project in Asp.Net 1.1 with VB.
I'm making a sitebuilder, so when any one will make any page for his Website then it must be
1. Auto Save using AJAX every 10 sec
2. View Archive pages like in gmail email messages.
thanx
|
|
|
|
|
can i use MS animation characters(merlin,etc) in asp.net website. if can send send help to how to use.
Amal
|
|
|
|
|
Hi! tere is a data grid. when we clicked on a row of datagrid on client side then we can get its row index by e.item.itemIndex in ItemDataBound event of datagrid. now i want to find cell value or cell index of a particular cell of a item when we clicked.
|
|
|
|
|
Nigam Samir wrote: now i want to find cell value
for this:
e.Item.Cells
Nigam Samir wrote: or cell index of a particular cell
for this:
e.Item.Cells[0].GetCellIndex
Best Regards,
Apurva Kaushal
|
|
|
|
|
Not working.
Suppose that we clicked at cell no 2 on row no 3. then i want to find cell index or value for cell no 2
|
|
|
|
|
Try this
In ItemCommand event ->
e.item.cells(1).text
1 is used for 2nd column.
|
|
|
|
|
not working! i want when i clicking on second cell then i will get its column index on a particular item
|
|
|
|
|
in one of my project i have to download some files in a particular folder from server to client machine. for that i have craeted an object of the directory and iterated through the files using the file system object. and set the hyperlink for each files to download. this code works very niceny in my pc and when i upload this program to server, and access the application using a browser i am unable to download the file. i can see the name of the files ans hyperlink but i can't download.
does anybody had similar experience. plese give any alternative methods.
i have tried response.redirect() also ; but not working.
can u give any example of download method of webclient object.
pls help thanks in advance.
|
|
|
|
|
I hope I am in the right forum. My data type column from the table ClockIn_Date is DateTime. The dropdownlist seems to select distinct date+time. I want to only select distinct the date and not inclusive of the time. What is the correct sql statement?
SELECT DISTINCT ClockIn_Date<br />
FROM dbo.Stud_ClockIn
thanks in advance. Much appreciated.
|
|
|
|
|
try this
select distinct convert(char(10),clockin_date,101) from dbo.Stud_ClockIn
and do reply
|
|
|
|
|
|
Its working fine.. What exactly are you using?
Best Regards,
Apurva Kaushal
|
|
|
|
|
Hello friends,
Hello i need ur help.i am a beginner in asp.net(c#) in my work i need to resize the image in the given height and width with out spoiling it's clarity or quality. Can anybody help me to find a solution.waiting 4 ur reply.
alex.
|
|
|
|
|
You may like to have a look at this article:
http://aspnet.4guysfromrolla.com/articles/012203-1.2.aspx
Best Regards,
Apurva Kaushal
|
|
|
|
|
Do not provide height and width of the image. It will appear in its original size iteself.
|
|
|
|
|
Hi,
I want to automatically generate a unique code based on a text field, eg if i type in carrots i want to generate CAR001. Anyone can help, will it work the same in ASP as with normal windows based forms?
|
|
|
|
|
How do you mean in normal windows based forms? You'll need to hold some record somewhere of the already used codes and write a bit of logic to create your code...
|
|
|
|