|
On my system it give error while posting.
|
|
|
|
|
Hi
I am using atlas webpart in my web page. It works fine. But when I am adding PageHandlerFactory drag drop do not work. In web.config file I I have writte
<add verb="POST,GET" path="ajax/*.ashx" type="Ajax.PageHandlerFactory, Ajax">
What are the possible ways I can tray out?
|
|
|
|
|
One Post is enough. BTW why are you creating differnt post related to the same Topic.
Regards,
Satips.
|
|
|
|
|
Hi
I am using atlas webpart in my web page. It works fine. But when I am adding PageHandlerFactory drag drop do not work. In web.config file I I have writte
<add verb="POST,GET" path="ajax/*.ashx" type="Ajax.PageHandlerFactory, Ajax">
What are the possible ways I can tray out?
|
|
|
|
|
One Post is enough. BTW why are you creating differnt post related to the same Topic.
Regards,
Satips.
|
|
|
|
|
Hi,
Im having a problem with my application,when im trying to execute a exe file from my ASP.NET application im getting the following error.im executing the file using the PROCESS class in .NET.
This Exe is executing correctly from the command line and in a prototype application.
HERE IS THE DETAILED ERROR MESSAGE.
Unhandled Exception: System.IO.FileLoadException: Could not load file or assembly 'TF, Version=8.0.0.0,
Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. Access is denied.
File name: 'TF, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' --->
System.UnauthorizedAccessException: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
Any Helps greatly appreciated
Sudharson.G
-- modified at 8:37 Thursday 26th April, 2007
|
|
|
|
|
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="RequiredFieldValidator" ControlToValidate="TextBox1" <>></asp:RequiredFieldValidator>
hi the above code validate 1 textbox izzit possible to let it validate multiple textbox with 1 validator?
|
|
|
|
|
Dont think it is possible.
U need to use different validation controls for different text boxes.
|
|
|
|
|
I think you need to loop thru each textbox and assign the validator to it.
Or you could create validators for each textbox.
|
|
|
|
|
marky777 wrote: I think you need to loop thru each textbox and assign the validator to it.
Surely this would simply update the "ControlToValidate" property multiple times and still end up verifying only a single textbox?
|
|
|
|
|
any one know how to edit the gridview template to have data type validation?
currently if the data type is incorrect the page is routed to an error page and shown the error how can i show the error in an lblerror.text?
also izzit possible to make the input textbox into a listbox which is bind to the database?
|
|
|
|
|
i just tryed changing it into a template and one of the field became this
<asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("Comments") %<'></asp:TextBox>
so instead of a textbox i changed it into a dropdownlist however how do i bind the Text='<%# Bind("Comments") %<'
in the dropdownlist? anyone know pls tell
|
|
|
|
|
I have a java script
function goToNewPage(dropdownlist)
{ var url = dropdownlist.options(dropdownlist.selectedIndex).value;
if (url != "")
{ window.open(url); } }
I have a dropdownlist and in code behind file I have this code
protected void DropDownList1_SelectedIndexChanged(object sender, EventArgs e)
{
DropDownList1.Attributes.Add("onchange","goToNewPage(this.value)");
}
But it is not doing anything. Even if I set break points it doen't go there.
All I want that if I select ant item in dropdownlist it takes me to some url.
|
|
|
|
|
hahii wrote: DropDownList1.Attributes.Add("onchange","goToNewPage(this.value)");
Try placing this in page load event and remove selected index changed event.
|
|
|
|
|
I did that but doesn't work.
|
|
|
|
|
Is you javascript function is getting called properly?
Best Regards,
Apurva Kaushal
|
|
|
|
|
How I come to know that it is called properly.
|
|
|
|
|
You can put a alert in your javascript and see whether you are getting any message or not.
Best Regards,
Apurva Kaushal
|
|
|
|
|
I have a table with two columns
AppName AppLocation
TestApp1 folder1
TestApp2 folder2
TestApp3 folder3
TestApp4 folder4
TestApp5 folder5
I have to shows data of column AppName in dropdown list.
I created a sqldatasource and bound that to dropdownlist.
I set DataTextField = AppName and DataValueField = AppLocation.
Now I have a java script I called it at onchange method e.g which is always in or tags in html. But as I already bound the dropdownlist with datasource so in html source I couldn’t see or tags so where is onchange method where I can call java script.
|
|
|
|
|
How you are attaching your javascript to the dropdown list?
Best Regards,
Apurva Kaushal
|
|
|
|
|
Hello,
i am working on a project that requires users to goto a certain web page and this web page will display their system specs
i can do that using ASP.net / WMI, however that will give me the specs for the server, what i really need actaully is the specs for the client (ex. OS, Physical Memory, computerName, etc.)
is there a way to do that without doing ActiveX approach?
any ideas
thank you
Tamer A. Rahman
Software Devloper (MCPD)
Using Java,C# and ASP.net
|
|
|
|
|
I have a dropdown list. I bound it to a sqldatasource.
It is showing me following items which are in database.
App1
App2
App3
But I want that my dropdown list should look like following. How can I get the text --Select Item -- on
first index though I attach sqldatasource to dropdown.
--Select Item--
App1
App2
App3
|
|
|
|
|
Do something like this:
dropdownlist.Items.Add(new ListItem("--Select Item--"));
dropdownlist.AppendDataBoundItems = true;
dropdownlist.datasource = somedatasource;
dropdownlist.TextField = "Something";
dropdownlist.ValueField = "somefield";
dropdownlist.DataBind();
Thats all you have to do. Add an item in the list and then set AppendDataBoundItems = true before you bind the list to a data source.
|
|
|
|
|
I've created a literal for each of my text snippets (<asp:literal id="ABCDUnique">blah blah blah). I have other literals that are updated based on code execution, so that is the reason all literals start with ABCD.
In Page_Load, I do something like:
string pageName = "UniqueName";
languageCode = 1;
TranslateControls(pageName, this.Controls);
I then define the TranslateControls method as:
private void TranslateControls(string pageName, ControlCollection controls)
{
for (int i=0; i < controls.Count; i++)
{
Control ctrl = controls[i];
if (ctrl.HasControls())
{
TranslateControls(pageName, ctrl.Controls);
}
else
{
if (ctrl.GetType() == typeof(System.Web.UI.WebControls.Literal))
{
if (ctrl.UniqueID.StartsWith("ABCD"))
{
Literal litTemp = (Literal)ctrl;
Database db = new Database();
string textTranslation = db.GetText(pageName, ctrl.UniqueID, languageCode);
litTemp.Text = textTranslation;
}
}
}
}
}
Problem is, some controls are ignored -- when logging/stepping through, it appears that they are not part of the ControlCollection. Any thoughts/ideas?
-- modification
When page is initially loaded, all controls are displayed properly. However, on postback, some controls are missed and appear blank (odd, as they have initial text, and the db.GetText method returns either valid text or ctrl.UniqueID surrounded by underscores).
-- end modification
Thanks,
Glenn
-- modified at 16:07 Wednesday 25th April, 2007
|
|
|
|
|
Delete else please.This is a logical error.
|
|
|
|