|
Sir, I want the coding for storing datas into access database.
|
|
|
|
|
Google broken where you live ? What have you tried ?
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
|
wrote: I want the coding for storing datas into access database
Can't really do that. You did not supply a clear/concise need or database information at all. Code for storing data in a database depends on the schema, etc of the database. There is no one clear answer to your need.
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
|
It's with JS and AJAX concepts.
|
|
|
|
|
the moment , it changes the pic, i think that moment , the request should go to the server.I mean when it changes the pic automatically, after that , i click the ALT + Back button , it should take me to the previous pic , but the moment i click at the back button it is taking me to yahoo.com page.
Yesterday is a canceled check. Tomorrow is a promissory note. Today is the ready cash. USE IT.
|
|
|
|
|
Sonia Gupta wrote: i click at the back button it is taking me to yahoo.com page.
AJAX calls won't be stored by the browser to take you to the back. So pressing back button will take you the page where you came from.
|
|
|
|
|
I recommend the book 'AJAX in Action' as a way of understanding what's happening here.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Christian Graus wrote: AJAX in Action
I was looking for this since last two months. Looks like indian edition is not available yet !
|
|
|
|
|
N a v a n e e t h wrote: indian edition is not available yet
As you know, Indian Edition is much cheaper than the original version.. I was in India last year and I was so happy to buy the books over there.
|
|
|
|
|
That's a pity. It's a great book. I guess it's not financially viable for you to buy from Amazon ? That sucks.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
|
Christian Graus wrote: I guess it's not financially viable for you to buy from Amazon
Yes you are correct. It's not financially viable for me to get it from Amazon. It's very costly there.
|
|
|
|
|
output type parameter int in the sql server 2000 helps in returning the value.Can i extract the string from the stored procedure .I wrote the following syntax
@error varchar(100) output
but this is not working.
I wanted to get the string in the code behind .
Please Help.
Yesterday is a canceled check. Tomorrow is a promissory note. Today is the ready cash. USE IT.
|
|
|
|
|
Hard to know what 'it's not working' means. If you add a variable to the code that calls your proc, and you set it to be an output variable, once you close the connection, you should be able to use that variable to access the value.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
You have to set the parameter direction to output. Then access the value of that particular parameter after calling stored procedure.
|
|
|
|
|
Sonia Gupta wrote: this is not working
It doesn't really help when you aren't clear as to what is not working.
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
I am creating this page where I am reading from the database using a SqlDataReader and Loading the info into an ArrayList. The ArrayList is a class member and the ArrayList object has been created in the class constructor, therefore, this object should be visible to all other members of the class.
However, if I add some objects to the ArrayList in a MenuItem_Click and then try to read those added objects from a Button_Click, it shows the ArrayList is empty - which seems quite surprising. Obviously I am missing something.
Any help?
Thanks.
Ekjon
|
|
|
|
|
The two clicks happen on different postbacks, so there's a new list each time.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Hi Christian,
Thanks for the reply. I worked mostly with non-web-based apps, so I thought if I create the ArrayList in the costructor, its always the same List unless the page is disposed.
So, what would be the solution? How do I get the same Even if I use a DataSet, is it gonna behave the same way? Please help.
Thanks.
Ekjon
|
|
|
|
|
Everything is going to work the same way, your options are:
1 - store it in viewstate ( this means it goes down to the client every time, making it insecure, and also making your pages huge )
2 - store it in the session ( I don't like this if I can avoid it )
3 - don't store it at all, redirect so some value is on your URL that allows you to rebuild the data from the database.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Thanks so much Christian. It was really helpful. I thought there could be a better way that I don't know, but looks like there isn't. Off course I'll not use ViewState, probably, I'll use the Session.
|
|
|
|
|
I am trying to create a table for layout. Simple header, content and footer sections (rows).
I want the header to sit flush against the top of the page and the footer to sit at the bottom of the page. The content section should fill the available space. I thought setting the height of the table to 100% would accomplish this but there appears to be problems. Is there a neat solution to this problem? What is the workaround?
Code shown below:
<br />
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %><br />
<br />
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><br />
<br />
<html xmlns="http://www.w3.org/1999/xhtml"><br />
<head runat="server"><br />
<title>Untitled Page</title><br />
</head><br />
<body><br />
<br />
<asp:Table Width="100%" Height="100%" BackColor="Azure" runat="server"><br />
<asp:TableRow><br />
<asp:TableCell Height="50px">top</asp:TableCell><br />
</asp:TableRow><br />
<br />
<asp:TableRow><br />
<asp:TableCell BackColor="Beige"><br />
<form id="form1" runat="server"><br />
<div><br />
mid<br />
</div><br />
</form><br />
<br />
</asp:TableCell><br />
</asp:TableRow><br />
<br />
<br />
<asp:TableRow><br />
<asp:TableCell Height="50px" BackColor="BlanchedAlmond">bottom</asp:TableCell><br />
</asp:TableRow><br />
<br />
<br />
</asp:Table><br />
</body><br />
</html><br />
<br />
<br />
<br />
|
|
|
|
|
Try to use with CSS. Because there is some issues in using Width of table directly.
|
|
|
|