I've already tried putting the onClick in the HTML and I was getting an error that said it couldn't find transferButton_Click. I'll try changing the InitializeComponent() method to see if that works. Thanks for the tips!
--B
"Life is too important to be taken seriously" --Albert Einstein
Here is the event:
public void transferButton_Click(object sender, System.EventArgs e)
{
Server.Transfer(adminMenu);
}
I've tried breakpoints on the public and Server lines and neither one gets hit. I've also double-checked that the event is properly attached to the button...
Sorry for sounding a little ignorant, but I'm relatively new at this. How would I find out if the event is firing other than seeing if the event code is executing?
"Life is too important to be taken seriously" --Albert Einstein
Nope, nothing inside the event fires. I've put a breakpoint in there that doesn't get hit. The Server.Transfer line is the only code inside the event.
"Life is too important to be taken seriously" --Albert Einstein
I have an ASP button that I want to perform a Server.Transfer when clicked. For some reason, when the button is clicked, the _Click event isn't fired and the page just performs a postback. I've that my _Click event is properly attached to be button, so I know the binding isn'the problem.
Any...
I am trying to execute a startup script using Group Policy. The script runs for a Windows 2000 machine, but not XP. The script is a .bat file that has a CACLS command.
Any ideas why this would work for one platform, but not another?
--B
"Life is too important to be taken seriously" --Albert...
Excellent. At this point I'm looking for any help I can get!
I'll give this a whirl tomorrow and I'll let you know. Thanks again!
--Brad
"Life is too important to be taken seriously" --Albert Einstein
Bump.
This can't be too hard. The Business Objects support site doesn't have anything to help me out. All I need is a way to put a report viewer control in a Windows form WITHOUT Crystal Reports for .NET.
Thanks,
Brad
"Life is too important to be taken seriously" --Albert Einstein
While this may not be the best solution, it is a solution none the less. Whenever you load the page with the combobox, I would re-query the database so you have the most current values for the combobox. Something like:
private void PopulateCombo()
{
string sql = "SELECT DISTINCT...
Christiaan has the right idea.
command1.PerformClick() will call the click event.
--Brad
"Life is too important to be taken seriously" --Albert Einstein
I am starting to look at deploying reports using Crystal in our C# ASP applications. We have a stand-alone version of C# so we don't have Crystal Reports for .NET. We do have a full version of CR9. What do I need to do to be able to use CR9 in my applications? When I go to add a reference...
I always just use the same reader and command and change the .CommandText and other parameters on those. I have yet to run into a timeout, but I have never done more than three in a row.
"Life is too important to be taken seriously" --Albert Einstein
Are you sure your query is returning anything? You would have problems binding if you had an empty DataSet.
--Brad
"Life is too important to be taken seriously" --Albert Einstein
That's because you initialized the aLib variable in the Form1_Load event and it goes out of scope when the code in that event has finished executing. What you need to do is declare a private global variable called aLib and then set it up in the Form1_Load event like you are doing now.
using...
There is a little shortcut you can do to determine what your connection string will be. Create a file on your Desktop with a .udl file extension. If you double-click on it, you will get a window that will help you setup your connection string.
1. Provider tab - Pick the type of database you...
Most of my experience is with Access, so I'm not sure I can be of much help for SQL Server. Are you doing any work with the returned results from a query before executing the next one? If so, you may want to temporarily store all of your query results and do all of the work after they are done...
I just put this in a seperate .cs file so I could easily port it to other applications. The connection should stay open unless you explicitly close it. Closing a DataReader will not close your connection (in this case, only the DBLibrary.Disconnect() method will do that). If you stick it in...
It should be able to handle 11 connections. Just be aware of the fact that if everyone is on at the same time that your bandwidth is split 11 ways so you will probably experience some slowdown.
"Life is too important to be taken seriously" --Albert Einstein
Try uninstalling your .NET Framework and reinstalling it. It could possibly be a faulty download or install.
"Life is too important to be taken seriously" --Albert Einstein
http://www.tek-tips.com/viewthread.cfm?qid=1130697&page=1
See my post here. Should help you out for what you want to do.
--Brad
"Life is too important to be taken seriously" --Albert Einstein
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.