|
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
|
|
|
|
|
Hi
In my application, i am using gridview bind with objectdatasource. In gridview i am having some coloumn and also the last column is Edit column that is designed in gridview control itself. While clicking Edit link all the textboxes are displayed after giving value i have to click update. But Before update i have to validate that all the textbox contains text or not. Can anyone please help me. I need it immediately. THanks in previous.
Prya
|
|
|
|
|
The easiest way would be to add a requiredFieldValidator control and set the properties.
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 Expert,
I am facing some critical problem .Kindly help me.
I would like to write code in asp.net to check java script is enabled or disabled as well as cookies is enabled or disabled on client PC. If any one has code or link ,please let me know .
Any help is appreciated.
Thanks & Regards
Rajesh
rajesh
|
|
|
|
|
|
Use the following code:
Dim bc As HttpBrowserCapabilities = Request.Browser
Dim js As Boolean = bc.JavaScript 'if js returns true then enabled else disabled
Dim cks As Boolean = bc.Cookies ' if cks returns true then cookies is enabled else disabled.
Thanks and Regards,
Suresh Dayma
|
|
|
|
|
You could always put a large warning in your markup, then attempt to hide it with javascript. If javascript is enabled, then the warning is hidden. If it is disabled then the warning stays.
|
|
|
|
|
Hi all,
I have some implementation problem.
I want to show images from database in datagrid.
for that I want to create dynamic table in grid.In this grid one row can fit single image or row can contain more than one images depend upon size.
I know I am still not clear but it is somthing to create rows at runtime and changing there colspan property.
I hope u help me.
Regards,
Nagraj
|
|
|
|
|