|
Hi,
I have try to implement the opaque the background when the page loading.
(No links or functionality on the main page should be accessible until this page loading is completed).
Here am using this code.
..........................................................................
.....................................
Default.aspx
.....................................
]]>
<title>Untitled Page
//----------
function addEvent(obj ,evt, fnc)
{
if (obj.addEventListener)
obj.addEventListener(evt,fnc,false);
else if (obj.attachEvent)
obj.attachEvent('on'+evt,fnc);
else
return false;
return true;
}
function removeEvent(obj ,evt, fnc)
{
if (obj.removeEventListener)
obj.removeEventListener(evt,fnc,false);
else if (obj.detachEvent)
obj.detachEvent('on'+evt,fnc);
else
return false;
return true;
}
//----------
function appendElement(node,tag,id,htm)
{
var ne = document.createElement(tag);
if(id) ne.id = id;
if(htm) ne.innerHTML = htm;
node.appendChild(ne);
}
//----------
function Disablebackground()
{
// alert('Disable');
greyout(true);
}
function Enablebackground()
{
// alert('Enable');
greyout(false);
}
//----------
function greyout(d)
{
var obj = document.getElementById('greyout');
if(!obj)
{
appendElement(document.body,'div','greyout');
obj = document.getElementById('greyout');
obj.style.position = 'absolute';
obj.style.top = '0px';
obj.style.left = '0px';
obj.style.background = '#111';
obj.style.opacity = '.5';
obj.style.filter = 'alpha(opacity=50)';
}
//alert(d);
if(d)
{
obj.style.height = document.body.clientHeight+'px';
obj.style.width = document.body.clientWidth+'px';
obj.style.height = Math.max(document.body.scrollHeight,document.body.clientHeight)+'px';
obj.style.width = Math.max(document.body.scrollWidth,document.body.clientWidth)+'px';
obj.style.display = 'block';
addEvent(window,'resize',greyoutResize);
}
else
{
obj.style.display = 'none';
removeEvent(window,'resize',greyoutResize);
}
}
function greyoutResize()
{
var obj = document.getElementById('greyout');
obj.style.height = document.body.clientHeight+'px';
obj.style.width = document.body.clientWidth+'px';
obj.style.height = Math.max(document.body.scrollHeight,document.body.clientHeight)+'px';
obj.style.width = Math.max(document.body.scrollWidth,document.body.clientWidth)+'px';
}
//----------
.........................................
Default.aspx.vb
.........................................
Partial Class Nov05_Default7
Inherits System.Web.UI.Page
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
ClientScript.RegisterClientScriptBlock(GetType(Page), "js", "javascript:Disablebackground()", True)
End Sub
End Class
.........................................................................
It is successfully working in Mozilla But in Internet Explorer showing the below error.
(Internet explorer cannot open the internet site-operation aborted).
Already I wasted one Day for this but i Couldn't find the exact solution .
So please give me solution.
Thanks&Regards
Chapidi
|
|
|
|
|
hi
i need power point slides on asp.net in each and every topics
|
|
|
|
|
make it your self.....
Ur knowledge will increase...y r u asking for prepared material
|
|
|
|
|
http://www.asp.net/
Go to the learning section, and make your own.
|
|
|
|
|
..and I need a big lottery win, but I suspect we are both going to be disapointed.
Bob
Ashfield Consultants Ltd
|
|
|
|
|
Well, he can just put some work in and get it done. Yours can only be accomplished by determination at a cost that is by average twice as large as the winnings.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
Guffa wrote: Well, he can just put some work in and get it done
Possible, but I have my doubts
Guffa wrote: Yours can only be accomplished by determination at a cost that is by average twice as large as the winnings.
I prefer crossing my fingers, but there seems to be a flaw in my logic somewhere so far
Bob
Ashfield Consultants Ltd
|
|
|
|
|
i'm using sqldatasource in order to search a table item with the column name.
I want to search Name column for any word containing any letter found in the text box control.
I tried to write the following:
SELECT Name, Email FROM Item WHERE CONTAINS (Name , @Name)
The following error appears:
Cannot use a CONTAINS or FREETEXT predicate on table or indexed view 'Item' because it is not full-text indexed.
could you please help me.
thanks
|
|
|
|
|
You need to use LIKE
SELECT @Name = '%' + @Name + '%'
SELECT Name, Email FROM Item WHERE Name like @Name
Bob
Ashfield Consultants Ltd
|
|
|
|
|
It is working,
Thanks for help Bob
Regards,
|
|
|
|
|
Are you using OLEDB or SQL, there are Some SQL Functions that are not Available in OLEDB like you cant substring in OLEDB instead you MID.
SELECT Name, Email FROM Item
WHERE Name like '%@Name%'
Hope this Helps
Vuyiswa Maseko,
Sorrow is Better than Laughter, it may Sadden your Face, but It sharpens your Understanding
VB.NET/SQL7/2000/2005
http://vuyiswamb.007ihost.com
http://Ecadre.007ihost.com
vuyiswam@tshwane.gov.za
|
|
|
|
|
Hi,
I want to create a gridview in which it contains 2 cells which contains one textbox and one dropdown.
and a addbutton
when i click on this add button
1 more blank row must be added, but previous rows data should not get deleted.
how can i achieve this.
“You will never be a leader unless you first learn to follow and be led.”
–Tiorio
"Coming together is a beginning, staying together is progress, and working together is success." Henry Ford
|
|
|
|
|
Hi...Mogambo...
i have Implement With below Condition...
I have Put Add Button out side of datagrid.....
when u click on that button on click event u can write this code....it will insert new row in datagrid
DataTable ABC= objDAO.ExecuteSelectDataTable(StoredProcedure);
if (dtAccommodationType != null)
{
DataRow dr = ABC.NewRow();
ABC.Rows.InsertAt(dr, 0);
Datagrid.EditItemIndex = 0;
Datagrid.DataSource = dtAccommodationType;
Datagrid.DataBind();
Datagrid.Items[0].Focus();
}
Cheers,
Hemant Patel
|
|
|
|
|
hi,
Iam currently working with the login control when i executed my application then the following errors are rising.
Error 1 Name cannot begin with the '<' character, hexadecimal value 0x3C. Line 14, position 5. F:\ExampleLogin\Web.Config 14
Error 2 F:\ExampleLogin\Default.aspx: ASP.NET runtime error: Name cannot begin with the '<' character, hexadecimal value 0x3C. Line 14, position 5. (F:\ExampleLogin\web.config line 14) F:\ExampleLogin\Default.aspx 1 1 F:\ExampleLogin\
Error 3 Expecting '>'. F:\ExampleLogin\Web.Config 14 5 F:\ExampleLogin\
|
|
|
|
|
I rather think the error message says it all. Name cannot start with <<br mode="hold" />
I expect the last error is because it was expecting a closing >
Bob
Ashfield Consultants Ltd
|
|
|
|
|
iam having a grid view where each row is having one checkbox and one textbox now how can i get the validate the grid view tat when a checkbox is checked the corrsponing row text box is empty or not in a button clicked.
|
|
|
|
|
There r 2 way to implement this one...
While Gridview Rowdatabound event you can implement this task.....
when u clcik on edit at that time u can add saveButton.attributes.add();
In add mathod pass Eventname and javascript function with retrun argument....in javascript function only u can pass checkbox,and textbox client id...so u can access that control in javascript....
Cheers,
Hemant Patel
|
|
|
|
|
hi lakshmichawala,
i am sending a code that will collect all checked row of a gridview
here gvApartment is a grid view and d set its Datakey value to Id
and call this method
///
/// Method for collect Ids of checked rows
///
/// <returns>
public string gridrow()
{
string rowid = "";
for (int i = 0; i < gvApartment.Rows.Count; i++)
{
GridViewRow row = this.gvApartment.Rows[i];
CheckBox chkSelect = (CheckBox)row.FindControl("chkSelect");
if (chkSelect.Checked == true)
rowid += this.gvApartment.DataKeys[row.RowIndex].Value + ",";
}
if (rowid.Length > 0)
{
rowid = rowid.Substring(0, rowid.LastIndexOf(",")).ToString();
return rowid;
}
else
{
return "";
}
}
|
|
|
|
|
Hi,
As i am developing a application for login form. Whenever any user logged in then the user name shuld be displayed like in Yahoo. For example once a user logged with user id and password in Yahoo then while opening the page the user name will be displayed as Welcome user.
so can anyone help me. How to do such a application.
Thanks in advance.
|
|
|
|
|
ASP.NET has its own login control which is very suitable for your situation:
Login Control
|
|
|
|
|
user.identity.name
Regards...
- Amit Kushwaha
|
|
|
|
|
U can store username in session and where u want to display u can display that one...
|
|
|
|
|
hi,
I m trying to implement url rewriting using this example
http://www.codeproject.com/KB/aspnet/urlrewriter.aspx[^]
But I m getting error in web.config
Unrecognized configuration section rewriter.
Can anyone help me out why is this error shown.
When I m trying to run original code its working fine.
Regards
Vijay V.
Yash Softech
|
|
|
|
|
Have you checked through the comments by people at the bottom.
Also try e-mailing the person.
|
|
|
|
|
Ya but that doesn't work
Please give me some other solution
Vijay V.
Yash Softech
|
|
|
|