|
Are you sure IIS is installed and working? Can you start a new web project in VS?
Did you give your computer the same anme as before when you re-installed the OS?
If so, then if nothing else works, just create a new project, delete the default page it creates, copy your old project files into the folder and use Solution Explorer to inlcude them in your new project. Set your references, and you should be away.
|
|
|
|
|
hello frnd,
just install IIS again, if u have VS2003 then go to START --> click on RUN and type the following command and give ENTER
C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\aspnet_regiis.exe -i
and if U have VS2005 then type the following command and give ENTER
C:\WINDOWS\Microsoft.NET\Framework\v2.0.xxxxx
\aspnet_regiis.exe -i
at the position of "v2.0.xxxxx" give your directory name located in "Framework" folder
regards,
koolprasad2003
If the message is useful for U then please Rate This message...
Be a good listener...Because Opprtunity knoughts softly...N-Joy
|
|
|
|
|
Hello Everyone,
Can anybody let me know how to bold a select text of a textbox in ASP.NET1.1 with c#
Thnx in advance
|
|
|
|
|
You can't, as a textbox does not support formatting. You need to use a richtextbox for that.
---
single minded; short sighted; long gone;
|
|
|
|
|
Hi, suppose I have queried my database, filled the dataset, and bound the listbox to the datasource like the following
<br />
myCon = New OdbcConnection("Driver={MySQL ODBC 3.51 Driver};Server=myServer;Database=myDB;User=myUser;Password=myPW;Option=3;")<br />
cmd = New OdbcCommand("SELECT * FROM myTable where Professions = '" & ListBox2.Items(i).Text & "'")<br />
<br />
myCon.Open()<br />
<br />
cmd.Connection = myCon<br />
<br />
Dim ds As New DataSet<br />
<br />
Dim ad As New OdbcDataAdapter(cmd)<br />
<br />
ad.Fill(ds)<br />
<br />
Me.ListBox2.DataSource = ds<br />
<br />
Me.ListBox2.DataBind()<br />
How do I display the data retrieved from the database in the text area of my form? Do I have to set the content type of the data before I can display them in the text area? I've looked in to this and found the following tags for displaying text in thetext area
<textarea name="contents">[retrieved database value]</textarea> What would go in the [retrieved database value] part of the code? I suspect I am going to need the ID from the ID field of the database to make this work. Please show me what I am missing in my code above that is critical to making this work. Thank you in advance for your help.
-- modified at 13:46 Sunday 22nd July, 2007
|
|
|
|
|
instead of an html textarea use an asp:Textbox with it's multiline property set to true - this will render as a textarea - and then simply set it's Text property to the appropriate dataset field in your code behind.
|
|
|
|
|
Hi, thanks for responding, but how do I control the number of results displayed per page.
|
|
|
|
|
Use custom paging using stored procedure. You can use hyperlinks to navigate through the pages.
|
|
|
|
|
hi ....
is any one here that understand encoding of a string ?
for example consider a text box in a webpage , i want to after user fill it and send to server understand it's encoding (is utf8 or unicode ....)
|
|
|
|
|
|
tanks
i save that and i am going to test it
|
|
|
|
|
Glad to Help Always
SSK.
|
|
|
|
|
I was wondering what the typical site structure is that people use for asp.net sites?
I am using C# asp.net 2.0 and have a default.aspx page which points to a master page, MasterPage.master (which contains references to images, javascript, etc).
I would like to organise sub-areas like: mysite.com/subdir/Default.aspx
So I created this above page, and reference the MasterPage.master, but when I navigate to this page (during run mode) the images and javascript are messed up since they're all being referenced from the directory above (in which the masterpage resides).
Is there an elegant way of getting around this problem? I was thinking of creating a 'sub-level' master page but this won't be ideal since then any changes to the masterpage will require double the efforts (which kind of goes against what a master page is about anyway!)
Do most asp.net sites ONLY use the root directory?
Any help much appreciated!
Gerry
asp.net newbie
|
|
|
|
|
One thing I learned when using Master Pages and wanted the Master in its own directory (which I think is a good idea) is with all the images, style sheets, .js files and such to add this around them:
<%=ResolveClientUrl("~/YourDirectory/YourStyleSheet.css") %>
<%=ResolveClientUrl("~/YourDirectory/YourImageName.jpg") %>
<%=ResolveClientUrl("~/YourDirectory/YourScriptName.js") %>
Then (of course) replace my place holders with your information (example, your header is located in images/main_images then the tag around the header image would be
<%=ResolveClientUrl("~/images/header.jpg") %>
Hope this at least gets yous tarted.
"Let's face it, the average computer user has the brain of a Spider Monkey."
Bill Gates
|
|
|
|
|
Thanks very much Psycho Coder, this seems to fix it just dandily fine!
|
|
|
|
|
Not a problem, thats what this community is for
PS: When someone gives you the solution that works you should give them a 5 vote on their answer
"Well yes, it is an Integer, but it's a metrosexual Integer. For all we know, under all that hair gel it could be a Boolean."
Tom Welch
|
|
|
|
|
Done.
What a wicked community?!
I just posted a new post (at the top)
G
|
|
|
|
|
I hosted one page and also bin directory,web.config and precompiledapp.config while deploying will get these files.i just add only two controls in that page one HTML Text box and one Asp Label Control but when i open that page i could see only the Html Text box, Label is not shown in that page.But when i check the source of this page i could see the Label and its Text.what is the problem is there anything should i host.
|
|
|
|
|
I'm upgrading a ASP1.1 program to ASP 2.0. In the original application I used eWorld's NumericBox. In the ASP2.0 I have gone to eWorld and got the latest 2.0 controls. When I run my 2.0 application on my local computer it works fine. However when I publish to my web host server it cannot find the eWorld controls. From searching and reading many posts I have to add the eWorld as a Reference and set copy local to true. However I can't figure out how to do this. I have the Visual Web Developer 2005 Express Edition and when I right click on the project I then click on Start Options and then on References. In the References window it shows Accessibility GAC 2.0.0.0. I then click Add Reference and find/select Excentrics World Controls .NET 2.0.6.2393 C:\rogram Files\Excentric ... I then press OK and would expect it to be added to the list of References just under the Accessibility entry ... however it doesn't seem to get added and subsequently I can't specify the 'copy local' option. What am I missing?
Help appreciated
gregart
|
|
|
|
|
It looks like your referencing something installed into the GAC locally. If so, this is fine for local developement, but won't work if deployed to another server where the control(dll) is not installed in the GAC on that server.
You should be able to place the DLL inside your bin folder of your .net project and have it work properly. I've not used the control(s) your speaking of, but should be similar to that of other controls and libraries.
|
|
|
|
|
Thanks ... I did have the dll in the bin folder but it doesn't find it there ... I think I need to set up a reference but as I said not sure how to do this. There is also the register line in the .aspx file - right now I have it as follows: <%@ Register Assembly="eWorld.UI" Namespace="eWorld.UI" tagprefix="ew" %> - there seems to be a src parameter but I'm not sure if this can be used to point to the bin folder - tried it but it generates different errors...
cheers
gregart
|
|
|
|
|
I downloaded the control(s) from eworld to do a little mock up for you.
Keep in mind I did not install this in the GAC, as I wanted to use just the dll from the BIN directory. You can install it however you want, I just wanted to show how to use it without it being installed in the GAC.
I made two pages, one loads the control dynamically, the other page use the register attribute and adds the control at design time. Hopefully this gets you going.
http://www.ewilburn.com/downloads/EW_example.zip
|
|
|
|
|
Hi,
Could anybody tell me how to prevent an error while entering a text with " ' " (apostrophe) into the SQL table.
Here is my code:
SqlDataSource1.InsertCommand = "INSERT INTO Ptable(pID, title, description, date) VALUES (" + pID + ",'" + TextBox1.Text + "','" + TextBox2.Text + "','" + Convert.ToString(DateTime.Today) + "')";
So, I have a problem, when I'm entering a text like "This's..." into the TextBox1.
Thank you
|
|
|
|
|
You need to double them up - use the string Replace function
Textbox1.Text.Replace("'", "''")
So that "this's" will end up as "this''s"
I sincerely hope you are validating your input Textbox.Text carefully before passing it ot the SQL statement. You might want to read Colin's article:
http://www.codeproject.com/cs/database/SqlInjectionAttacks.asp[^]
|
|
|
|
|
Thanx!!!
|
|
|
|