|
You can get the system display settings by using screen.width and screen.height, although I'm not sure if that's what you need.
There's also screen.availWidth and screen.availHeight, which are the available width and height.
|
|
|
|
|
Hi All,
I am fetch data from XML File and show that data in GridView. Now when I edit any of the row in a GridView I need to updated row to the same XML File.
I am using Ajax toolkit HoverMenuExtender for showing Edit and Cancel.
Please help me...
Thanks in advance...
|
|
|
|
|
Hi ,
I have developed an application wherein the user can upload his photo in a div. The photo is automatically checked and stored using AJAX. I want the user should not be able to do anything else while uploading.Hence i want to gray out all the elements on that page. I thought it would be foolish to disable each item on the page. Is there any method to disable all items on that page all at once?
When you fail to plan, you are planning to fail.
|
|
|
|
|
Hi,
Ive done an application in ASP.Net with C# and data stored in an XML.
In this application, I used XmlMembership Provider class for adding users,Change Password,Delete User into the XML file.
Problem is when i published it in IIS, and tried to add or Delete or Change password,Im getting an error "Cannot Acces File.Because it is being used by another Process".
How to solve this issue?
Anyone Plz help!
Thanks in Advance.
|
|
|
|
|
You need to give ASPNET NTFS write priviledges. The default is only read. Also, you will have multiple accesses of that file. Thus, you may need to use the cache.
"We make a living by what we get, we make a life by what we give." --Winston Churchill
|
|
|
|
|
Hi Guys,
I have a doubt on the working of update panel control. I remember reading that even though it allows partial page update behind the scenes its does a full post back.Or will it be sending and recieving only a part of it.
Thanks in advance for your advice
Laddie
|
|
|
|
|
Check out this page in ie, then check it out in fire fox or safari. This is valid XHTML 1.0.
http://profile.prosoco.com/product_list.aspx[^]
There is a div that displays when you hover over "Espanol".
Why does the div display at the far left of the next line in mozilla and just below the text (Espanol) in IE?
I want it to show up just under the text, espanol. How can I get it to do that?
Thanks in advance.
-- modified at 10:39 Wednesday 5th September, 2007
|
|
|
|
|
|
Which part of that article are you suggesting applies to my position:absolute issue? In scanning the article I didn't see anything relavent.
|
|
|
|
|
You need to figure this one on your own since the solution may affect other parts of the page or code added in the future. Also, each version of IE has its own set of bugs. Here is a link that covers a lot of IE bugs with fixes\hacks:
http://www.positioniseverything.net/[^]
"We make a living by what we get, we make a life by what we give." --Winston Churchill
|
|
|
|
|
That is strange advice for a message board... The problem is that I cannot figure this one out on my own. Hence the posting of the question here. No one else seems to know the answer either so I don't feel too bad. Perhaps I will just remove the pop up div.
|
|
|
|
|
I am sorry for the strange advice. However, making pages consistent on different web browsers is difficult once you start getting a little fancy. Since I don't have mozilla installed, and I don't have the time actually fix your web page, I referred you the aforementioned web pages. By the way, I have also found this website helpful: http://www.alistapart.com/[^].
"We make a living by what we get, we make a life by what we give." --Winston Churchill
|
|
|
|
|
SOLUTION:
--------------------
Use ul for the absolute positioned content instead of the just a div.
The box models are still inconsistant between browsers with absolute positioned DIVs.
You can still wrap the ul in a wrapper div that has a set width and is positioned absolute so that the ul doesn't get pushed left and down to the next line.
------------------
css:
<code>
#esp_wrapper{
width:250px;
position:absolute;
display:inline;
}
.sd{
margin ;
position:absolute;
background-color:#efefef;
padding:6px;
padding-left:5px;
border:1px #bbb solid;
margin-top:15px;
margin-left:6px;
}
</code>
html:
<code><ul>
<li><a href="#">PDS</a></li>
<li><a href="#">Spec</a></li>
<li><a href="#">MSDS</a></li>
<li class="sd_drop" onmouseover="showHide('sd1', 'block');" onmouseout="showHide('sd1', 'none');">
<div id="esp_wrapper">
<a href="#">Español</a>
<br />
<ul class="sd" id="sd1">
<li><a href="#">PDS</a><br /></li>
<li><a href="#">MSDS</a></li>
</ul>
</div>
</li>
</ul>
</code>
|
|
|
|
|
Hi i am developing a web app using asp.net and c#, on a page i have 2 cols of dropdown lists the left filled with player names and right filled with possible heights. when a player is selected theres a postback to find and select the appropriate height for the selected player but the problem is there are 14 players ddls and 14 heights ddls all linked to the same function.
but the problem is if no height is available for the selected player then N/A is selected in the heights ddl and the user can then choose the correct date from the ddl available but when i try to save the players details to the database the event to find the correct height is fired and then players height is reset to N/A... if anyone has an ideas or suggestions i would really appreciate them thanks in advance
Tim
private void player_SelectedIndexChanged(object sender, System.EventArgs e)
{
DropDownList ddlPlayer = sender as DropDownList;
string number = ddlPlayer.ID.Substring(ddlPlayer.ID.IndexOf("homeName")+8);
//*** create person object for height details
DAL.ObjectAccess.Person oPerson = new DAL.ObjectAccess.Person();
oPerson.ID = new SqlInt32(Convert.ToInt32(ddlPlayer.SelectedValue.Substring(0, ddlPlayer.SelectedValue.LastIndexOf(":"))));
oPerson.SelectOne();
//*** select correct height from ddl
DropDownList ddlHeight = (DropDownList)this.FindControl("height" + number);
if(ddlHeight != null)
{
ddlHeight.SelectedValue = oPerson.Height.Value.ToString();
}
//*** display age on label
Label lblAge = (Label)this.FindControl("homeSquad" + number);
if(lblAge != null)
{
lblAge.Text = ddlPlayer.SelectedValue.Substring(ddlPlayer.SelectedValue.LastIndexOf(":")+1);
}
}
|
|
|
|
|
Hi,
I am getting the following error:
Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
[Microsoft][ODBC Microsoft Access Driver] Operation must use an updateable query.
I know that I need to set permissions on the Access database but can not remember how. Normally I would right click, and click on properties, and select the users and set the permissions, but I reloaded my machine and I can not see those options there.
Please can someone help. I am using classic ASP and Access.
Thanks
|
|
|
|
|
.NET Enthusiast wrote: Operation must use an updateable query
Google this and you'll find pages and pages and pages and whole websites devoted to this crappy Microsoft f***up. Seriously, it is nightmare - I gave up on it ytears ago.
Give up on Access for web applications - it wesn't designed for it. It is a simple, single user desktop database, and that's all. Install MySQL if you want a good, free database and use that instead. You'll save yourself hours of trouble.
Sorry can't be mor help. But your probnlem is more than one of just permissions - it's a nightmare.
Fred
|
|
|
|
|
hi,
Can somebody pls. tell me how to call the following code on button'click event in c#.net2.0
<object type="application/x-shockwave-flash" data="FlowPlayer.swf" width="320" height="263" id="FlowPlayer">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="FlowPlayer.swf" />
<param name="quality" value="high" />
<param name="scale" value="noScale" />
<param name="wmode" value="transparent" />
<param name="flashvars" value="config={videoFile: 'ad.flv'}" />
thanks
Harry
|
|
|
|
|
Hello friends,
I am developing a login & registration page for a website.
On the login page, i have provided a link for registration page. If the user don't hav username and password for authentication then he/she supposed to register to the website first.
The problem is, control is not transferring to the registration page without authenticating the user i.e i has to authenticate the user first by giving username and password, then only i am able to access Registration page. This is completely wrong logic.
I don't know where the problem is but i am sure it will be a small one. I am also attaching the code of user authentication here.
private void BtnGo_Click(object sender, System.EventArgs e)
{
if(ValidateUser(TextBox1.Text,TextBox2.Text))
{
FormsAuthenticationTicket tkt;
string cookiestr;
HttpCookie ck;
tkt=new FormsAuthenticationTicket(1,TextBox1.Text,System.DateTime.Now,System.DateTime.Now.AddMinutes(Convert.ToInt32(ConfigurationSettings.AppSettings["timeout"])),CheckBox1.Checked,"Your Custom Date");
cookiestr=FormsAuthentication.Encrypt(tkt);
ck=new HttpCookie(FormsAuthentication.FormsCookieName,cookiestr);
if(CheckBox1.Checked)
ck.Expires =tkt.Expiration;
ck.Path =FormsAuthentication.FormsCookiePath;
Response.Cookies.Add(ck);
string strredirect;
strredirect=Request["ReturnUrl"];
if(strredirect==null)
{
strredirect="login.aspx";
Response.Redirect("Test.aspx",true);
}
else
Response.Redirect("login.aspx",true);
}
This is the code for user authentication.
Please someone help me.
Thanks,
Nagendra.
|
|
|
|
|
Hi,
I have a problem uploading excel file with 5MB file size. I am only working first locally in my machine, and I already encountered this problem in uploading.
Is there something that I need to configure in order my uploading program will accept 5MB and even higher?
By the way I am using a FileUpload control
Thanks
hifiger2004
|
|
|
|
|
There is a limit placed on this - you can alter it locally, but be aware that if you want eventually to deploy this application on another web-server you will ned to make sure that they too are prepared to do the same - and most ISP's will not.
Note that as well as increasing the max upload size, you (may) also need to increase the executionTimeout as well as the Server.ScriptTimeout settings too...
This page
http://msdn2.microsoft.com/en-us/library/e1f13641(vs.71).aspx[^]
has some info on this on a webserver.
This page
http://www.chrisbunk.com/archives/2005/05/overcoming_iis.html[^]
gives a method that should work on IIS under XP (though I can't say I've tried it)
There are also plenty of 3-rd party components such as
http://www.dimplesoftwares.com/kuploadplus.htm[^]
that will allow you upload very large files - they manage to bypass the limit by some software wizardry (read their blurb if you want details...)
Are you sure you want to allow your users to upload files of that size...?
good luck
Fred
|
|
|
|
|
Hello Fred,
Yes, you're right it's not a good practice allowing unlimited size of excel file to be uploaded.
Anyway, I will just post another question if how am I going to call a Macro from Excel.
Thanks Fred
hifiger2004
|
|
|
|
|
Hi i am using textbox in datagrid ,so i need to add that textbox value in that datagrid and put in to label , so these working fine in IE 6 but if i run this in IE 7 and mozila the values are not adding ..
function TotalBudgetAmount()
{
var intCount=2;
var txtBudgetAmount= document.getElementById("dgridBudgetAllocationDetails__ctl"+intCount+"_txtCurrentBudgetAmount");//here txtBudgetAmount come as null in IE 7 but in IE6 its working so problem in this line
var TotalAmount=0;
while (txtBudgetAmount != null)
{
if (parseFloat(txtBudgetAmount.value))
TotalAmount = TotalAmount + parseFloat(txtBudgetAmount.value)
intCount += 1;
var txtBudgetAmount=document.getElementById("dgridBudgetAllocationDetails__ctl"+intCount+"_txtCurrentBudgetAmount");
}
these are that lines please c this code and reply thank u
Reg
nantha
|
|
|
|
|
Hello All,
I have developed script in which I used iframe and getting contents by following:
iframe.contentDocument.body.innerHTML = "str_name";
iframe.contentWindow.document.body.innerHTML = "str_name";
this works fine in IE and mozilla but not in Safari of Mac OS.
so is there any other way to treat with Mac OS
Thanks
|
|
|
|
|
hi,
can anybody pls help me regarding implementing your map image as c#.net 2.0 control.
Actually i've a thailand map( a map image) and i want to allow user to search for a list of hotels, lodges etc.
but the main issue is that i've to allow admin to enter a list of hotels in the database. when the user clicks on hotels link all the admin entered hotels in database should get highlighted with a marker on the map.
I know this facility is available in google map but the issue is that google presents thailand map in thai language and i need thai map in english.
So help reqd urgently.....................
Thanks,
harry.
|
|
|
|
|