|
Hi,
There is a rule/checkpoint in Accessibility which says that a Web page should work even when Javascript is disabled.
Currently the Close functionality in a Web page is achieved by using "Window.Close()" in javascript. Is there a way in which Close functionality can be provided without uing Javascript? (other than using Close available in File Menu)
Please let me know.
Thanks in advance
Narendra
|
|
|
|
|
whn i update a row in database thru asp.net2005 web page thn the data update successfully but whn i click after tht updation in "Refresh" button into Internet explorer thn tht particular row update again.so how can i prevent this situtation.
-- modified at 4:50 Thursday 21st September, 2006
dcjoshi2
|
|
|
|
|
Hi,
so what u basically need is to detect a page refresh and avoid the subsequent update. Refer this link- http://www.codeproject.com/aspnet/Detecting_Refresh.asp
hope this helps you.
"If A is success in life, then A equals x plus y plus z. Work is x; y is play; and z is keeping your mouth shut." - Albert Einstein
|
|
|
|
|
there are three solutions
first one
use the negation ispostback command at load page
if(!IsPostBack)
{
update()
}
Second one
open a new page when the update process is already done
update()
response.redirect("update_ok.aspx",true);
third one
open your site onto a browser page whitout browsers bars, use a javascript function
keep Learning and you never will be out of date...
|
|
|
|
|
Hi,
I am experienced in C#, but new in ASP.NET. I cannot understand Web page life cycle. If I understand correctly, Web page class is destroyed every time you press the button or something. So I store my properties in ViewState. but there is a problem. I use TextBox to get keyword, which I use for database records retrieval. When i retrieve database records I add dynamically new rows to table with hrefs.
private void LoadData()
{
baseTechPartArray mParts = DataBase3.Get_baseTechPartArray_By_Keyword(KeyWord);
for (int i = 0; i <= mParts.Count - 1; i++)
{
TableRow mRow = new TableRow();
TableCell cellPickup = new TableCell();
TableCell cellName = new TableCell();
TableCell cellCode = new TableCell();
mRow.Cells.Add(cellPickup);
mRow.Cells.Add(cellName);
mRow.Cells.Add(cellCode);
ContainerTable.Rows.Add(mRow);
LinkButton hrefName = new LinkButton();
hrefName.Text = mParts.Get(i).name;
hrefName.Attributes["record_id"] = mParts.Get(i).id.ToString();
LinkButton hrefCode = new LinkButton();
hrefCode.Text = mParts.Get(i).code;
hrefCode.Attributes["record_id"] = mParts.Get(i).id.ToString();
ImageButton mPickupButton = new ImageButton();
mPickupButton.BorderWidth = 0;
mPickupButton.ImageUrl = "../Resources/pickup.gif";
mPickupButton.Attributes["record_id"] = mParts.Get(i).id.ToString();
cellPickup.Controls.Add(mPickupButton);
cellName.Controls.Add(hrefName);
cellCode.Controls.Add(hrefCode);
mPickupButton.Click += new ImageClickEventHandler(mPickupButton_Click);
hrefCode.Click += new EventHandler(hrefCode_Click);
hrefName.Click += new EventHandler(hrefName_Click);
cellPickup.Attributes["width"] = "1%";
cellCode.Attributes["width"] = "30%";
}
}
but Click events does not work until I add Load() method to PageLoad or LoadViewState.
But then some of table rows are still from first page load, I try to clear them, but it does`nt help. What simple framework or principle should I use 1)to get work simple onevent -> 2)add dynamic elements with their events -> 3)use dynamically added control events?
|
|
|
|
|
Can you tell me what is the problem, without elaboration.
|
|
|
|
|
The problem is, that everything show up good, but click events does`nt work. When I click on dynamically added hyperlinks, hyperlink click event does`nt run, but page reloads and everything is gone.
|
|
|
|
|
When you are adding controls dynamically to the page, you need to ensure the childcontrol exists on the other call. This you can do either by adding everytime when you call the page.
protected void Page_Load(object sender, EventArgs e)
{
Load();
}
then it works fine.
let me know whether it works or not?
I will on-line only.
|
|
|
|
|
Hi,
There is a rule/checkpoint in Accessibility which says that a Web page should work even when Javascript is disabled.
Currently the Print functionality in a Web page is achieved by using "Window.Print()" in javascript. Is there a way in which Print functionality can be provided without uing Javascript? (other than using Print available in File Menu)
Please let me know.
Thanks in advance
Narendra
-- modified at 3:35 Thursday 21st September, 2006
|
|
|
|
|
how to find longitude and latiutude of a perticular place from a map??????...i have to merge a perticular icon in a map,suppose in indias map when the administrator is inputting the corresponding geographical measures.(longitude and latitude).
first to check whether the given measures are covering which area..after checking that it identifies that area is India.then it finds the inner exact position and merge the icon image there..(For this i am using gif images of background map(image1) and icon(image2).i want to merge image2 on image 1 when ever inserting the measurement in the database...)
TRY IT>>>ITS NOT SIMPLE I THINK>>>give me idea about grids also..that can help..
|
|
|
|
|
That depends on how precisely and accurately you have to specify the location.
Every map is distorted in some way or another, as the map is flat while the earth is not. If the map is distored in the way that produces a linear coordinate grid, it's easy to calculate the location from the coordinates of the edges of the map.
---
b { font-weight: normal; }
|
|
|
|
|
guffa,check this link:
www.mapquest.com/maps/latlong.adp
its what i want..
|
|
|
|
|
i think program is fetching the values from a predefined map..
|
|
|
|
|
Yes, I know what you mean. There is no reason to merge images to do that. Have a look at this map function that I have made recently. The blue circle is an image that is displayed on top of the map image.
Map @ www.bytbil.com[^]
---
b { font-weight: normal; }
|
|
|
|
|
Please read my reply to ur message regaring adding image 2 into Image 1 that can help you to solve this issue also.
"Walking on water and developing Software on a specification is easy, if
both are frozen..."
|
|
|
|
|
Hi
Can any body tell me exactly difference between
application server and web server
examples for application server and web server
i want to know more details regarding this topic
can any body suggest a site
regards
C.Muru
|
|
|
|
|
Hi,
A Web server exclusively handles HTTP requests, whereas an application server serves business logic to application programs through any number of protocols.
With Regards
Satips
|
|
|
|
|
I hav a login page.where i want to prevent reuse of password using Active Directory.
My Password Location is Active Directory.
I want to store my previous password on AD.When i enter new password it should get accepted but later when i enter my first password it should prevent the password.
I mean to say:It should not allow me to enter previous password.
Please reply me on this ID --->Farid_01801@hotmail.com
Mohammed Farid
-- modified at 2:51 Thursday 21st September, 2006
|
|
|
|
|
HI,
In my application there are four pages (Page1, Page2, Page3 and Page4).
Each page have some basic controls and Web grids and also a "Save" button.
If I click on a "Save" button from any page all four pages data is to be saved to Database.
I am using Asp.net 2.0, C# and Sql Server 2005
Thanks and Regards,
Uma
|
|
|
|
|
Hi,
+You can make use of 'MultiView' control, but it is a single .aspx file.
In this, you can show single (Web Page) .aspx file LIKE a multiple page.
+But you can achieve what you need exactly by storing all the Page Values in Session or something else, before Saving to Database.
Regards,
Jay
|
|
|
|
|
save data from datagrid to excel, please follow the link...
http://www.msakademik.net/makaleler_detay.aspx?id=598
|
|
|
|
|
Hi all
Can any one give me the syntax of Mysql connection string
THx
asdfasdfasdfasdfasdfasdfasdfasdfasdfasdf
|
|
|
|
|
|
i was working on a datagrid. if the cell of the datagrid is blank it is suppossed to return nothing; else the content/text of the cell; and i have used the following code...
<br />
dim i as integer<br />
i=dgrid.items.count<br />
for i = 0 to count-1<br />
Dim strconst As String<br />
If dgrid.Items(i).Cells(4).Text.Trim Is Nothing Then<br />
strconst = ""<br />
Else<br />
strconst = dgrid.Items(i).Cells(4).Text<br />
End If<br />
next<br />
but even if the cell is blank, the if does't works and the variable contains <big>"& n b s p ;". </big> let me know how to fix this. thanks in advance.
sebastian
|
|
|
|
|
dim i as integer
i=dgrid.items.count
for i = 0 to count-1
Dim strconst As String
'Check out the below line.
If dgrid.Items(i).Cells(4).Text.Trim = String.Empty Then
strconst = ""
Else
strconst = dgrid.Items(i).Cells(4).Text
End If
next
|
|
|
|