Web Forms :: Disabling The Popup Blocker?
Sep 18, 2010i'm using Window.open of java script to popup a window on clicking button. popupBlocker blocks the window.
Is there any way to Disable the popup Blocker programatically?
i'm using Window.open of java script to popup a window on clicking button. popupBlocker blocks the window.
Is there any way to Disable the popup Blocker programatically?
I want to add a pop-up aspx page without network guys to turn off pop-up blocker in IE8 of client pc. Which way to use, use javascript or Ajax?
View 4 RepliesI'm opening new window from Code Behind for that I'm using Code :
Dim newWin As String = ("<script language='javascript'>" + "window.open('msgstat.aspx' , 'Print', 'height=200, width=220, menubar=no, toolbar=no, scrollbars=no, resizable=no'); </script>")
ClientScript.RegisterStartupScript(Me.GetType(), "pop", newWin)
Now, how can I check from codebehind that Browser's Popup Blocker is enabled or Disabled and show such message.
I need to open a popup in the middle of my function, and in the popup i have the gridview control, i need to select one row in the gridview and after closing the popup it should come back to the same function and to same point where i opened the popup. i am using the model popup but this popup is populating after executing all the function, but i need to select one value and need to continue my function
View 3 RepliesI have read through a number of posts but cannot find solution to my requirement. I need
1. Use DeclarativeCatalogPart to list ALL my webparts. I do not want to use PageCatalogPart because I want the user to always see ALL web parts available in the catalog, regardless if they are closed or not.
2. Disable the checkbox in DeclarativeCatalogPart for the WebParts that already exist on the page.
I wrote all the code to determine if WebPart exists, but I cannot figure out how to get access to that checkbox next to each WebPart.
So we're building this website and we've decided to use forms security. We've added users and roles and put code in to control the display of certain functionality based upon User roles. It's all working great except for one thing.
Developers don't like to login to the website every time they want to test a page. So they do things like add a line to web.config like <allow users="*" /> right below <authorization >. This gets them past security, but then we get errors when we check User.IsInRole.
I know this can't be a new problem. How do development teams seemlessly turn forms authentication on and off while doing development?
I am trying to get a modal popup inside a modal popup?, also i want to fire the modal popup on a condition in a text change event of a textbox?...is this possible and can anyone give me directon on this
View 5 RepliesI want to allow users to click only once on button. In fact, the button is a user control:
[Code]....
That button control gives us access to OnClientClick property of lbButton. This button is used on other user control:
[Code]....
As you can see - i disable button on client-side and then return true (to do a postback). That's for only sample purposes. This code will disable my button but there will be no postback. If leave only "return true;" inside onclientclick script then i'll have my postback. The conclusion is - i can't do a postback if i disable button. The question is what's the reason of such behaviour and can i do any trick to over overcome this issue. I figured out i can hide button and still perform postback. But why it can't be disabled? There was already a thread on similar topic : [URL] but answers weren't satysfying. User Participant gave his solution there but i'm not fully understand his idea. Could someone explain to me why it can't be done my way and if it can be done by any other method?
I need to disable the edit command link if a record has links to other records within the tables.
I have a table that has worktype and that is captured when certain records are entered. So if a record exists with that value, then i want to disable the "Edit" link for that record within my gridview.
I want to provide them access to add more worktypes, but if they want to edit a worktype, i need to make sure its not used anywhere in the other tables, before they can edit it. For now atleast, because i will need to allow full editing and deletion functions for this table. how to do this or maybe suggestions on other things i can do to give them full functionality?
I am having a master page in which i am having two controls
LoginRegister I want these controls not to be visibled in my UserRegistration.aspx page but should be visible in other pages.How can I solve this problem.
I have a gridview that gets populated with database records. If a record's"Inactive" column is "1", I want to disable the checkbox as it is loading. I am trying
RowDataBound event, but app doesnt stop when I put a breakpoint in RowDataBound event.
I am trying to disable and enable hyperlinks on an aspx page using a button from another aspx page. I have an idea of having two buttons on one page labelled "disable" and "enable". clicking disable should disable a particular link on another page and clicking enable should enable that same link.
View 5 RepliesI would be glad to have any kind of assistance on the issue, I wanna automatically disable the browser history storing for asp:textbox control
View 3 Repliesi have a doubt regarding in my project...actually in my web form i have a submit button,cancel button,edit button...all are work fine but only one is not properly working ...if i click the edit button submit button will be disabled and dropdown box and update button will be enabled..in that dropdown list i displayed the employee code which is stored in the database..when the user select the dropdownlist employee code,the particular record will be displayed in the same page...but when i click the edit button submit will be disabled and update and dropdownlist will be enabled..when i select the employee code in the dropdownlist the particular record will be displayed and update button and dropdownlist will be disabled.i want both the controls should be enabled
View 1 RepliesI was just wondering if there isa way to disable GridView rows from being highlighted with the mouse when user clicks and drags over the row.
I was thinking this may be possible by disabling the onclick atttribute but I use this as each row is a hyperlink to another page.
Just trying to think of an alternative method; is it possible to change the color to be somehow transparent on the drag?
how to disable alpha input to text box..??
View 1 RepliesI have a gridview with Templatefields checkbox, equipname,rate1,rate2 ,rate3,rate4.The equipname name field is a dropdownlist templaefield and I am populating it with data from datatable.
The equipname are A,B,C,D.
When I check the checkbox the corresponding equipname field of the checked row will be active and I select a equipname from the dropdownlist.
Rate1 is for Equipname 'A'
Rate2 is for Equipname 'B'
Rate3 is for equipname 'C'
Rate4 is for equipname 'D'
Now what I need is when I check the first row and select equipname 'A' only the
rate1 column of the first row should be active.
When I check the secondrow and selected equipname only the rate1 column of the second row should be active
and that of row1 should be inactive and so on.
I was able to do everything except that when I check a particular row and selected equipname 'A' allother fields (ie,rate2,rate3,rate4 ) becomes inactive but all otherrows of rate1 irrespective of the checked row becomes also active.how can I do this
I s there any way for getting that particular checked rowindex so as to compare it with
I am filling a gridview with data.
column 1 is a dropdownlist <ddlGrade>
column 2 is a checkbox <cbxNeverAttended> not visible
column 3 is a textbox <tbxLastDate> not visible
in the 'GridView_RowDataBound'
i determine if a ddlGrade value already exists and if so, make it selected in the dropdownlist
also, if the value of ddlGrade is a "U" I make cbxNeverAttended and tbxLastDate visible
However, if cbxNeverAttended or tbxLastDate are both empty strings (and ddlGrade has the value "U"), I want to disable all instances of ddlGrade in the gridview (essentially forcing the user to enter a value for cbxNeverAttended or tbxLastDate before moving on to enter another ddlGrade).
But I have been unable to figure out a way to accomplish this on the 'Gridview_RowDataBound',
I am using VS 2008 and C#. I have a nested datagrid attached to access database where date column is the PKey and takes system date.
I want to unable the user to edit/update the the rows more then 3 days old.
How to Disabling the form elements until the page is rendered completely.
View 1 RepliesIn my application I have to use such like on clicking back button of the browser the current page should be there. it should not navigate to the previous one...Also there should appear a alert box which will prompt message of fear of losing some data.........
for back button functionality disable I have used javascript. Its working but not fully.
I want to do this by disabling the Cacheability ..
I have also tried disabling the cacheability but it's not working ...
I have grid view containing check box column as one column,a drp down and button outside the grid..
for example drop down has two options like first and second,if i select first i want to change the name of the button to first and if i select second button name should be second,,and also i want to disable the checkboxes in gridview when button name is second..
I have a gridview with a select link (Not auto created) One of my columns is a date column Another column is essentially a 'group code' For rows that have the same group code I want to disable or make the link button not visible for all but the most recent row. I wasn't sure how to go about doing this.
[Code]....
I want to disable validation for asp:command field Edit button for some rows.How do i that?
Here is the asppx code :
<asp:CommandField HeaderText="Actions" ButtonType="Link" DeleteText="Delete" ShowDeleteButton="True"
EditText="Edit" ShowEditButton="True" CausesValidation="true" />
Here is what am trying to do in greiview itemdatabound event:
if (e.Row.RowType == DataControlRowType.DataRow)
{
LinkButton btn = (LinkButton)e.Row.Cells[2].Controls[0];
if(btn!=null)
{
btn.CausesValidation=false; //gives error
}
}
Is there any way to disable autogenerated edit, delete buttons in gridview. As they don't have names to use find contro, how can I find the edit button in the row and disable it and enable when required.
View 5 Replies