|
Hi,
I'm not much of a programmer, how would i do this? Password protect in Access?
|
|
|
|
|
Whoa! Been a while. Something like Tools, Security. There are some options under there that will help: at the very least set a password and REMEMBER IT (AFAIK there is no longer any way to recover a forgotten Access password). I suggest a brief RTFM around this and then you should be able to protect your database from prying idiots. You should also consider protecting your connection strings. Consider asking your web host for specific advice: they should be willing to help.
|
|
|
|
|
|
Angus wrote this[^] article.
If you want to thank me for my help, please vote my message by clicking one of numbers beside "Rate this message".
|
|
|
|
|
Setting a password on the database is good, but that doesn't do anything at all to protect against SQL injection.
Read the article that Andy linked to.
---
single minded; short sighted; long gone;
|
|
|
|
|
Morning guys.
I jus wana knw if its possible to call morethan one css onto a single page??
I have the mail css that gives me the layout of the page and another for my tab design menu.How do I go about having them both on my page.I can copy the tab design onto the main page css but its not working like that.
Thanx in advance guys.This css thing is new to me.
kagiso
|
|
|
|
|
|
Thanx mate.
But how do I knw which one to call and when??
kagiso
|
|
|
|
|
You don't. Place them on the page in order of preference; in other words anything in the last file will take precedence over a file declared earlier as will any declaration you make in each file. Further if you have, for instance, markup like this:
...label cssclass="second first"...
The css in first will override anything similar in second. So second says that the text color should be red but first says it should be blue then first will win.
If you only want to use a css file depending on circumstances then you could do something like: (in master page)
<br />
private void CreateMetaTags()<br />
{<br />
HtmlMeta htmlMeta = null;<br />
HtmlHead htmlHead = (HtmlHead)Page.Header;<br />
<br />
htmlHead.Title = ApplicationAttributes.AssemblyTitle;<br />
<br />
htmlMeta = new HtmlMeta();<br />
htmlMeta.Name = "Content-Type";<br />
htmlMeta.Content = "text/html; charset=utf-8";<br />
htmlHead.Controls.Add(htmlMeta);<br />
<br />
htmlMeta = new HtmlMeta();<br />
htmlMeta.Name = "Description";<br />
htmlMeta.Content = ApplicationAttributes.AssemblyTitle;<br />
htmlHead.Controls.Add(htmlMeta);<br />
<br />
htmlMeta = new HtmlMeta();<br />
htmlMeta.Name = "Keywords";<br />
htmlMeta.Content = ApplicationAttributes.AssemblyTitle;<br />
htmlHead.Controls.Add(htmlMeta);<br />
<br />
string strStyle = @"~/CSS/Screen.css";<br />
HtmlLink htmlLink = new HtmlLink();<br />
htmlLink.Attributes.Add("rel", "stylesheet");<br />
htmlLink.Attributes.Add("type", "text/css");<br />
htmlLink.Attributes.Add("media", "screen");<br />
htmlLink.Href = strStyle;<br />
htmlHead.Controls.Add(htmlLink);<br />
<br />
strStyle = @"~/CSS/Print.css";<br />
htmlLink = new HtmlLink();<br />
htmlLink.Attributes.Add("rel", "stylesheet");<br />
htmlLink.Attributes.Add("type", "text/css");<br />
htmlLink.Attributes.Add("media", "print");<br />
htmlLink.Href = strStyle;<br />
htmlHead.Controls.Add(htmlLink);<br />
<br />
htmlLink = new HtmlLink();<br />
htmlLink.Attributes.Add("rel", "shortcut icon");<br />
htmlLink.Attributes.Add("type", "image/x-icon");<br />
htmlLink.Href = @"~/Images/favicon.ico";<br />
htmlHead.Controls.Add(htmlLink);<br />
}<br />
but put a condition on when you add whichever style sheet you need. In the example above I have one stylesheet for the screen and one for when I print the page that hides unwanted elements, but only if printed.
Hope that all makes sense.
|
|
|
|
|
Hello !
Actually i wanted to know that what shud i choose .net or Java .Is .net goin to be the future.Is j2ee , coz its opensource and LAMP goin to set a boom .
Mrinal
|
|
|
|
|
|
Why choose ASP.NET vs. J2EE ?[^]
this discussion is cool..
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
If you want to thank me for my help, please vote my message by clicking one of numbers beside "Rate this message". Why vote? Plz Read it here. Thank you.
|
|
|
|
|
1: Firstly, choose to learn to write English correctly. Txt spk z 4 mbs, not when you are asking for advice since the meaning may not come across as clearly as you intended.
2: Both have a future. You need to decide either which you prefer or which will make you the better living over a period of time. I chose .Net because I've almost always used Microsoft products, more by accident than design. However, I would have been just as happy using Java or whatever would have made me a living.
3: Perhaps you could try to get a job using one or the other or create a project and see which one you get on best with.
4: There is no right or wrong answer to your question, I'm afraid, you simply need to make a choice and stick with it though it's a good idea to become proficient in more than one language or you could find yourself to niche to hire.
Good luck.
|
|
|
|
|
plz dnt x pst man.
(please don't cross post)
"More functions should disregard input values and just return 12. It would make life easier." - comment posted on WTF
"I haven't spoken to my wife now for 48 hours. I don't like to interrupt her.
|
|
|
|
|
Malcolm Smart wrote:
plz dnt x pst man.
(please don't cross post)
You just wanna type two times per line??? I think it is pretty okay if you just write this line "please don't cross post" only... Just kidding...
Malcolm Smart wrote: "I haven't spoken to my wife now for 48 hours. I don't like to interrupt her.
You don't like to interrupt her or You are trying to be CP MVP like Dave.
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
If you want to thank me for my help, please vote my message by clicking one of numbers beside "Rate this message". Why vote? Plz Read it here. Thank you.
|
|
|
|
|
Check out Hewitt Packer (HP). They are leading the pack. They just passed Dell and IBM. Who is next on their list? Don't trust me. Research it.
|
|
|
|
|
Hi, here's a quick question
I wanna open an XML document in a web broser so that all its node come up as collapsed. and there's nothing else I wanna do with the formatting.
please give some hint/guidance or anything
Thanks in advance
Rocky
|
|
|
|
|
Rocky71 wrote: Re: Can u plz give me a sample XSL code to collapse all the nodes in an XML document
I don't think you need XSL to do that. The browser itselft already handles this part..
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
If you want to thank me for my help, please vote my message by clicking one of numbers beside "Rate this message". Why vote? Plz Read it here. Thank you.
|
|
|
|
|
Well that's nice but HOW?? Can u give me any clue... how can we transform the XML so that all its nodes become collapsed
|
|
|
|
|
Rocky71 wrote: Well that's nice but HOW?? Can u give me any clue... how can we transform the XML so that all its nodes become collapsed
Please try to open your XML file in browser. and see what it looks like.. I think, all nodes are collapsed automatically. we need nothing to do.
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
If you want to thank me for my help, please vote my message by clicking one of numbers beside "Rate this message". Why vote? Plz Read it here. Thank you.
|
|
|
|
|
Thats not the case Sir, It opens the file with all the nodes expanded not collapsed.
|
|
|
|
|
Hi, I created a web service and exposed three functions in that. One of which is as below...
[WebMethod]
public string PostInvoiceDetails(int intAccLocID, int intSubStream, int intSupplierType,string dtInvDate, string strYearCode, string strPeriod, string strApptNo,UltraWebGrid grdGrid, string strCurrencyCode, string strExchRate)
{
FileInvoiceBO objFileInvoiceBO = new FileInvoiceBO();
return objFileInvoiceBO.PostInvoiceDetails(intAccLocID, intSubStream, intSupplierType, dtInvDate, strYearCode, strPeriod, strApptNo, null, strCurrencyCode, strExchRate);
}
Now problem is when I am passing the UltraWebGrid control as parameter inthe function I am getting below error...
The XML element 'EnableTheming' from namespace '~/Service.asmx' is already present in the current scope. Use XML attributes to specify another XML name or namespace for the element.
However removing grid object and passing dataset is working fine, but it will push me to change the function definition which I dont want to do. If any one has encountered this error before and got the solution please help me in this..
Thanks,
|
|
|
|
|
Why do you wanna pass the whole control to web service? it is very very very strange to me. For me, I used to create the web service as the business layer for my project. We used to pass the normal types (int, string) or custom serialized object only. (not the control) In your case, I think it might be okay if you pass the DataSet or Datatable instead of UltraWebGrid control..
Another suggestion is that if you are using some thirty-party controls (eg: UltraWebGrid or CompoentOne or etc ), it would be the best way to ask to their support teams. Since you are one of the customer for them, you will give you more accurate answer and best solution in short time. It's just a suggestion. I believe that there might be some developers who are using thirty-party controls.
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
If you want to thank me for my help, please vote my message by clicking one of numbers beside "Rate this message". Why vote? Plz Read it here. Thank you.
|
|
|
|
|
Hi Friendz...
I have downloaded the trial version of MOSS2007. Report center template is missing in Enterprise category of Default Templates. Can you please tell me that How can I proceed to work with Reporting services? Does Microsoft give All templates in trial version?
Please help me if you have any idea...
thanks in advance
|
|
|
|
|
Hi,
I just wanted to know if this link is the Microsoft forums link:
http://forums.microsoft.com/[^]
I know it says forums, but I don't see any posts on ASP.NET. Someone else told me you can maybe post questions under an asp:Menu section to be more specific.
Regards,
ma se
|
|
|
|