|
This code is called on my grid view event , I want to open a new window on grid event. But on this page where this code is not working, it is not working for any control , be it simple button click , and on other pages, it is working on same events, I wonder whats so special in this page , I thought it must be ajax creating problem but now i have removed its reference from the page with same result happening.
|
|
|
|
|
using a script library would be a better approach.
are you sure the grid event is being called? check the function name. Is it a typo?
only two letters away from being an asset
|
|
|
|
|
on first aspx form i have gridview where i must select one row and show that row on the other aspx form . Thanx
|
|
|
|
|
|
I use this VB.NET code in my webproject to export a datatable to an Excel file. The characters é,ä, ... are shown in the Access database, I fill the datatable with the content of a table from the database and export it to Excel. In Excel é, ä, ... are replaced with strange characters... Does anyone know why this happens?
Inherits System.Web.UI.Page
Dim oConn As clsRoot
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim oLog As New clsLog(clsLog.LogLevel.Warning, Server.MapPath("log/contacten.log"))
oConn = New clsRoot(Server.MapPath("link/contacten.udl"), oLog)
oConn.Open()
Dim dt As DataTable = oConn.getContacten()
Response.ContentType = "application/ms-excel"
Response.AddHeader("Content-Disposition", "inline;filename=contacten.xls")
Response.Write(ConvertDtToTDF(dt))
End Sub
'Converts a DataTable to Tab Delimited Format
Private Function ConvertDtToTDF(ByVal dt As DataTable) As String
Dim dr As DataRow, ary() As Object, i As Integer
Dim iCol As Integer
'Output Column Headers
For iCol = 0 To dt.Columns.Count - 1
Response.Write(dt.Columns(iCol).ToString & vbTab)
Next
Response.Write(vbCrLf)
'Output Data
For Each dr In dt.Rows
ary = dr.ItemArray
For i = 0 To UBound(ary)
Response.Write(ary(i).ToString & vbTab)
Next
Response.Write(vbCrLf)
Next
End Function
|
|
|
|
|
hai all,
In my project,I have developed an application using ajax anabled website..
When i place the Gridview Control inside update panel.. Paging is not
working..i.e ..in first page alone it is displaying the paging..when i go to
some other page(like 2 nd or 3 rd page).. the paging is not working..its
visibility becomes false...the script manager property is placed in the
master page.. how can i overcome this issue???? please help... thanks in
advance....
with Regards,
Imthiyas Ahamed.A
|
|
|
|
|
Have you set UpdateMode="conditional" to the update panel
bEst rEgard
pAthan
please don't forget to vote on the post that helped you.
|
|
|
|
|
No i didnt do that..should i have to set that condition
with Regards,
Imthiyas Ahamed.A
|
|
|
|
|
ya i tried that by stting update mode="conditional".. but still i am getting the same problem
with Regards,
Imthiyas Ahamed.A
|
|
|
|
|
Try this Code:
Protected Sub GridView1_PageIndexChanging(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewPageEventArgs) Handles GridView1.PageIndexChanging
GridView1.PageIndex = e.NewPageIndex
fillgrid()//call the fillgrid() function.
End Sub
God is always with you.
|
|
|
|
|
hi in my application i aam using two dropdownlists.
in pageload i pass values for first dropdown and select index of the first dropdown i display second dropdown values.
but without refreshing the page how can i get values into second dropdown.
regards
venkat
|
|
|
|
|
Put both dropdownlist in update panel
bEst rEgard
pAthan
please don't forget to vote on the post that helped you.
|
|
|
|
|
Thanks Imram
it does work, im going to give u maximum point
Sarfarj Ahmed
|
|
|
|
|
Sarfaraj Ahmed wrote: Thanks Imram
Always Welcome
please don't forget to vote on the post that helped you.
|
|
|
|
|
set Autopostback property=True of Dropdownlist1...
|
|
|
|
|
Arif patel wrote: Autopostback property=True of Dropdownlist1
It will refresh the page...Which Venky dosen't want
|
|
|
|
|
Hi kasi,
Another way is using javascript.
1. create a dropdown list using javascript
2. From selected item of dropdownlist1 load items into the dropdownlist2.
To create a dropdown list in JavaScript
you can use the following code:
Select a page
JavaScript FAQ
Numbers
Strings
Navigation
Colors
JavaScripter.net
Just change the menu items and the corresponding URLs to whatever you want. You can use absolute URLs (like http://www.javascripter.net) as well as relative URLs (like mypage.htm).
for loading items in dropdownlist2 the code must be written in load event of that page......
Hope this idea will work.....
Regards,
Syed Arif.
|
|
|
|
|
I have been trying to insert data into a database using textboxs and sqldatasource, the data comes from the user simple things such as name address,etc and is then stored in the database. I do not want to use datagrids and tables the information will never be shown to anyone it's for creating a simple mail list. If anyone knows any good articles on this please let me know.
|
|
|
|
|
Hello every one,
I have a problem in my web service.
Case: I
web service was host on "ABC Server"
and this web service have [WebService(Namespace = http://abc.com/)]
Case: II
now i have changed and host the web service on "XYZ Server"
and still this web service have [WebService(Namespace = http://abc.com/)] old server host name space.
then i am getting an error -->
"Server did not recognize the value of HTTP Header SOAPAction: http://abc.com"
does i have to change Namespace to [WebService(Namespace = http://xyz.com/)]
<big><code>Error : Server did not recognize the value of HTTP Header SOAPAction: http:</code></big>
Please advice me.
Pavan Pareta
|
|
|
|
|
Hi there,
i have the folder with may word document am using the below function to send word document to a PDFserver and convert into PDF, for example i will send(infile,outfile)-> (test.doc,test.pdf) but when i send the request it converting all the word file inside the folder any suggestions??
private string CallAsService(string inFile, string strPdfFunctionName, string strApproverName)
{
XMLHTTPRequestClass oXMLHTTP = new XMLHTTPRequestClass();
string [] parsePath = inFile.Split('\\');
string strDocumentNumber = parsePath[ parsePath.Length - 3].ToUpper().Trim();
//string serverUrl = ConfigurationSettings.AppSettings.Get("YtiPdfUrl").Trim()+ "?inFile=" + Server.UrlEncode(inFile) + "&DocNum=" + strDocumentNumber + "&do=" + strPdfFunctionName.Trim().ToUpper() + "&Name=" + strApproverName ;
string serverUrl = _pdfServer1.Trim()+ "?inFile=" + Server.UrlEncode(inFile) + "&DocNum=" + strDocumentNumber + "&do=" + strPdfFunctionName.Trim().ToUpper() + "&Name=" + strApproverName ;
oXMLHTTP.open("POST", serverUrl, (object)false,(object)"",(object)"");
oXMLHTTP.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
oXMLHTTP.send(null);
return oXMLHTTP.responseText;
}
regards
ybasha
|
|
|
|
|
I want to enable a faxing service in my site so that clients could sent faxes to me with a copy as email. Please help me with some guidelines or other links that would be helpful.Also send what are the requirements for including a fax service in my site. Thankyou.
|
|
|
|
|
SreejithAchutan wrote: I want to enable a faxing service in my site so that clients could sent faxes to me with a copy as email
Check in the Fax Machine Manual how it can be programmatically controlled by giving Instruction. I guess you have to write a windows service which will Send and Receive FAX ( which will acts a Middleware between your webapplication and FAX machine ).
Regards - J O H N -
|
|
|
|
|
Hello all,
in my master page is having body onkeydown event. Which code written using Java Script. In this JS code are avoiding Enter key press.
I have one webpage1.aspx pages, it is refers to that master page. In this aspx page there is one multiline textbox txtBox1
My problem is in multiline textbox enter key is not working, because masterpage is having body onkeydown validation, so that i am unable to press enter in my multiline textbox
I need to avoid this onkeydown event only for webpage1.aspx. How can i do this.
plz give me any solution. any sounds will be appritiated.
Ramana
|
|
|
|
|
dataminers wrote: Do you have any idea about this?
No Idea... Did you search in the Google?
Regards - J O H N -
|
|
|
|
|
??
Yes. Go search.
"More functions should disregard input values and just return 12. It would make life easier." - comment posted on WTF
"This time yesterday, I still had 24 hours to meet the deadline I've just missed today."
|
|
|
|