473,804 Members | 3,228 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Permission failure on save/cancel button press

This happened last week and it's happened again today.
Last week it suddenly started working after a reboot of a server - we tried rebooting that server and it didn't help so it was probably a coincidence.

It comes up with a connect window asking for user name and password to connect to websvr.xxxx.com ).

We just want any ideas about what to look at.

We have an aspx and aspx.cs.

The aspx has
<asp:button id="btnCancel" onclick="btnCan celEvent" Runat="server" Text="Cancel" Font-Bold="True" Font-Size="8" Font-Name="verdana"> </asp:button></TD>

and the aspx.cs
public void btnCancelEvent( Object source, System.EventArg s e)
{
//Handle the cancel button click event
ViewControls(fa lse);
lblMsg.Text = "";

}

and

private void Page_Load(objec t sender, System.EventArg s e)
{
// Put user code to initialize the page here
if (!IsPostBack)
{
GetData();
ViewControls(fa lse);
specialSecHeade r.TitleText = "Special Security Pricing";

}
userName = User.Identity.N ame;
if (userName.Index Of("DOMAIN") > -1)
{
string myString = userName.Substr ing(10);
userName = myString;
}
}

When the cancel is pressed it comes up with a connect window asking for user name and password to connect to websvr.xxxx.com ).
The same thing happens with another button handled in the same way (save).

To display this page it has had to execute an addnew which looks like very similar functionality.
Anyone any idea about what to look at?

Nov 18 '05 #1
0 996

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
2360
by: LucaJonny | last post by:
Hi, I've got a big problem! I've written an application in VB.NET that read some data from an Access database. I've used DataTable object with its events (RowChanging, RowChanged, etc.). When the user changes someting in a row and goes to another row, RowChanging event fire: Private Sub MyDataTable_RowChanging(ByVal sender As Object, ByVal e As
2
2253
by: icedgar | last post by:
am using the following script in the BeforeUpdate area of a main form. Private Sub Form_BeforeUpdate(Cancel As Integer) Dim strMsg As String strMsg = "Do you wish to save your changes?" If MsgBox(strMsg, vbQuestion + vbYesNo, "Save Record?") = vbYes Then 'do nothing Else
0
796
by: sql | last post by:
We have an aspx and aspx.cs. The aspx has <asp:button id="btnCancel" onclick="btnCancelEvent" Runat="server" Text="Cancel" Font-Bold="True" Font-Size="8" Font-Name="verdana"></asp:button></TD> and the aspx.cs public void btnCancelEvent(Object source, System.EventArgs e) { //Handle the cancel button click event ViewControls(false);
1
2683
by: user | last post by:
I have a parent aspx page with a few iframes. Each of the iframes show an aspx page with a datagrid whose rows all show editable entry fields at all times. The user can enter values into the parent page's form and into the iframes' datagrids and then press a save button on the parent page. My question is: from the parent's Save_Click event in the code-behind, how do I call the SaveGrid procedures I've written on each of the iframe pages...
2
1369
by: Rubber Steve | last post by:
Can someone please tell me what is wrong with my code. The add button works fine and when I save the added record is saved but for some reason when I edit and save the information that I edited will not save. I got my code straight out of my old VB.net book. The add button code whick works is: If btnAdd.Text = "Cancel" Then
0
1701
by: Stuart Whiteford | last post by:
Hi, I've got a basic web form, two textboxes, a couple of radio button groups, some required field validators, and a Submit and Cancel button. When the page loads, if I click the Cancel button, the server-side event fires as normal. However, if I click the Submit button (with no information entered) the client-side validators fire, but if I then decide to press the Cancel
2
11872
by: Matuag | last post by:
Hi All, I want to create following command buttons on a Form which users can edit. Save ( Save Changes made) Cancel ( Undo data changes) Exit ( Close form) I am using Macros for each of these commands and they work perfect.
4
3108
by: MaxMax | last post by:
I have a dialog box with a Cancel button that I want to be activable with the ESC key. In the form the Cancel button is connected to the CancelButton property. Now my problem is that the OnClick event of the button must be able to "stop" the closing of the form: I want to change the text of the Cancel button (that stops some working done in the background) to "Close" and only the second time it's pressed it will close the dialog.... But I'm...
2
4822
by: Eric | last post by:
Hi, I have a form that requires a save button to be clicked before closing the form. I would like a msgbox to pop up when the button is not clicked before closing. Can someone show me how i would code this? Thanks!
0
9708
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10589
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10340
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10085
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9161
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6857
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5527
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4302
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2999
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.