|
could you please post the error message you're getting?
|
|
|
|
|
Thanks for you immediate reply........
Here is the error !!!
'System.Web.UI.WebControls.GridViewDeleteEventArgs' does not contain a definition for 'Item'
How do I retrieve PlayerID from the GridView?
Thanks
Sanjeev
|
|
|
|
|
San, that is weird, it is the sam way I do it (in VB.net) under the DataGrid Delete or Edit item methods (ASP.NET 1.1) , honestly I never worked with an ASP.NET 2.0 GridView object before.
Sorry! 
|
|
|
|
|
I want to pass TWO parameter to crystal report but it is always second one applied , I'd be pleased if anybody help me.Thanks
Mazy
"One who dives deep gets the pearls,the burning desire for realization brings the goal nearer." - Babuji
|
|
|
|
|
Hi,
A simple question....
In my aspx page, i am having some LinkButtons, with CommandName property. When i click a control, the page will post back.
I wish to know, which control is the source of this Postback, during Page_Load event iteself? NOT in that LinkButton's Command event.
How to perform this?
Regards,
Jay
|
|
|
|
|
|
Hi,
It works fine. I ve just used C#. But i have another query.
It says that,
Dim ctlName As String = targPage.Request.Form("__EVENTTARGET")
does not work if the postback is caused by standard buttons.
can u explain me the reason.
Thanks.
Regards,
Jay
|
|
|
|
|
hi
i need to get a value of html hidden control which is not set to runat server and i also dont have its id only name is getting.
Request.form["refid"] is not working. so
can u sugges some idea
regards
max
|
|
|
|
|
add runat="server" (from the html view) as a property of your hidden field, it will continue to work as a hidden field and it will allow you to read its value in the code behind. It might have a different way to solve this issue but this worked for me. Let me know if it works for you.
|
|
|
|
|
Dont mistake me, i have an small doubt, did you declared the tag inbetween the tags???? Because all other things are correct.
Know is Drop, Unknown is Ocean
|
|
|
|
|
Exelioindia,
Yes; like I said on my reply, it might be a different approach to solve this issue but this worked for me.
|
|
|
|
|
If you have put the hidden field inside the form that you are posting, you can get the value using Request.Form.
---
b { font-weight: normal; }
|
|
|
|
|
it will be generated as a System.Web.UI.HtmlControls.HtmlInputHidden and you can acess (get/set) its value using: fieldName.value.
David
|
|
|
|
|
dgonzale wrote: it will be generated as a System.Web.UI.HtmlControls.HtmlInputHidden and you can acess (get/set) its value using: fieldName.value.
Only if you add the runat and id properties to the element. Otherwise the element is treated as plain text by the server.
There is no need to make a server element of it to access the value that it sends in the post.
---
b { font-weight: normal; }
|
|
|
|
|
Ooops! Yes you're right, i forgot about the id property, thanks Guffa.
David
|
|
|
|
|
Hi to all,
I need to POST To A Different Site in asp.net (vb.net) after users enter required data filds in a form. Specifying action (containing the URL of the site) and the target (_blank) does not help, it opens my site again.
I’ll appreciate any help,
Regards,
David 
|
|
|
|
|
in the form's action specfiied fully qualified URL of the page which it has to call such as
<form method="post" action="http://callingsite.com/authen.aspx">
and verify the field/value names that you are passing to the page are similar or not.
If this one not a solution, be specific of what are you doing and how you are doing it?
|
|
|
|
|
Hi Rao, thanks for such a prompt reply.
I tryed this already and it opened my application again on the new browser window.
<form id="Form1" method="post" runat="server" action="http://callingsite.com/authen.aspx" target="_blank">
Fields were identified as requested by the target site according to a sample HTML form I found. I also tryed with plain HTML input objects an a plain HTML form and it worked, since I'm inheriting from a base form class, this will not work.
David
|
|
|
|
|
remove runat="server" attribute
|
|
|
|
|
Like I said, I tryed using a PLAIN HTML form and it worked but this will prevent the rest of the objects in the form to work, besides I'm inheriting the form from a form base class and this won't work either .
Can I have a ASP.NET form object and a PLAIN HTML form at the same time? I would wrap any object inside the ASP.NET form and the 2 other fields inside the HTML form.
|
|
|
|
|
|
Thanks Jorsh, I'll check the link and I'll get back to you with the outcome if positive.
|
|
|
|
|
Hi
if any body could help in solving my problem.
my problem is when i am clicking hyper link in asp.net to open a pdf file,it unable to open why?
even when i am try to open using window.open method using javascript,it unable to open.displaying a small image on inernet explorer on the left side saying done when i click that it display a box saying Access Denied.
plz help me
hussamuddin
|
|
|
|
|
What do you want to do exactly?
Whether you want to display the file or download.
If you want to display the .pdf on the client side and there is a probability that user may not install it on system. In that case add download acrobat-plug-in.
For downloading ..........
Dim dwnURL As String = CType(sender, LinkButton).CommandArgument<br />
If dwnURL.Length > 0 Then<br />
Dim filepath As String<br />
filepath = System.Web.Hosting.HostingEnvironment.MapPath(dwnURL)<br />
'Check whether the download file exists or not. if does not exists, send auto-generated email to the admin specificying<br />
'the at which URL it occured and the file which is not found.<br />
If Not System.IO.File.Exists(filepath) Then<br />
Session("FNN_AbsolutePath") = filepath<br />
Session("BackURL") = Request.UrlReferrer<br />
Response.Redirect("~/BrokenLink.aspx")<br />
End If<br />
Dim onlyFileName As String = System.IO.Path.GetFileName(filepath)<br />
' Open File<br />
If Not System.IO.File.Exists(filepath) Then<br />
' popFileNotFound.Link = "" ' ResolveUrl("~/admin/email.aspx")<br />
'popNewMail.Title = GetGlobalResourceObject("mail", "newMail")<br />
' popNewMail.Message = String.Format(GetGlobalResourceObject("mail", "newMailMessage"), _newMailCount.ToString())<br />
popFileNotFound.AutoShow = True<br />
popFileNotFound.Visible = True<br />
Exit Sub<br />
End If<br />
Dim fs As New IO.FileStream(filepath, IO.FileMode.Open)<br />
Dim bytes(fs.Length) As Byte<br />
fs.Read(bytes, 0, fs.Length)<br />
fs.Close()<br />
' Send the file as Response<br />
Response.AddHeader("Content-disposition", "attachment; filename=" & onlyFileName)<br />
Response.ContentType = "application/octet-stream"<br />
Response.BinaryWrite(bytes)<br />
Response.End()<br />
End If
|
|
|
|
|
thanks for replying my mail
the problem what i am getting is i was unabel to open a pdf file link from internet explorer i am using winxpsp2 with IE sp2 when i am clicking the hyper link it unable to open the pdf file.Even it unable to open with window.open method.i used the above method i am getting a error "Thread was being aborted." but the problem is my page search is been stoped with blank,after opening the pdf.
hussamuddin
|
|
|
|