|
I always use Request.UrlReferrer and it works. However, your browser may be set to not show the referrer.
|
|
|
|
|
Hi,
I have a grid wherein I have an image button for editing a row.But when I click the image button in the grid, the ItemCommand Event is not geting fired
Please help me...
Regards,
Sivaprasad
|
|
|
|
|
are you getting any error or simply it is not getting fired?
check the datagrid html part whether you have given it correctly.
Best Regards,
Apurva Kaushal
|
|
|
|
|
I am not getting any error. the evemnt is simply not firing
Regards,
Sivaprasad
|
|
|
|
|
I think you may have to check the html part correctly because there is no reason that if everything is fine then it won't work.
Best Regards,
Apurva Kaushal
|
|
|
|
|
hi Apurva,
i may be interupting you, but i need ur help.
u miss to answer my post.
my question is:
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
Aavesh
|
|
|
|
|
hi,
check whether the method name is referred for that item command event in the event properties of datagrid.
with regards,
susa
|
|
|
|
|
Every thing is fine....still the event is not firing
Regards,
Sivaprasad
|
|
|
|
|
|
Hi,
Have you assigned any command name to your button.
Also can you send some more details of code to find the problem.
|
|
|
|
|
hi,
i am having an application with two web pages.one page contains button ,on button click iam calling java script to open 2nd window .window.open("2nd.aspx").i want to pass values to 2nd window .how to pass values.
kamalnath
|
|
|
|
|
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.
|
|
|
|