|
|
Hi, im simply trying to set autopostback=true on an asp dropdownlist.
this works until i place a button on the form, now the autopostback will not fire
and a javascript error gets thrown "object doesnt support property or method"
any ideas?
|
|
|
|
|
this works fine for me
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<asp:DropDownList ID="DropDownList1" runat="server" AutoPostBack="True">
<asp:ListItem>Item 1</asp:ListItem>
<asp:ListItem>Item 2</asp:ListItem>
</asp:DropDownList>
<asp:Button ID="Button1" runat="server" Text="Button" />
</form>
</body>
</html>
regs,
g00fy
-- modified at 9:05 Sunday 13th August, 2006
|
|
|
|
|
thanks for the reply goofy, found out what it was.
I initially added the button through vs2005 which, set the id of the button to "submit", which interfered with the autopostback code
|
|
|
|
|
plz help me to invoke the OnTextChanged event to the TextBox placed in the footer template of the grid.On changing the TextBox text property the corresponding data matching the to the text should be displayed it the adjacent rows ..
plz somebody help to goforward in my project
ashok kumar.y
plz help me to invoke the OnTextChanged event to the TextBox placed in the footer template of the grid.On changing the TextBox text property the corresponding data matching the to the text should be displayed it the adjacent rows ..
plz somebody help to goforward in my project
ashok kumar.y
plz help me to invoke the OnTextChanged event to the TextBox placed in the footer template of the grid.On changing the TextBox text property the corresponding data matching the to the text should be displayed it the adjacent rows ..
plz somebody help to goforward in my project
ashok kumar.y
|
|
|
|
|
You want to do it on server side or client side?
BTW by writing the question three times doesn't ensure that the question will be answered early.
Best Regards,
Apurva Kaushal
|
|
|
|
|
I have built a web application using Deklarit objects as the Data Abstraction Layer. It works fine on development server but when I upload to my shared host I get SecurityExceptions like the following:
[SecurityException: That assembly does not allow partially trusted callers.]
Deklarit.Data.DataStore.GetReadWriteConnection() +0
Deklarit.Data.DataStore.GetReadWriteConnection(IDbTransaction currentTransaction) +96
WebShopData.DownloadDataAdapter.Update(DataSet dataSet) +69
brokers.DownloadAdmin.AddDownload(String DownloadName, FileUpload Upload, String DownloadDescription) +246
admin_downloads_AddEditDownload.AddButton_Click(Object sender, EventArgs e) +294
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +105
System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +107
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +7
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +6953
System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +154
System.Web.UI.Page.ProcessRequest() +86
System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) +18
System.Web.UI.Page.ProcessRequest(HttpContext context) +49
ASP.admin_downloads_addeditdownload_aspx.ProcessRequest(HttpContext context) +4
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +154
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +64
Which assembly is it talking about, DeklaritLibrary.dll , WebShopData.dll or the Enterprise Library dll's?
I have strong named my Deklarit generated assembly and added the AllowPartiallyTrustedCallers attribute to the assembly. The problem only occurs on write to the database, read connection is working fine.
For those not familiar, I am using Deklarit 4.0 and the generated assembly uses Micrososft Enterperise Library which I have also recompiled with the AllowPartiallyTrustedCallers attribute on the Microsoft.Practices.EnterpriseLibrary.Common.dll , Microsoft.Practices.EnterpriseLibrary.Configuration.dll & Microsoft.Practices.EnterpriseLibrary.Security.Cryptography.dll . The host is a shared host and they do not support full trust and I cannot override this setting in web.config.
I have trawled Google and almost everywhere else and I cannot find a simple explanation of how to overcome this problem.
Can anyone please help, it is driving me nuts and consuming alot of time to get nowhere?
Kind regards,
Maurice Moore
|
|
|
|
|
Hi~~~~~,everyone:
I want to let a treeview node automatically expand when i check its checkbox. Also, when it expand it should execute the expand event solution code in the severside to find its child nodes. It means how could i write code to call the expand event in treeview.check event. Is there anyone could help me. Any idea is appreciated, thanks in advance!
|
|
|
|
|
Hello Friends
I'm using the follow code in my website to send/receive e-mails:
SmtpClient smtp = new SmtpClient("smtp.gmail.com", 587);<br />
<br />
smtp.DeliveryMethod = SmtpDeliveryMethod.Network;<br />
smtp.EnableSsl = true;<br />
smtp.UseDefaultCredentials = false;<br />
smtp.Credentials = new System.Net.NetworkCredential("MyGmail@gmail.com", "MySecretPassword");<br />
<br />
MailMessage message = new MailMessage();<br />
message.Subject = "etc etc etc";<br />
message.Body = "etc etc etc";<br />
<br />
message.From = new MailAddress("MyGmail@gmail.com");<br />
message.To.Add(new MailAddress("MyGmail@gmail.com"));
<br />
smtp.Send(message);
In MailMessage.To, I place myself mail, and works very fine when I receive feedbacks in the site. But I wish use the same code to send e-mail to another persons, (like password reminders). The code works fine, none exceptios are throwed but the mail is not received!!! What's wrong? Someone can help me?
Jesus is Love! Tell to someone!
|
|
|
|
|
Hi All,
How can we show a selected directory path from web server?
I need all possible drives and directories of server to be dispalyed in a tree structure using ASP.Net and c#. by selecting a directory from the tree the directory path need to be displayed in a text box.
I am new to ASP.Net 2.0. please help in this regard.
Thanks in advance.
chinna.
|
|
|
|
|
I need to solve this ASAP
Expecting a solution reply soon..
Thanks
Chinna
|
|
|
|
|
Howdy
I have an arraylist that I bind to a datagrid and display on a webpage
On the webpage, the header on the datagrid has a column header of ITEM
I'm trying to change this display the correct name, but can't figure it out.
I've looked at examples for tablespace and it seems complicated and I'd need major rewrites in the program
Seems like I ought to be able to set something in the properties field - like 'Collections" - this has a bound columns property with header text - but I can't figure out what to put for 'data field' - program keeps blowing up on this
Thanks
|
|
|
|
|
Hey all
I've got an aspx page that has a number of text boxes on it. I have the following javascript function that counts characters within the text box:
function myLength(lbl,tb,max){
//lbl is the ID of the control that displays the count
//tb is the ID of the control that is being counted
//max is the maximum amount of characters allowed in the control
lbl.innerHTML = tb.innerHTML.length + " of " + max;
}
Within the vb page associated to the aspx page I have the following code:
txtTitle.Attributes.Add("OnKeyUp", "myLength(document.getElementById('" _
+ lblWC_Title.ClientID + "'),document.getElementById('" + _
txtTitle.ClientID + "')," + txtTitle.MaxLength.ToString + ")")
This adds the onkeyup event to the text box and passes the correct client ID's into the javascript function.
Now my problem is this, if my asp text box is multiline then the word count works fine but nothing happens if it is a text box set to be single line. I use the same methods as shown above for both types of text box. Any ideas on what is causing this?
Thanks in advance
W.
|
|
|
|
|
Have you examined the code that is created (e.g. view source in browser), to see what is missing?
---
b { font-weight: normal; }
|
|
|
|
|
Sorry for taking so long to reply, didnt email me like it said it would. The problem is solved, it was because a textbox with multiline selected is rendered as textarea which has both innerHTML and innerTEXT where as a single line text box does not have either of these. Instead changing the .innerHTML or .innerTEXT to simply '.value' solved the problem.
Thanks for replying.
|
|
|
|
|
I use Asp.Net1.1
i have a Button in my page that have some clientSideCode(JAVASCRIPT) and Server Side Code
i want when this key is pressed, First ServerSide codes is Run and then Client SideCode;
MHF
|
|
|
|
|
That can't be done. When the server side code runs, the client side code doesn't exist any more (or rather, is doomed to be replaced by the page that the server side is creating).
If you want to run some code server side, then some code client side, you have to make the server side code output client code to be run when the next page loads in the browser.
---
b { font-weight: normal; }
|
|
|
|
|
Hi,
i have created one java script file through asp.net.i also refer this page in html page.but at the time of first login it can create the java script file and it was refered by the html page.but when i click the next time the file was created.but the html page refered the old file.how to rectify it?
|
|
|
|
|
The file is cached by the browser. You can prevent this by changing the url of the file, for an example by adding a parameter containing a timestamp, a random number or a counter.
---
b { font-weight: normal; }
|
|
|
|
|
Hi
i also used Response.Cache.SetNoStore()
but still it uses the old one.
|
|
|
|
|
The cache setting of the page doesn't affect how the additional files that the page loads are cached.
---
b { font-weight: normal; }
|
|
|
|
|
Actualy my problem is
in my login page according to the user name it will fetch the user rights from the database.depending upon the user rights a new javascript file will be created in the working dirctory(c:\inetpub\wwwroot\myappln\lib\jest.js).that javascript file is refered in the index page.first time it was corectly loaded.but when i click the logout button and login with another user,the new javascript file was creted according to this user rights.but in the index page it refer the previous user javascript file.so each time i want to close the browser then login to the new user.
suppose if i save the javascript file in c:\ it was working propoerly even for the new user with out closing browser.
i expect the valuable answer.
Thanks
|
|
|
|
|
See my first reply in the thread for the answer.
If anything is unclear, you have to explain what it is, in order for someone to be able to help you.
---
b { font-weight: normal; }
|
|
|
|
|
I have install Team Explorer in order to use MICROSOFT TEAM SUIT.
I have already install Microsoft Visual Studio 2005 but problem is i don't get
Team Test Settings. Please help me , i want to do unit testing in my Project.
aLi
|
|
|
|
|
How can i integrate payment gateway with my website.
what are u formalties?
Can i test it for free somewhere before actualy buy it.
please help
Regards
|
|
|
|