|
You only need to do a postback when you navigate to the next page. You can do a postback, store your values, and then move on, and then you can expect to be able to write code so when the page reloads, the values are restored.
Kissy16 wrote: i dont have any idea of javabeans.
That was a dumb idea, you're not using J2EE.
Kissy16 wrote: But by using viewstate or session variables ,it is not good.
Those are your only options, unless you do some of the other things I suggested. At the end of the day, many web apps fail if uses click the back button instead of navigating within the site. If you offer a back button, you can control the behaviour, and then the two controls on one page idea is best, viewstate will do what you want, automatically.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
You can use static property in the class.
bEst regaRd
pAthAn
please don't forget to vote on the post that helped you.
|
|
|
|
|
hi all,
Can you please help me out, how to implement browse button. i want path of the selected file.
Thanks in advance!
|
|
|
|
|
There is an ASP.NET file selection control, that's what you need.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Imran. Mohammed wrote: how to implement browse button. i want path of the selected file.
Use FileUpload Control. To get the file name use
if (FileUpload1.HasFile)
FileUpload1.PostedFile.FileName
|
|
|
|
|
Hello All,
I want to show the images in the Datagrid of ASP.NET 1.1
.............................
Further i've stored the images in a folder and those images url in the database
|
|
|
|
|
Image control has src property.Set this by Images URL in ItemTemplate of Gridview
<Image src='<%# Eval("ImageURL")%>' />
bEST rEGARD
pATHAN
please don't forget to vote on the post that helped you.
|
|
|
|
|
can u explain it actually i have a datagrid and no. of images and i want to display those images one by one and their names are stored in the database
and i'm using ASP.NET 1.1
|
|
|
|
|
the code given above is throwing an compilation error............
Plz explain it................
|
|
|
|
|
try this
bESt rEgard
Pathan
please don't forget to vote on the post that helped you.
|
|
|
|
|
sorry friend i've already tried this way it does not work
Here below i'm putting my code plz have a look and rectify if u find something wrong..........
<asp:templatecolumn headertext="Image">
<itemtemplate>
<asp:boundcolumn datafield="ID" headertext="ID">
<asp:boundcolumn datafield="ImageName" headertext="Image Name">
..("ImageURL")..
Here ImageURL is a field in my database which stores the images path........
NOTE:- Friend I donot why this is not showing my whole code what i'm putting here
So plz understand the code is being shown here
-- modified at 8:01 Monday 8th October, 2007
|
|
|
|
|
what is an error?
please don't forget to vote on the post that helped you.
|
|
|
|
|
Compilation Error
......
Is there any error in my code i put here.........
|
|
|
|
|
Can u give me the error description.
Or
try with server control.
<Image id="id" runat="server" ImageUrl="<%# Eval("imageUrl")%>" />
best regard
pathan
please don't forget to vote on the post that helped you.
|
|
|
|
|
Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: CS0103: The name 'Eval' does not exist in the class or namespace 'ASP.Rough_Images_aspx'
Source Error:
Line 32: <asp:templatecolumn headertext="Image">
Line 33: <itemtemplate>
Line 34: <asp:image id="img" runat="server" imageurl="<%# Eval("ImageURL")%>">
Line 35:
Line 36:
|
|
|
|
|
Are you using 1.1?
try this now
<img src=<%# Databinder.Eval(Container.DataItem,"ImageURL")%>
best regard
pathan
please don't forget to vote on the post that helped you.
|
|
|
|
|
Thnx a lot friend it's rocking ..............
Have a gud luck always...........
Bye
|
|
|
|
|
So, you set up a column in your grid that renders img tags with paths to the images.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Yes i've taken a column in my grid but how to set the image url to that column i'm not getting
-------------------------
|
|
|
|
|
It's incredibly simple. Your column template is an img tag, and the source is the path to your image. The other reply you got showed you the code.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
I have sub menu's in my web application and if i click on submenu's it should be redirected to some other website, which should be opened in seperate window.
Thank you.
|
|
|
|
|
|
Sorry...That link is not opened.
|
|
|
|
|
Add target="_blank" in Htmlanchortag control
bEST rEGARD
pATHAN
please don't forget to vote on the post that helped you.
|
|
|
|
|
i am using skmmenu control and i binded it with xml file. so, i dont have any HTMl anchor tags.
|
|
|
|