View Complete Post
Hi All
I have seen this question asked and answered several times but it doesn't seem to be the question. I have.
I have just created a new project I renamed form1 to FrmMain and then I created a new form by clicking add new form and I named it Report
I then went to my FrmMain and dropped a button on there from the toobox. I now need to open Report.cs when I click the button.
I have tried Report Form2 = new Report(); Form2.ShowDialog();
But all that does it open a new FORM and its not my Report Form. It also just keeps opening new forms every time I click the button. My thought is that the user will enter a ID then click the button then the report form will open and I will then create a query to populate a data gride or view using the ID form the text box on FrmMain.
Please help.... I am new to this so shoot it straight as if this was your first forms application that you created.
Thanks
I want to catch the html button click event on a class file including html text box value..
<p><input name="" type="text" value="Enter Name*"/></p><p><input name="" type="text" value="Enter Email*"/></p>
<p> <input name="Input" type="submit" value="Submit" /></p>
plz tell me how can i do this..
How can I open a XML file from the location mentioned in the web.config file using Hyperlink control?
I have an aspx page with hyperlink control and in code behind I do the following:
hypLink.Text = "Transformed XML"; hypLink.NavigateUrl = ConfigurationSettings.AppSettings["OutputXML"];
Web.config file looks like:
<add key="OutputXML" value="C:\Working\MyTest\XMLTransform\App_Data\Transformed.xml"/>
This code is not working. In IE, it doesn't do anything but in FF, it throws a error box with message that the "FF doesn't know how to open this address..."
hi all,
Here's my code
If rdvalue = "Dept" And ddldeptr.SelectedValue <> "" Then Button1.PostBackUrl = "~\Reports\Hrmis\CrvGpDept.aspx?fromd=" & txtfrom.Text & " &tod=" & txtto.Text & "&dep=" & ddldeptr.SelectedValue & "" ElseIf rdvalue = "Sect" And ddlsectr.SelectedValue <> "" Then Button1.PostBackUrl = "~\Reports\Hrmis\CvGpSect.aspx?fromd=" & txtfrom.Text & " &tod=" & txtto.Text & "&sec=" & ddlsectr.SelectedValue & "" ElseIf rdvalue = "Desig" And ddldesigr.SelectedValue <> "" Then Button1.PostBackUrl = "~\Reports\Hrmis\CrvGpdesig.aspx?fromd=" & txtfrom.Text & " &tod=" & txtto.Text & "&desi=" & designation & "" ElseIf rdvalue = "Emp" And txtempidr.Text <> "" Then Button1.PostBackUrl = "~\Reports\Hrmis\CrvGpemp.aspx?fromd=" & txtfrom.Text & " &tod=" & txtto.Text & "&emp=" & empid & "" Else Button1.PostBackUrl = "~\Reports\Hrmis\CrvGpall.aspx
Hello, all.
I am running SQL Server Management Studio 2008 on a Windows 7 Enterprise machine here at work. I am not sure when this started happening, but now, for some reason, when I double-click on a SQL file in Explorer, or from the jump list for SSMS (which I have pinned to my Windows 7 task bar), SSMS will open, but will not load the file in question, nor will it bring up a logon screen to connect to a DB. I tried unassociating the .SQL extension and then re-associating it using "Open With" and it worked the first time (from the Open With), but then immediately reverted back to its old behavior. Very annoying.
For now I just open SSMS first (which pops up a logon screen and things proceed normally), but that kind of defeats the purpose of having a jump list or a file association. Has anybody run into this before and can anybody suggest a fix or what's wrong?
Thanks in advance for any wisdom anyone can provide.
I have 3 buttons as a part of menu in my MainWindow.xaml file. On click of these I have a Common Grid that gets populated with the data from my database. Now for these i have set various Control templates with 3 different keys for my 3 different options. Coming to my main point. When I include Click events under my Gridview and compile, it doesn't let me to do so cause of error. And to overcome this i made use of a Code behind C# Class file for my resourcedictionary (styles.xaml) that is styles.xaml.cs. I got this from http://stackoverflow.com/questions/92100/is-it-possible-to- set-code-behind-a-resource-dictionary-in-wpf-for-event-handling But As soon as i follow all procedure mentioned at above link it says me ... Error Message: 'X' does not contain a definition for 'show' and no extension method 'show' accepting a first argument of type 'X' could be found (are you missing a using directive or an assembl
Hi,
We need to have a button on our Infopath Web Form that will prompt the user to browse for a file and this would add a link to the selected document.
We don't want to attach a file since the file is already someware on the Sharepoint site. The "Insert Hyperlink" control is out of the question, we don't want users to cut and paste the URL. We can't refer to a list to create a dropdown of the files since it can be on several lists.
I don't mind doing code behind, custom controls, rules or anything that can acheive this. I already have plenty of coding in the form anyway.
Thanks for any help.
I have a WPF application that does a number of things. When running the app, I can go to File > Open, browse to a file, and open it in the app. Fields on the UI are updated with values from the file and everything works great.
The file I am opening contains binary data and has a custom file extension that is associated with my application. The problem is that if I DON'T have the WPF application running and I double click one of my associated files, it simply opens the application. I would like it to open the application and then load the contents of the file I clicked on. How can I go about doing this?
I have looked into using the Application_Startup event handler in the App.xaml.cs but cannot get the filename when double clicking on it as my StartupEventArgs are empty. However, the sender.ToString from Application_Startup handler returns "MyCompany.MyApp.App". How can I get the filename and go about loading it?
Another thing is that if I put a breakpoint in the Application_Startup event handler and double click my associated file, I never hit the breakpoint. The only way I hit the breakpoint is when I run the application from the IDE. I would like to be able to double click a file, then hit the breakpoint so I can do some debugging.
Thanks in advance.
Hall of Fame Twitter Terms of Service Privacy Policy Contact Us Archives Tell A Friend