|
Sthepanie i faced the same problem and at the end i had to make my own solution, and i will write it for you, i hope you can understand the next lines, im not good to explain.
Onto dataBase you must to create three tables, they are users, images, and the relation images_owner.
for Example:
Users images_owner images
coduser (pk) codrelation codimage (pk)
nomuser coduser urlimage
codimage
You already have a folder to save all the images, right here you must to create a particular folder for every user, in another words you created the user, created the folder. (use the coduser like folder's name)
the sentence to create the folder is:
DirectoryInfo di = Directory.CreateDirectory(url);
Invoice the System.IO library to create server folders.
Right now you must to have this folder
allImages/coduser
You can update your images for any particular user, when the user login in the site, write a session var with the coduser code, and every time that you upload a picture (fileupload control)
fill the relation table image owner and save the image onto particular user folder with the codimage like name.
To show the image select all the codimage from image owner where the coduser is the session user code.
keep Learning and you never will be out of date...
|
|
|
|
|
ive just took the plunge with vs2005 from vs2003 and there are a couple of things that are truly boggling me!
1. i like to have a page called 'basepage' in which i add lots of useful functions. every page i add to my project inherits from basepage so it has easy access to all my pre-built functions.
i have created my basepage but it does not appear in the intellisense list after the 'inherits' statement when i type and it does not appear to be known as a class. why is this???? its driving me nuts!!!
2. i like to setup namespace imports for heavily used namespaces such as system.data.sqlclient and system.text. i cannot find the utility to do this where it used to be nor does the help give me any clues.
please help a very flummoxed vs2005 noob!
---Guy H ( ---
|
|
|
|
|
Hi there,
1. Where do you define the basepage class? In the App_Code folder or a seperate project? Do you try to compile the project before using it?
2. You can define the namespaces in the namespaces Element for pages[^]
|
|
|
|
|
hi thanks for your reply.
the basepage inheritance seems to work now which baffles me even more.
thanks for the namespace tip, ive got it sussed now
cheers!
---Guy H ( ---
|
|
|
|
|
hi dears,
I upload my database to my sql server 2000 host( a server on the internet) and have a website project in VS2005 with a connectionString like this "Persist Security Info=False;User ID=myUser; Password=myPass;Initial Catalog=myDataBaseName;Data Source=sql.myserver.org" . when I run my website on my pc I can connect(!!!) to database and show data in app, but when I upload my website to my hosting area I can`t connect!!! what should I do to fix this problem ?
Regards,
|
|
|
|
|
Hello friends I have read all the articles regarding sending emails through an application...all of these includes the use of an SMTP server...Can anyone tell me how to use the Hotmail or GMAIL server or any other SMTP server available online(and not IIS SMTP server). These requires the use of secure login...err..How to do it ? Plz help.
Victor Sinha
|
|
|
|
|
AFAIK you can't. Hotmail (at least used to) uses HTTPMail, and most of the other web based providers prevent relaying to stop spammers. Best bet is to use your company's mail servers, or if you just want to send, you can download several free SMTP servers from t'internet.
"Now I guess I'll sit back and watch people misinterpret what I just said......"
Christian Graus At The Soapbox
|
|
|
|
|
Hello,
I am need to get a connection string details. I am doing as follows:
01: Dim connectionStrings As New ConnectionStringSettingsCollection
02: Dim connectionString As New ConnectionStringSettings
03: connectionString = connectionStrings.Item("MyConn")
04: Console.WriteLine(" Connection String: ",
connectionString.ConnectionString) *** ERROR ***
05: Console.WriteLine(" Name: ", connectionString.Name)
06: Console.WriteLine(" Provider Name: ",
connectionString.ProviderName)
I get my first error on line 04
System.NullReferenceException: Object reference not set to an
instance of an object.
To check my connection string I did the following:
Dim otherConnectionString As String =
ConfigurationManager.ConnectionStrings("MyConn").ConnectionString
Response.Write(otherConnectionString)
And I get:
Provider = Microsoft.Jet.OLEDB.4.0; Data Source = C:\Documents and
Settings\User\My Documents\Visual Studio
2005\WebSites\MySite\App_Data\MySite.mdb; User Id=; Password=;
Which proves I have the connection string with name MyConn in my
web.config.
Could someone tell me what am I doing wrong?
I tried everything I could think off.
Thanks,
Miguel
|
|
|
|
|
The collection that you created in line 01 is empty.
---
b { font-weight: normal; }
|
|
|
|
|
Hi
I am quite a rookie, when it comes to asp.net and I have a small problem. If I define master page in web.config file and I don't use the "MasterPageFile" attribute in the aspx file I get a lot of errors(I am using Visual studio 2005) saying that the html element occurs too few times, and that the name contains uppercase characters, which is not allowed.
Does anyone knows what is the problem
Thanks,
Koleraba
|
|
|
|
|
try disabling validation in Tools=>Options=>Text Editor=>HTML=>Validation
|
|
|
|
|
Hi!
If I disable Html validation errors are no longer shown, but I still don't have the intelli sense(when I press "<" all I get on intelli sense is page and script), because visual studio thinks there is something wrong with the code. If I run the page everything works fine, it's just annoying to see all those errors. Well thanks anyway!
Koleraba
|
|
|
|
|
Ok I found the answer to my question. It seems this is the limitation of visual studio 2005, and there is nothing that could be done except actually including MasterPage atribute in the aspx page
Kolereaba
|
|
|
|
|
hai
i have three combobox stored, its value are stored string(05/22/1984) in the server. now while reterieving it i have to place it in proper format and i have to cross check whether it is in proper format as default.
can anyone give me the code
thank u
Dhatchinamoorthy.R
9894824838
|
|
|
|
|
You can try regex, or convert to datetime to verify format.
|
|
|
|
|
Hey guys,
I am fairly new to web programming and I am having trouble getting my style sheet to work properly. I am linking it in the master page with this tag: in the tag. I have my master page layout set up with a series of div tags that are all styled in the css file.
My problem is that whenever I run the site all of my elements are stacked on top of each other no matter how i position them in the style sheet. The fonts and colors are all correct so I know that the style sheet is being linked properly, but none of my positioning and layout code is being executed.
I tried to put the style directly in page by doing the div id="id" style="style stuff here" and the positioning code worked just fine. I don't understand why the positioning code in my style sheet is not working when linked. I'm sure it is some small thing that I am missing, but any help is appreciated.
Thanks,
Dustin
|
|
|
|
|
I'm not sure if I understand your problem, but simply adding the reference to the style sheet in the header will not format the positioning for you. You must put the div id="id" or div style="style" stuff in there still. The website knows to format certain controls automatically from the stylesheet such as text, but divs and panels are not one of those controls because they contain text and buttons and things like that usually. They don't stand alone. If you want to format the stuff inside the div or panel, you have to tell the tag which style you want it to use.
I'm not sure if that helps or not...but I came up with the same issue in another website I was creating.
|
|
|
|
|
Thanks for the reply. I do have all of the positioning style things in the style sheet. Here is a sample:
Lets say i have a div with id="Nav" and in my css i have #Nav { width: 125px; float: left; etc..}. For some reason when I link the css it does not execute the positioning attributes such as float, etc. But, if I put the attributes from the css directly in the style="" attribute of the div tag it works fine.
I hope this may clarify my problem. Thanks again.
Dustin
|
|
|
|
|
my college give me the an asp classic file i copy the html of this asp classic file and past it in a .net page (in the html of the design) but the pattern is not the same as was in asp classic (in very wrong preview)
i want to know why this problem occurred and what is the solution to this problem (currently i am making html code in .net) and plz don`t tell me to tell my friend to work on .net because he makes the design in asp classic
thanks to u in advance
haitham
|
|
|
|
|
what r the differences, r they minor or major?
Best Regards
3ala2
|
|
|
|
|
the differences in the tables...they are not in their places and the pattern is not as the same in the classic one.
haitham
|
|
|
|
|
i have problem in FCK Editor if you know it i add arabic text and its transfer after saving to "???????????"
why this happen?
Mohamad A. Flefel
mflefel@hotmail.com
+962 79 5963865
C#.net & VB.net Developer
|
|
|
|
|
check the language support of ur db
Best Regards
3ala2
|
|
|
|
|
I am using Visual Studio 2005 to create a Web Setup Project to deploy my web application.
I wish to add a custom install action that will configure a virtual directory (named MyFolder) inside the WebApplicationFolder (MySite) as an application in IIS. My Installer class is calling the function below (ConfigureVirtualDirectories) from Public Overrides Sub Install(ByVal stateSaver As System.Collections.IDictionary) of the Installer class
Private Sub ConfigureVirtualDirectories()
Dim IISWebVDirObj As Object = GetObject("IIS://localhost/W3SVC/1/Root/MySite/MyFolder")
'++++++++++++++++Configure MyFolder folder as an application in IIS+++++++++++++
' Use the AppCreate2 method of the IIS ADSI provider to
' create an application on the new virtual directory.
IISWebVDirObj.AppCreate2(1)
IISWebVDirObj.Put("AppFriendlyName", "MyFolder")
' Use the Windows ADSI object "SetInfo" method to
' save the data to the metabase.
IISWebVDirObj.SetInfo()
End Sub
My problem is that during installation my installer gives the following error: Cannot create ActiveX component. If I create a small windows application and put the code in a button click event, the code works. As in:
Imports System.DirectoryServices
Public Class Form1
Private Sub btnCreate_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnCreate.Click
Dim IISWebVDirObj As Object = GetObject("IIS://localhost/W3SVC/1/Root/MySite/MyFolder")
'++++++++++++++++Configure MyFolder folder as an application in IIS+++++++++++++
' Use the AppCreate2 method of the IIS ADSI provider to
' create an application on the new virtual directory.
IISWebVDirObj.AppCreate2(1)
IISWebVDirObj.Put("AppFriendlyName", "MyFolder")
' Use the Windows ADSI object "SetInfo" method to
' save the data to the metabase.
IISWebVDirObj.SetInfo()
End Sub
End Class
|
|
|
|
|
Hi All,
I have one problem to discuss with.
I have a javascript function which will capture screencoordinates of browser window on a mouse click.
I want that javascript function to be masked(i.e doesn't apply)to a particular event(eg.Say,"OnmouseClick" on a image in the browser).
How can we do this?
|
|
|
|