|
I tried debugging the code in the code behind. It never breaks. There is no error message besides going to page cannot be displayed.
|
|
|
|
|
Perhaps it's timing out ?
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
It uses an xml file for its sql quiries and log4net for logging. I am thinking the datagrid can't handle so many records on a postback. Maybe, if I were to provide paging to the datagrid. It may not even be the datagrid.
|
|
|
|
|
I have a question regarding the licensing of the code available on this website.
I am working on an internal tool for a company and there was some code that I'd like to use for building a Tree in ASP .net. However since my team is really strict about licensing, I was wondering if I can get some information regarding it.
Thanks
|
|
|
|
|
My understanding when I submit code here has always been that it's 100% free to use. Your best bet is probably to ask the author, as the articles are all submitted by individuals who mostly have no other affiliation with the site. You do that by asking on the forum for the article, although I think I saw that you did that earlier already ?
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
I really appreciate your help with:
I want to pass the an object (or value) from server side (page behind code) to client side (javascript in aspx page) in vb.net.
thanks for your help
Don
|
|
|
|
|
Don,
I am not clear with your question. My apl for this. Could you please explain it? May be i'll be able to help you.
|
|
|
|
|
The way to do this is to insert it into a script, something like
string script = "var myVar = '" + myControl.ClientID + "';";
RegisterClientScriptBlock(script);
or in your aspx
var myVar = '<%#myControl.ClientID%>';"
In the first case, you need to add a script block to the string, top and bottom, and in the second, you need to put it in a script block. You can pass any value you can turn into a string, I'm just illustrating using a control's client side id, as that's the value I find is mostly often needed, for UI or AJAX stuff on the client side.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Hi Christian Graus
If you have a minute, Could you please provide some good example?
Thanks
Amit
|
|
|
|
|
I'm not sure how you mean, what better example do you need ?
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Does the LoadComplete event get skipped for User Controls? I've hit this issue and worked around it for the most part but now it's just plain getting annoying. Is there an equivalent event for user controls?
Thanks,
Keith
|
|
|
|
|
Hi
I am trying to create a datagrid with controls bound to each records column, I have made the following declaration for the button
<asp:GridView ID="dataGrid1" runat="server" DataKeyNames="id" >
<Columns>
<asp:ButtonField Text="Delete" buttonType="Button" commandName="Delete" />
</Colummns>
</asp:GridView>
I have also created the necessary subroutine, which should be executed when button is clicked, but i can't get the buttons to run the sub, when i click on them, the sub has the following declaration below
Any Suggestions forum
Thanks in advance
boy
Sub DataGrid1_DeleteCommand(ByVal s As Object, _
ByVal e As DataGridCommandEventArgs)
Dim connectionString As String
connectionString = "Server=lo; uid=; pwd=;database=test;"
Dim conn As MySqlConnection
Dim cmd As MySqlCommand
Dim Id As Integer
Id = CInt(e.Item.Cells(0).Text)
If Id <> Session("CustomerIdToDelete") Then
lbl1.Text = _
"Press the Delete button again if you want to " & _
"delete customer id #" & Id.ToString
Session("CustomerIdToDelete") = Id
Return
End If
Session("CustomerIdToDelete") = -1
conn = New MySqlConnection(connectionString)
cmd = New MySqlCommand("sp_myDelete", conn)
cmd.CommandType = CommandType.StoredProcedure
cmd.Parameters.Add("?sp_Id", SqlDbType.Int).Value = Id
cmd.Connection.Open()
cmd.ExecuteNonQuery()
cmd.Connection.Close()
displayResults()
End Sub
|
|
|
|
|
You are missing runat="server" in the buttonfield
Hope that helps.
Ben
|
|
|
|
|
Thats not a valid operation in a buttonfield apparently, guessing because its nested in the datagrid
|
|
|
|
|
Ah, It looks like your method you created doesn't have any handels on it. so it is not linked to any event. Most likely you need to add something like handels gridview.RowCommand
you would also want to add some code in your method that does something like:
if e.commandName = "Delete" Then
So that your code only runs when a delete command is passed to the method.
Hope that helps.
Ben
|
|
|
|
|
still not much joy it doesn't like the handles statement, can't track down my command thru the windows, jus says signature not recognised
|
|
|
|
|
Go to your aspx.cs file where your datagrid is located. Then in the left drop down find the datagrid control. Then in the right dropdown you should be able to select the datagrid command event. When you select it, it should create the method for you. Take your code from the method you created and put it in the auto generated method.
Hope that helps.
Ben
|
|
|
|
|
Hi ,
I m using a webservice to copy a file to a remote server. When i do that i m getting ' Access to path denied' error. Pls let me know what permission i need to give. My OS is windows 2000.
I tried giving impersonate = true in web.config.
Thanks in advance
Priya
|
|
|
|
|
Your webservice is running under an application pool. The user that the app pool is running as needs rights to write to that remote server. I would suggest creating a new app pool that only the web service will run under. Then you could create a specific network user that has just the correct rights to write to your remote server.
Hope that helps.
Ben
|
|
|
|
|
Hi
how can i call server side function on onblur event of textbox.
i write this tag but it gives error.where i am
going wrong. onblur=<%# checkname() %>
plz help
df
|
|
|
|
|
Your only bet would be to use ajax. Normally you can not call sever side functions from javascript. The javascript is running on the local client not on the web server.
Ben
|
|
|
|
|
Yes, me too looking for the same but hardly found any proper answer. Please provide some ans.
|
|
|
|
|
Hi,
I have created a menucontrol in asp, at the moment you must click on the text to make your selection, i would like to know if there is a way to make it so that when you click anywhere in that menu items panel it will make the selection as havin to click on the text is not very effective,
thank you
gav
|
|
|
|
|
Hi,
I asked this same question sometime ago and the good folks here gave me the answer, so it's only fair to pass it on
The problem with the bog standard Menucontrol is it's based on tables, and so only support clicking on the text. However, there is a relatively easy way to sort this out...
CSS Freindly Control Extender!
Check out this link: http://www.asp.net/cssadapters/[^]
|
|
|
|
|
I have been playing with System.Diagnostics and am able to get the event logs from the pc. Can i get other information like CPU usage and Hard Drive Space?
Also Can I get this for multiple server on my network?
Thanks
|
|
|
|