|
sathimailin1 wrote: But is there any possiblity or not to store the image in DB and to retrive?
not shure what you mean by this but if you mean you don't want to store the image in the db but still want to be able to show the image this is how you can do it:
you can make a map (lets call it images) on the place where you host you're site. then instead of saving the image in the db you just save it's name in the db (where you save the image now) and you move or copy the image to the map 'images'. That way all you have to do is retrieve the name of the image from the db and you can display it any way you want. (I'm far from a ASP specialist so for more detail on this you'll need to ask christian or someone else in the ASP.NET forum)
If my help was helpfull let me know, if not let me know why.
The only way we learn is by making mistakes.
|
|
|
|
|
OK Thanks let i ll Wait for Christian's answer for this
Thanks TDDragon
|
|
|
|
|
You might want to repost you'r question in reply to christians post so that he get's a notification otherwise I doubt that he'll find you'r question
If my help was helpfull let me know, if not let me know why.
The only way we learn is by making mistakes.
|
|
|
|
|
Create a project named "calculator",consist a form named"calc".The project is provided with a calculator which can also be used for rough currency conversions.
1.Making a calculation
It can calculate with the following operator:
+ to add
- to substract
* to multiply
/ to provide
= to execute(equal)
2.Making a currency conversion
This option can set exchange rate for multiple currencies.
exchange from US dollars to KH Riels.]
Note:$ 1=4,000 Riels
|
|
|
|
|
Yeah, I tell beginners that a calculator is an awesome first project. Good luck with it. I'm not sure why you've posted your homework question here, is it meant to be some sort of heads up so that when you ask real questions, after working on this yourself, we'll have a heads up ? Anyone here would find this project trivial, but of course, you wouldn't want us to do it for you, because you wouldn't learn anything that way, right ?
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 hope you fail your course for this pathetic attempt at getting someone to do your homework for you.
This is a trivial application, you should be ashamed.
|
|
|
|
|
if this is his first application its a good one to get started with.
but by posting this here he tells us he is to lazy to learn and wants others to do his work for him.
To bad for him that will not work here.
also this application is given to students all over the worlk as one of there first 'real' projects so I'm pretty shure he's trying to make us do his homework.
If my help was helpfull let me know, if not let me know why.
The only way we learn is by making mistakes.
|
|
|
|
|
True. Calculator is an application that is given for beginners starting with VB.
|
|
|
|
|
No one here to do your project. So Try to do your self. when ever you face any problem Then put it into forum. Every one will help you, but you have to try it first.
Good luck.
And Make one habit, while post your question Do Say like
Nut Sophanny wrote: Subject:Re: Hi All!
Just put your rquirment as qustion, other wise no one will look into this
Again Good luck...
|
|
|
|
|
Salve a Tutti ho questa Form su una pagina web
Volevo chiedere se qualcuno mi dice come inviare la stringa di connessione
o meglio in che sequenza inviare i dati della Form
Hello All I have this form over a webpage
I wanted to ask if someone tells me how to send the string connection
Or rather what sequence send data Form
Grazie in anticipo
Aspetta... "input name="20fe1c1e41ca88c835526f191845aaec" value="zWvO2KSlm8any6uVmJdrxQ==" type="hidden">input name="2a62d1ddd25c3c3fa8bacd3e1b25bc09" value="zGmjp5pyMnUlq1klpZqkg==" type="hidden">"
Mrfulvio
|
|
|
|
|
Wrong Language And Wrong Forum
Go here and ask this Question
http://www.codeproject.com/script/comments/forums.asp?forumid=12076[^]
Thanks
Vuyiswa Maseko,
Sorrow is Better than Laughter, it may Sudden your Face, but It sharpens your Understanding
VB.NET/SQL7/2000/2005
http://vuyiswamb.007ihost.com
http://Ecadre.007ihost.com
vuyiswam@tshwane.gov.za
|
|
|
|
|
|
bjk88 wrote: Any ideas as to the formula that would do this?
You can probably find it in the front or back of any good diary - They usually have things like that.
Alternatively, type in "1 mile as kilometers" into google and it'll do the conversion for you - You can then see what the factor is.
By the way, a wee tip: Convert the miles, feet and inches into one single value first. It means you only have to do one simple conversion. Similarly with the kilometers, metres and centimetres.
|
|
|
|
|
Oh No, I guess you'll never find a solution for such a difficult problem!
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
|
|
|
|
|
CPallini wrote: Oh No, I guess you'll never find a solution for such a difficult problem!
I guess that's why students all over the world is faced with this assignment. The teachers hope that someone might finally solve it.
---
"Anything that is in the world when you're born is normal and ordinary and is just a natural part of the way the world works. Anything that's invented between when you're fifteen and thirty-five is new and exciting and revolutionary and you can probably get a career in it. Anything invented after you're thirty-five is against the natural order of things."
-- Douglas Adams
|
|
|
|
|
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
|
|
|
|
|
Just because someone makes fun of you doesn't mean you should delete your posts (I use the plural because you replied to my response with a follow up then deleted it before I realised it was there)
I was going to answer your follow up, but since it is gone it seems rather pointless to continue to try to help.
|
|
|
|
|
Hi
Now i can get the properties and all the things ,storing in an xml file .
I would like to thank to Mr.Dave.K for sharing useful information regarding form designers link .
dvs
|
|
|
|
|
Hi the follwoing code i used for my user control tab events...,
See in that code,i have said the tabs and its subtabs and its url refer sites...,
Now my quest is...,
I like to view the tabs based on the user entry...,
It means i have 2 tables in one table i have said the userid,pagenum..,
Another table i said pagenumber,pagename & pageurl...,
Now using the following code how to display the tabs,sub tabs and its url instead of display static how to dispaly dynamic(based on userid)??????,...
Plz help me,
My static code follows here :
'Adding here main tabs
Dim _Text As ArrayList = New ArrayList
_Text.Add("Admin")
_Text.Add("Guest")
Dim ts As JQD.TabStrip = CType(Me.FindControl("TabStrip1"), JQD.TabStrip)
ts.TabText = _Text
Dim _SubTabText As Hashtable = New Hashtable
'Adding here Sub tabs for that Admin (main) tab
_Text = New ArrayList
_Text.Add("Admin User Login")
_Text.Add("Admin Default Page")
_SubTabText.Add(0, _Text)
'Adding here Sub tabs for that Guest (main) tab
_Text = New ArrayList
_Text.Add("microsoft")
_Text.Add("oracle")
_SubTabText.Add(1, _Text)
ts.SubTabTextCol = _SubTabText
AddHandler ts.SelectionChanged, AddressOf Me.ts_SelectionChanged
Private Sub ts_SelectionChanged(ByVal sender As Object, ByVal e As JQD.TabStrip.SelectionChangedEventArgs)
'Assigning links for that sub tabs
Dim TabPos As Integer = e.TabPosition
Dim SubPos As Integer = e.SubTabPosition
Select Case (TabPos)
Case 0
If (SubPos = 0) Then
src = "Admin1.aspx"
End If
If (SubPos = 1) Then
src = "Admin2.aspx"
End If
Case 1
If (SubPos = 0) Then
src = "Guest1.aspx"
End If
If (SubPos = 1) Then
src = "Guest2.aspx"
End If
End Select
Session("src") = src
End Sub
Regards,
Magi
|
|
|
|
|
If I'm getting this right only 1 of you're 2 tabs should be shown depending on wich user it is.
If that is the case:
you'll have to detirmen wich user is logged in (admin/guest) and act accordantly
it it is admin user only exacute the code for the admin user if its guest only the code for guest
a simple If select would be enough to do this provided that you know wich user is logged on
If my help was helpfull let me know, if not let me know why.
The only way we learn is by making mistakes.
|
|
|
|
|
Hi Dragon,
Thanks For ur reply,
But its not only depend on 2 users...,
Its depend on multiple users...,
Each user have some links and some one have some links extra...,
It will be like that..,,
So we cabnt assign only admin/guest like...,
Regards,
Magi
|
|
|
|
|
in that case the following might be better (I am asuming you have a db with the users in it):
Dim ts As JQD.TabStrip = CType(Me.FindControl("TabStrip1"), JQD.TabStrip)
ts.TabText = _Text
Dim _SubTabText As Hashtable = New Hashtable
_Text = New ArrayList
_Text = New ArrayList
_Text.Add("microsoft --> from db")
_Text.Add("oracle --> from db")
_SubTabText.Add(0, _Text)
ts.SubTabTextCol = _SubTabText
AddHandler ts.SelectionChanged, AddressOf Me.ts_SelectionChanged
Private Sub ts_SelectionChanged(ByVal sender As Object, ByVal e As JQD.TabStrip.SelectionChangedEventArgs)
Dim TabPos As Integer = e.TabPosition
Dim SubPos As Integer = e.SubTabPosition
src = e.tag
Session("src") = src
in plain english (since the above might not be entirly correct) you have the login from the user
so now you create a tabstrip with that login as base.
With that login you can retrieve from the database what the default page is and assign it.
after that you can retrieve all the pages this user has, for each page you create a new tab and (very important) in the tag property (if this exists in asp if not you will have to find another way to pass the page) put the page that needs to be displayed .
then in you're handler class you can simply retrieve the source from this tag property (sender.tag (you might need to cast the sender object to a tabstrip before you get its property's)) and assign it to the session
I hope this helps
if it doesn't help can you paint me a mental picture of how you want this all to look since right now I'm not shure if I have it right and ASP is far from my speciality so I don't know all the controls.
If my help was helpfull let me know, if not let me know why.
The only way we learn is by making mistakes.
|
|
|
|
|
hi guys. beginner here!
following code throws up an formatexception error. unsure how fix the problem
reading from a text file with the data:
Rovers
6
1
1
12500
120000
United
4
2
2
20200
400000
City
1
0
7
8000
85000
Public Class Form1
Private Sub btnOutput_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnOutput.Click
Dim sr As IO.StreamReader = IO.File.OpenText("C:\Documents and Settings\Administrator\My Documents\Visual Studio 2005\Projects\Assessment2\football.txt")
Dim fmtStr As String = "{0, -15}{1, 10:N0}{2, 8:N1}{3, 8:N2}{4, 8:N3}{5, 8:N4}{6, 20:N5}(7, 20:C}{8, 8:P0}"
Dim team As String
Dim played, won, drawn, lost, points, aveA, aveI, perc As Integer
lstbox.Items.Add(String.Format(fmtStr, "Team", "Played", "Won", "Drawn", "Lost", "Points", "AveAttendance", "AveIncome", "%Won"))
team = sr.ReadLine
won = sr.ReadLine
drawn = sr.ReadLine
lost = sr.ReadLine
played = won + lost + drawn
points = (won * 3) + (drawn * 1)
aveA = sr.ReadLine
aveI = sr.ReadLine
lstbox.Items.Add(String.Format(fmtStr, team, won, drawn, lost, points, aveA, aveI, perc))
team = sr.ReadLine
won = sr.ReadLine
drawn = sr.ReadLine
lost = sr.ReadLine
played = won + lost + drawn
points = (won * 3) + (drawn * 1)
aveA = sr.ReadLine
aveI = sr.ReadLine
lstbox.Items.Add(String.Format(fmtStr, team, won, drawn, lost, points, aveA, aveI, perc))
team = sr.ReadLine
won = sr.ReadLine
drawn = sr.ReadLine
lost = sr.ReadLine
played = won + lost + drawn
points = (won * 3) + (drawn * 1)
aveA = sr.ReadLine
aveI = sr.ReadLine
lstbox.Items.Add(String.Format(fmtStr, team, won, drawn, lost, points, aveA, aveI, perc))
sr.Close()
End Sub
End Class
|
|
|
|
|
bjk88 wrote: following code throws up an formatexception error. unsure how fix the problem
reading from a text file with the data:
What is the message of the exception and where did it happen?
|
|
|
|
|
A first chance exception of type 'System.FormatException' occurred in mscorlib.dll
Input string was not in a correct format.
it occurs in the line:
lstbox.Items.Add(String.Format(fmtStr, "Team", "Played", "Won", "Drawn", "Lost", "Points", "AveAttendance", "AveIncome", "%Won"))
|
|
|
|
|