|
Solly, this is a VS bug. Do you have alot of classes in your app_code folder?
I had the same problem not too long ago, and it drove me MAD. Try this: recreate (copy/paste) your form, data access class, and see if your object data source can find it.
Another way would be to do it in code view (not the designer), but it is a real pain to not do things like this visually.
Nila
|
|
|
|
|
There are a couple of things that you may check:
+ The class is marked as public.
+ By default the Configure DataSource dialog box only displays the objects marked with the attribute DataObjectAttribute . If your objects don't have this attribute then you need to uncheck the checkbox "Show only data components"
|
|
|
|
|
Hello,
I am trying to build an ASP.NET webform that uses the en-GB culture. This screen needs to display dates MM-dd-yy and currencies in EUR using the € or € symbol.
1) does the Euro symbol come before or after the currency amount? Is there a space between them?
2) I set the culture page directive in the ASP.NET page to en-GB. This makes the currencies in my datagrid display in the GBP, but I need currencies to show in the euro. How is this overridden?
<br />
' page directive...<br />
Culture="en-GB"<br />
. . .<br />
' datagrid<br />
<%# DataBinder.Eval(Container.DataItem, "UNIT_PRICE", "{0:C}") %><br />
[Note: This is .NET 1.1, VS. NET 2003]
Thanks for the tips,
-- modified at 13:49 Monday 21st August, 2006
Josh Blair
http://joshblair.blogspot.com/
|
|
|
|
|
Hi there,
According to the official recommedation, the currency symbol comes before the money amount with no space in between, however it may vary from nations to nations. You can read more about this from the links:
http://ec.europa.eu/economy_finance/euro/our_currency_en.htm[^]
http://en.wikipedia.org/wiki/Euro#The_currency_sign_.E2.82.AC[^]
And the default currency symbol of the en-GB cutlure is the £, not the €, so to use the euro symbol, you'll have a couple of options to do:
+ Change the currency symbol in the Regional setting in the control panel.
+ Change the currency symbol at runtime using the CurrencySymbol property of the NumberFormatInfo object.
+ Hard code the currency symbol when you do the number formatting.
|
|
|
|
|
Thanks for the tips.
Josh Blair
http://joshblair.blogspot.com/
|
|
|
|
|
i want to show calender when user click in textbox
omi
|
|
|
|
|
omi98 wrote: i want to show calender when user click in textbox
And what specifically[^] are you having trouble with?
|
|
|
|
|
Create a web form and name it 'PopUpCalendar.aspx'.
add a calendar control onto it.
On your calling form add a textbox with property as below:
<A onclick="window.open('PopUpCalendar.aspx textbox=txtStartDate','cal','width=220,height=200,left=450,top=150')"
tabIndex="-1" href="javascript:;"> <asp:TextBox id="Textbox2" style="Z-INDEX: 103; LEFT: 8px; POSITION: absolute; TOP: 8px" runat="server"></asp:TextBox></a>
postmaster
http://www.programmingknowledge.com
-- modified at 22:11 Monday 21st August, 2006
|
|
|
|
|
Hi:
I know in ASP.NET 2.0 that there is a new handler called WebResource.axd that enables control and page developers to download resources that are embedded in an assembly by making use of the Page.GetWebResourceUrl method.
Can anyone tell me how this can be accomplished in ASP.NET 1.1? Is there an alternative ?
I would really appreciate any DETAILED suggestions or references to articles...
Thanks...
|
|
|
|
|
|
can anyone explain to me how I can do the following and how it works.
I have a listbox on a page. I also have a control (menu.ascx) that changes a querystring variable on the navigateurl property according to the selected value of that list box. On the pages first load this all works fine, however, when you change the value of the list box it does not update the button. I presume this is something to do with th order of events e.t.c but surely there is a good way to access parent controls values. This seems like something lots of people would want to do.
Example:
Lisbox: value is 1 name is Bob
Mybutton1.NavigateURL = "~/myfiles/showperson.aspx?id=" & The passed variable here
|
|
|
|
|
You can access controls in the parent page.
Button Mybutton1 = (Button) this.Parent.FindControl("Mybutton1");
how vital enterprise application are for proactive organizations leveraging collective synergy to think outside the box and formulate their key objectives into a win-win game plan with a quality-driven approach that focuses on empowering key players to drive-up their core competencies and increase expectations with an all-around initiative to drive up the bottom-line. But of course, that's all a "high level" overview of things
--thedailywtf 3/21/06
|
|
|
|
|
hi,
i have a dropdown list which should be databound to a database table. Thats is fine, but i want to have first 2 entries of the list to be static and the rest from database table...like
list values : choose one....
All
the rest from database table.
to achieve this what to do in the asp.net page and in the c# page.
thanks
|
|
|
|
|
You can add the values to sql statement using a union statment. Or after the databind insert a listitem object into the dropdownlist.
how vital enterprise application are for proactive organizations leveraging collective synergy to think outside the box and formulate their key objectives into a win-win game plan with a quality-driven approach that focuses on empowering key players to drive-up their core competencies and increase expectations with an all-around initiative to drive up the bottom-line. But of course, that's all a "high level" overview of things
--thedailywtf 3/21/06
|
|
|
|
|
|
Set "AppendDataBoundItems" property of DropDownList to "true" and all databound items will be added after items you've added manually.
e.g.
<asp:DropDownList id="SomeDropDownList" AppendDataBoundItems="true" runat="server">
<asp:ListItem>Please choose one</asp:ListItem>
<asp:ListItem>_________________</asp:ListItem>
</asp:DropDownList>
|
|
|
|
|
sidonath,i think asp.net1.1 dropdownlist control does not have the AppendDataBoundItems property.
|
|
|
|
|
Hi,
Assume that we have a table with an identity column and a text column. I want a class that let me easily fetch the records of that table just with giving it the page number and hide the complexities. I might consider this features for this class :
This class gets the table name and page size as input. Then returns number of pages . After initializing the class , we can easily fetch records by giving it the page number.
If someone knows a class with features I mentioned please let me know .
|
|
|
|
|
All it takes is a method like this:
public DataTable GetPage(int page, int pageSize, DataTable table)
{
if (page < 1 || pageSize < 1)
throw new Exception("Illegal paging values");
if (table.Rows.Count < 1)
throw new Exception("Invalid table");
int fromRow = page * pageSize - pageSize;
int toRow = fromRow + pageSize;
DataTable dt = new DataTable();
for (int i = fromRow; i < toRow; i++)
{
dt.Rows.Add(table.Rows[i]);
}
return dt;
}
|
|
|
|
|
In this method we need to have all records loaded in the table(DataTable) that consumes too much memory. I need a way that let me just fetch the required records associated with the page number user requested from the database. I think we have to use TOP keyword in SQL . But I need a class that is easy to use.
Please help me .
|
|
|
|
|
hi frnds,
How do i get the ID of a user control using javascript???
On click of a button
i want to make my calender control, which is a user control visible
how do i do that??Pls help me out
Regards,
Sivaprasad
|
|
|
|
|
The ClientId property of the control contains the id that you can use from client script.
Note: You have to hide the control using css, not the Visible property, otherwise it will not be rendered as html and you can not show it using client script.
---
b { font-weight: normal; }
|
|
|
|
|
Hi
I need to display a single image at random from a given folder, whenever a page is loaded. This is so we can drop images into the folder without having to record its name in a database.
Can anyone help?
Thanks!!!
|
|
|
|
|
|
Random r = new Random();
System.IO.DirectoryInfo d = new System.IO.DirectoryInfo(@"C:\YourImageDirectory");
System.IO.FileInfo[] fi = d.GetFiles();
int file = r.Next(fi.GetLength(0));
string FIleName = fi[file].FullName;
-- modified at 9:51 Monday 21st August, 2006
how vital enterprise application are for proactive organizations leveraging collective synergy to think outside the box and formulate their key objectives into a win-win game plan with a quality-driven approach that focuses on empowering key players to drive-up their core competencies and increase expectations with an all-around initiative to drive up the bottom-line. But of course, that's all a "high level" overview of things
--thedailywtf 3/21/06
|
|
|
|