View Complete Post
i want to replace ok and cancel button of an alert message with YES an NO button in asp.net web application.When a user will click yes the data will be saved in the database and if user clicks that will act as a reset button and do not save the data in database and the control will move with as usual to the redirect page.Any pointers will be highly appreciated.I am usin g C# language.
MSDN Magazine October 2001
After clicking OK or Cancel from the OpenFileDialog, the calling form gets closed not allowing user to push OK on calling form to save changes. Strange thing is, if calling form is opened modeless from main form, this does not happen. But I do
not want this form to be left open modeless.
Here's the code:
Main Form opens form to change a file path
Private Sub AdvancedDatabaseConfigurationToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles AdvancedDatabaseConfigurationToolStripMenuItem.Click
Dim formDBPath As New frmDBPath
Private Sub btnBrowse_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnBrowse.Click
Dim openResult As DialogResult = Me.OpenFileDialog1.ShowDialog(Me)
If openResult = Windows.Forms.DialogResult.Cancel Then Exit Sub
Me.txtNewDBPath.Text = Me.OpenFileDialog1.FileName
When I step through in the debugger, I click OK on the OpenFileDialog, it returns to btnBrowse_Click sub and sets the textbox text, then control passes back to main form sub AdvancedDatabaseConfigurationToolStripMenuI
This is my second post. I am really new to infopath 2010, and need some help.
To display database information on the form, normally you drag the whole datafields to the form.
Then the form will auto generate the header row and data columns. When you PREVIEW the form,
the datas from the server will automatically be binded to the form.
My question is, is there a way not to auto bind the data when the form is loaded, and when the user
clicks a button on the form then this datas display on the form dynamically.
Really appreciate your help,
and since I am a newbie please instruct me with step by step, every details please.
-Wook Tae Jung (Mister Car Wash Inc)
I need to display a meesage Box with OkCancel button.So when user click "Ok" button I need to do something else nothing.
My web page is with ContentPage without html tag. So i dont know where to place my java script.
But i registered it when page load. When I clicked on the save button the messageBox does not appear and
with error " Expected ';' "
Can someone advise me on this..thanks.
I've successfully used the Excel COM objects in C# to extract the contents of the sheets. I then use this information in a datagridview.
Rather than just cycle through each cell for the values to build up what needs to be displayed however I used the Worksheet.UsedRange.get_value() method instead which returns a 2D array of objects containing the string values of the cells.
I've done this since going through each cell individually appears to slow things down considerably, especially when larger Excel files are being opened. I would like to also apply as much of the formatting as possible from the file too, however there
doesn't appear to be a clear way to extract formatting information in a similar way to get_value. I could go back to cycling through the cells, but this would probably incur an unacceptable loss in speed as a result.
Does anybody know how to retrieve formatting information using a way that's similar in terms of output to the way that get_value works?
i have an assignment , i have to capture a url which contain some hyperlink btn, i have to show the hyperlink btn text and their description
i am doing simple login page and i used to required field validator to validate user name and password text box.
and there are two buttons submit and cancel.
now i want to redirect this page to home.aspx after clicking on cancel button, but that two required fields validator get pop up and i get stuck in login page.
ÃÂ if anyone knows how to solve this problem please tell me..
thanks, in advance for your valuable time.ÃÂ
I have used the following codings to display the message box.
StringBuilder sb = new StringBuilder();
sb.Append(" Do you want save following records...');");
ClientScript.RegisterStartupScript(this.GetType(), "script", sb.ToString());
My requirment is to use the "Ok" button in the message box(alert box).
I have a function Save().
I mean if i click on the OK button in the message box, then it should call "Save()" function.
I need to add one more button : Cancel in the message box(alert box)
Please give a hint.
My Dev Environment is SharePoint 2010 on WIN 7. I have 2 users
1) Built in Administrator- Member of FARM Administrator
2) Dinesh02\Dd – Also member of FARM Administrator
Now when I Sign-in with my account and use Manage Web Application link, on the Top Ribbon none of Button is enabled. I can not create Web APP nor Extend it. When I select web application from list, some button are enabled but not all. Also I can see
role as Contributor
This does not happen When I sign-in with Built-in\Administrator account.