Hi,
I want to restrict the second user with the same loginid trying to login in to the application by displaying a confirm dialog box saying "User with the same login credentials already logged in, would you like to overwrite him." If the user clicks yes then he overwrites the first user and...
Hi,
I want to have a footer at the bottom of a aspx page as how we have on this page (Copyright stuff). The aspx page has a <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
Here is the code in the .aspx page.
<%@ Page...
Hi,
If i remove <!DOCTYPE then some of the AJAX Controls doesnt give expected results. For example the UpdateProgress, even if i have mentioned HorizontalSide="Center" VerticalSide="Middle" in AlwaysVisibleControlExtender the image inside the UpdateProgress show up at the top left corner.
Is...
Hi,
I have a textbox and a combobox. I have written code to select a value from the combobox when the user start typing in the textbox(onChange).
var Type = document.getElementById('cmbType');
var TypeText = 'Select Type';
if(Type.options[Type.selectedIndex].text == TypeText)
{...
Hi,
I am developing a web site using ASP.net 2.0 and authentication is Forms. As per the client requirements we have used frameset as they wanted the top part which contain the menus not to refresh. So when ever there is a session timeout the user is redirected to the login page, but the login...
Hi,
I want to get the start of current Month, start of week(currect weeks Monday) in mm/dd/yyyy format, start of Quarter. All these dates in mm/dd/yyyy format.
Thanks,
Manish
Hi,
I want to check for a string inside a string and if it exists then return true else return false.
The string might be "Select Name" so i want to check if there is "Select" in the string then return true else false. I can hardcode the value in the if condition for the check.
Thanks,
Manish
Hi,
I am getting a error when i click on the button which is inside a DIV and the DIV is an innerhtml of the popup object. The error is top.Popup is null or not an object. Here is the code
var oPopup = window.createPopup();
function ShowErrorMsgBox(ErrMsg,MsgPosition)
{
// The popup...
Hi,
I want to load my page Asynchronously. I tried using
Page.RegisterAsyncTask( new PageAsyncTask(new BeginEventHandler(this.BeginAsyncBindGrid),
new EndEventHandler(this.EndAsyncBindGrid), new EndEventHandler(this.TimeoutHandler), true) );
BeginEventHandler returns IAsyncResult but...
Hi,
I have a hidden variable which is either set to 0 or 1. I have written a javascript function where i check if the hidden field value is 0 then make div display:none else make it inline. This javascript function is called on body onload. When onload is fired then the div becomes inline or...
Hi,
I am using ASP.net 2.0 and Ajax Extensions 1.0. I have got some controls on the page and a search button(asp.net button). When i click the search button i make a call to a web service which gets me the data. What i want to do is to disable the search button till i get the data and then...
Hi,
I am using the cache object to store user permissions as i want these permissions in the global.asax. On successful login i store the permissions in the cache object. Suppose there are 2 users and first one logs in and gets inside the site then the second one logs in so will the permissions...
Hi,
I am using ASP.net 2.0 and am creating TemplateFields and BoundColumns for a GridView at runtime. I have created a class for creating buttons which implements ITemplate interface. Before binding the grid i have written.
TemplateField t = new TemplateField();
t.ItemTemplate = new...
Hi,
I want to create a parent child grid. Something like
Col1 Col2 Col3
+ A B C
+ D E F
When i click on + i should get..
Col1 Col2 Col3
- A 10 C --> parent row
A 5 C --> child Rows
A 3 C
A 2 C
- D 20 F
D...
Hi,
I want to check if a string is a int or a number with 2 decimals or 4 decimals. I tried this
if (double.TryParse(dr[Col].ToString(),NumberStyles.Currency,CultureInfo.CurrentCulture, out result))
but it doesnt work for 4 decimals like "11.1245".
Similarly i want to check a string which...
Hi,
I have created role-based sitemap menus where in the roles are coming from the database. For each menu page i have created a folder along with the page it has a web.config file. The web.config file has authorization as
<authorization>
<allow roles="EDIT"/>
<deny users="*"/>
</authorization>...
Hi,
I want to create a component where in every web request should pass through the component and the component should decide whether the user has got permission to view the page contents or not.
For example in case there are 2 users, user1 has got permission to view url...
Hi,
I am using ASP.net 2.0. I want to give focus on a textbox on a click of a button. I have written a javascript function and i am adding it as a attribute to the button.
Javascript :
function GetFocusonElements(element)
{...
Hi,
Atlas is not working in my ASP.net website. I created the site as Atlas website.
My web.config file is :
<?xml version="1.0"?>
<!--
Note: As an alternative to hand editing this file you can use the
web admin tool to configure settings for your application. Use
the...
Hi All,
Is it possible that when clicked on a menu which is in Master page only the contentplacehoder should get refreshed and not the entire master page..if this is not possible in case of Master page then how can this be done? I don't want to use Frames.
Can we make a parent child pages and...
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.