|
I have nothing to add on the technical side, however I would like to advise you against using Access. You are much better off using a better quality project such as MySQL, Oracle, Postgre or MsSQL [Express]. These products are much more accepted in the community, Access is a toy.
Brad
Australian
- Bradml on "MVP Status"
If this was posted in a programming board please rate my answer
|
|
|
|
|
Thanks in advanced i'll try my best
Socheat
................
|
|
|
|
|
Bradml wrote: Access is a toy
Not really. You can a considerably DB-intensive busy website on Access with no issues. You get a benefit of portability and being able to FTP down/up a full snapshot of the DB. Not quite as simple to do with My/MS-SQL. However I admit that in many other areas, Access doesn't shine at all compared to actual database servers.
"For fifty bucks I'd put my face in their soup and blow." - George Costanza CP article: SmartPager - a Flickr-style pager control with go-to-page popup layer.
|
|
|
|
|
Hi there .i just need a way to make different kinds of links
Give an example please,if u have the time
thanks
|
|
|
|
|
In what way do you want the links to be different?
---
single minded; short sighted; long gone;
|
|
|
|
|
i create css for a link ok?and every link on the page follows this rule.i don't want that
i want some of the links for example to have different color or hover behaviour
thanks
|
|
|
|
|
Here are some examples on how you can set style on links:
All links with class="Info":
a.Info { color: #fff; }
All links within an element with class="Info":
.Info a { color: #000; }
All links within an element with id="Info":
#Info a { color: #f00; }
All links within a div tag within an element with class="Info":
.Info div a { color: #00f; }
All links within a div tag with class="More" within an element with class="Info":
.Info div.More a { color: #0f0; }
---
single minded; short sighted; long gone;
|
|
|
|
|
exactly what i was looking for ,man
thanks
ninja coding
|
|
|
|
|
You would have to specify a different class for each link that you want to be different. This might help you.
Trinity: Neo... nobody has ever done this before.
Neo: That's why it's going to work.
|
|
|
|
|
you mean maybe an id to each different type of links cause of what i understand they all follow the a:.... rule
so maybe this could work? #link1{..
}
,
#link2{..
is the next thing i'll try
thanks
|
|
|
|
|
xxrono wrote: you mean maybe an id to each different type of links
Use class instead of id if you have more than one occurrence of the type on a page and you are going to validate against an XHTML validating parser.
I am not sure about HTML, because I code and validate my pages using XHTML 1.0 specification, but in XHTML each id needs to be unique.
You can have multiple elements of a class and can accomplish the required formatting of groups of elements using CSS.
|
|
|
|
|
Simple CSS ? No such thing.
CSS: great idea, lousy implementation.
IMHO.
Fred
|
|
|
|
|
I am quite new to the environment and seem to have goofed myself up someplace, so any help is appreciated.
I have form1 - form1.aspx, if I double click a button to add code, VS opens form1.aspx.vb, then I had form2, same deal, double click a control to edit code and get form2.aspx.vb. Then one day I was tweaking a bit of formatting and now when I double click a control on form1, it opens form2.aspx.vb
What in the world did I do to deserve this? Any ideas what I did?
Mike
|
|
|
|
|
Check your "Inherits" and "CodeFile" attributes of the ascx page - thay may be pointing in the wrong directions...
"Knock me down, I'll get straight back up again, I'll come back stronger than a powered up pacman"
(Lilly Allen / Kaiser Chiefs)
|
|
|
|
|
Thanks they were, not sure how they got goofed up, or why I would need to open it in a text editor to fix it.... maybee there is an easier way...
Regards,
Mike
|
|
|
|
|
1) Is there a way to debug VBScript in a web page?
2) I have a string that represents a color, let's say "#FFFF00". How do I convert that into the individual component colors, like FF, FF, and 00? Here's what I've tried so far:
'-------------------------------------------------------------------------------
'-------------------------------------------------------------------------------
function GetColorValue(sColor, nShade)
Replace sColor, "#", ""
Dim nVal: nVal = 0
select case nShade
case 0 nVal = CLng("&H" & (Mid(1, 2))) ' red
case 1 nVal = CLng("&H" & (Mid(3, 2))) ' green
case 2 nVal = CLng("&H" & (Mid(5, 2))) ' blue
end select
GetColorValue = nVal
end function
2a) Would I be better off usng javascript for this function?
2b) Can I even return a value from a javascript function to vbscript code?
-- modified at 11:57 Monday 7th May, 2007
Here's what I ended up with:
'-------------------------------------------------------------------------------
' Extracts the color value from the string that represents the backgorund color.
' It's assumed that the color will ALWAYS be in the standard hex notation of
' #RRGGBB. jms - 07May2007
'-------------------------------------------------------------------------------
function GetColorValue(sColor, nShade)
Dim nVal: nVal = 0
select case nShade
case 0 nVal = CLng("&H" & (Mid(sColor, 2, 2))) ' red
case 1 nVal = CLng("&H" & (Mid(sColor, 4, 2))) ' green
case 2 nVal = CLng("&H" & (Mid(sColor, 6, 2))) ' blue
case else nVal = 255
end select
GetColorValue = nVal
end function
'-------------------------------------------------------------------------------
' Determines the best choice of text color based on the background color. The
' two possible resulting values are black text or white text. jms - 07MAY2007
'-------------------------------------------------------------------------------
function BestFontColor(sBkColor)
if sBkColor(1) <> "#" OR Len(sBkColor) < 7 then
BestFontColor = "#000000"
exit function
end if
Dim nRed: nRed = GetColorValue(sBkColor, 0)
Dim nGreen: nGreen = GetColorValue(sBkColor, 1)
Dim nBlue: nBlue = GetColorValue(sBkColor, 2)
Dim nThreshold: nThreshold = 105
Dim bgDelta: bgDelta = int((nRed * 0.299) + (nGreen * 0.587) + (nBlue * 0.114))
if 255 - bgDelta < nThreshold then
BestFontColor = "#000000"
else
BestFontColor = "#FFFFFF"
end if
end function
I suppose I could extend the validity checking on the specified background color, but frankly, I'm kinda pressed for time.
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
Hi Guys,
Do you know if how can I pass the value from one aspx to another aspx.
For instance, I have an Employee.aspx that has an EmployeeID (integer type). Then I have another page - EmployeeInfo.aspx.
Now, what is the best way of passing the EmployeeID from Employee.aspx to EmployeeInfo.aspx.
Can you show me some tips on how to do it?
Thanks in advance Guys
hifiger2004
|
|
|
|
|
There are many ways
1)Cookies
2)Session
3)QueryString
Suppose u want to pass variable 'emp_id', using Session
In Employee.aspx page
Session["id"]=emp_id;
In EmployeeInfo.aspx page
string empid=Session["id"].ToString();
|
|
|
|
|
In addition to those mentioned, you can use HttpContext.
See this article fro detailed description of all possible storages
Sincerely,
Elina
Life is great!!!
Enjoy every moment of it!
|
|
|
|
|
Hi Elina,
Thank you. I will read that article - HttpContext.
hifiger2004
|
|
|
|
|
Suppose I have two aspx pages Page1 and Page2. When I redirect from Page1 to Page2, Page2 should load. But if I directly specify the url of Page2, it should not load. How can I do that without using any Session or Cookies.
Thanks
|
|
|
|
|
Check the request source like in asp.net (request.referralurl) and extract the page name from this URL and match with your page1
|
|
|
|
|
Thank u Dev
U gave me the exact answer I was searching for
Request.UriReferrer in ASP.Net
|
|
|
|
|
The truth is there is no real definite way to do this except maybe with session variables and a bunch of stuff that still won't be 100%. Using the referrer is the least reliable method however.
Brad
Australian
- Captain See Sharp on "Religion"
any half intelligent person can come to the conclusion that pink unicorns do not exist.
|
|
|
|
|
hi,i have creat my website 8*6,but am not able to view it properly on other screen resolution,
is there ant code of somthing to make my website fit in the middle of any screen resolution
|
|
|
|