|
opts=document.getElementById('FieldSelect').options<br />
var optn=document.createElement("OPTION");<br />
optn.text = "text";<br />
optn.value = "value";<br />
opts.options.add(optn);
Best regard
Pathan
GOD HELP THOSE WHO HELP THEMSELVES
|
|
|
|
|
it will not insert data
vijaya
|
|
|
|
|
I have done in my website.
Plz post your code here
GOD HELP THOSE WHO HELP THEMSELVES
|
|
|
|
|
thank you
i got answer. the same way u said.
vijaya
|
|
|
|
|
Hi,
I am using a custom made chart control in my webapplication page (.aspx).
When I drag that control on to the design page I get a messge 'Attempted to read or write protected memory.This is often an indication the other memory is corrupt'
This problem is seen in VS 2005 and not in lower versions.
Please suggest about this.
|
|
|
|
|
You should set you Debugger in VS2005:
Tools->Options
Debugging->General
uncheck option "Suppress JIT optimization on module load".
And then Compile your application.
This is Because of that.
Regards,
Satips.
|
|
|
|
|
Hi Satips,
Thank you for the reply.
I trieed what you mentioned.
But I am unable to drag the custom control from the toolbiox to the designer pane.
This message is poped up when I drag the custom control.This custom control is new one and it is chart control. It doesnot come default with VS2005 or lower versions.
I made this control and added to toolbox.
It woorks fine with lower versions of VS.
pLEASE SUGGEST.
|
|
|
|
|
Hello! I have a problem. In my web application I use Ajax components from OboutInc, Oracle DB, and FormsAuthentication with ticket. Where are some buttons that calls asynchronous CallBack and refresh of Update Panels. After clicking on these buttons 17 TIMES!!! Session dies (delete all variables stored in Session object, new SessionID and etc.) What's wrong?
SessionState settings:
<sessionstate
mode="InProc"
="" usehostingidentity="true" cookieless="UseCookies" cookiename="ASP.NET_SessionId" regenerateexpiredsessionid="true" timeout="50">
Thank you for nay help, and sorry for my bad English...
|
|
|
|
|
This is just a guess, but I am thinking that the button click is putting something into your session variable. If it is a larger enough object that is getting stored in session, it could be that the session object is running out of memory and is re-claiming the session memory. If you application is already using a lot of memory doing caching etc. I don't know how much memory you have available on your box that you are seeing the session die. Anyway, just a guess.
Ben
|
|
|
|
|
I would like to display contents of word documents in an Asp.net page using .net 1.1.
I can open the documents and write the contents to a text property of a control, I have 3 questions I was hoping some could answer or possibly give me a pointer to a possible answer regarding word and ASP.Net.
1. Some documents have tables and other formatting, is it possible to display the formatting on a web page?
2. Is there a framework control that would make displaying contents easier?
3. Finally, each time I close my Asp.net application I get a word pop up saying the Normal.dot needs to be saved. This only happens when opening word documents with ASP.Net.
Regards Paul
PJ
|
|
|
|
|
For those who are interested here is the code that opens a word document in the browser...
Dim fi As New System.IO.FileInfo(Request.QueryString("file"))
Response.ClearContent()
Response.ClearHeaders()
Response.AddHeader("Content-Disposition", "inline; filename=" + fi.FullName)
Response.AddHeader("Content-Length", fi.Length.ToString())
Response.ContentType = "application/ ms-word"
Response.WriteFile(fi.FullName)
Response.Flush()
Response.End()
PJ
|
|
|
|
|
what is the use of meta tag for caching a page in browser in asp.net
shashank sharma
GCI Technologies Asia Pvt.Ltd. Baroda
|
|
|
|
|
s_sharma wrote: what is the use of meta tag for caching a page in browser in asp.net
Meta have no connection with ASP.NET. It's HTML tag
|
|
|
|
|
I am using the following code of java script .
it shows the messagebox , with yes and no button.
now if the user click the yes button
i want to redirect the present page to some other respective page.
<script language="javascript" type="text/javascript"><br />
function confirm_delete()<br />
{<br />
if (confirm("Are you sure you want to delete the custom search?")==true)<br />
return true;<br />
else<br />
return false;<br />
}<br />
</script>
button.attribute.add("onclick","return confirm_delete();")
|
|
|
|
|
<script language="javascript" type="text/javascript">
function confirm_delete()
{
if (confirm("Are you sure you want to delete the custom search?")==true)
location.href='after_delete.aspx';
else
location.href='cancel_delete.aspx';
}
</script>
button.attribute.add("onclick","confirm_delete();")
Fred
|
|
|
|
|
Hi Fred......
location function is not working
path remain the same.when it is written to rediect on another page.
|
|
|
|
|
|
Fred......This is the code.
<script language="javascript" type="text/javascript"><br />
function confirm_delete()<br />
{<br />
if (confirm("Are you sure you want to delete the custom search?")==true)<br />
Location.href="main.html"<br />
else<br />
return false;<br />
}<br />
</script>
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
If (Not Page.IsPostBack) Then
lnkbtnlogout.Attributes.Add("onclick", "return confirm_delete();")
End If
End Sub
|
|
|
|
|
You've been a little careless with your javascript:
a) it is case-sensitive (you had Location ionstead of location)
b) you had missed out the openeing and closing braces {} if the if... block
c) you hadn't terminated your lines with ;
Also, there is no need to return false if the user clicks Cancel - you could delete that part of the atatement if you don't want to redirect them anywhere.
Try this:
function confirm_delete()
{
if (confirm("Are you sure you want to delete the custom search?")==true)
{
location.href="main.html";
}else{
//return false;
}
}
|
|
|
|
|
Fred ..... I am still facing the same problem.Page is not redirecting to other page.
|
|
|
|
|
Post your code again...
I take it you are getting the confirm box appearing?
Fred
|
|
|
|
|
yes fred......message box is appearing
but page is not redirceting to another page.
function confirm_delete()
{
if (confirm("Are you sure you want to logout ?")==true)
{
location.href="login.aspx";
}
}
If (Not Page.IsPostBack) Then
lnkbtnlogout.Attributes.Add("onclick", "return confirm_delete();")
End If
|
|
|
|
|
hmm... is this button in an iframe or some such? Still, it should work... Do you have Firefox installed? Try running it under that with the Javascript console (Tools menu) opened and see if you get any error messages there.
If we still can't figure it, if you want to send me the whole page (no need for the code behind just the front end) in an email I'll have a look...
Fred
|
|
|
|
|
Fred...What's the mail id?
|
|
|
|
|
Click the Email link (next to the Reply link) at the foot of this message
|
|
|
|