For those new to message boards please try to follow a few simple rules when posting your question.
Choose the correct forum for your message. Posting a VB.NET question in the C++ forum will end in tears.
Be specific! Don't ask "can someone send me the code to create an application that does 'X'. Pinpoint exactly what it is you need help with.
Keep the subject line brief, but descriptive. eg "File Serialization problem"
Keep the question as brief as possible. If you have to include code, include the smallest snippet of code you can.
Be careful when including code that you haven't made a typo. Typing mistakes can become the focal point instead of the actual question you asked.
Do not remove or empty a message if others have replied. Keep the thread intact and available for others to search and read. If your problem was answered then edit your message and add "[Solved]" to the subject line of the original post, and cast an approval vote to the one or several answers that really helped you.
If you are posting source code with your question, place it inside <pre></pre> tags. We advise you also check the "Encode "<" (and other HTML) characters when pasting" checkbox before pasting anything inside the PRE block, and make sure "Use HTML in this post" check box is checked.
Be courteous and DON'T SHOUT. Everyone here helps because they enjoy helping others, not because it's their job.
Please do not post links to your question into an unrelated forum such as the lounge. It will be deleted. Likewise, do not post the same question in more than one forum.
Do not be abusive, offensive, inappropriate or harass anyone on the boards. Doing so will get you kicked off and banned. Play nice.
If you have a school or university assignment, assume that your teacher or lecturer is also reading these forums.
No advertising or soliciting.
We reserve the right to move your posts to a more appropriate forum or to delete anything deemed inappropriate or illegal.
Good day everybody! Please, I need your help in this stuff. How can i reset the id column in sql database which has auto increment property, to restart from 1 after hitting the delete button using asp.net and vb as code behind. I used the truncate statement but I didn't like this idea because everything was deleted. I specified the number of records to be deleted using the top statement with the delete statement.
Good day everybody! Please, I need your help in this stuff. How can i reset the id column in sql database which has auto increment, to restart from 1 after hitting the delete button using asp.net and vb as code behind. I used th truncate statement but I didn't like this idea because I specified the number of records to be deleted using the top statement.
i have an asp.net 4.5 application. i have hosted it on IIS 7.5 in Windows Server 2008. My application has different folders within it and some are for JS and some are for CSS and etc.. and they are inside a directory named "Shared" in my problem and most of the things especially the css , images etc they are reference like this
now when i host this Project i have issues with CSS and images because they are not retrieved. i use Fiddler to check what is happening and i realised that after i hosted the application now Fiddler reports a 404 error on the following path
there are many of them , this is just an Example. now you can see it it can see the server , but instead of adding my Application or website name , it add the Directory within my application. So basically it should look like this
The problem is you are using relative urls by using the ../ notation and now that you have deployed it your root appears to be different. You may just have IIS setup wrong as far as what an application is or you may need to change your links.
There are only 10 types of people in the world, those who understand binary and those who don't.
So if your root is /
and your calling webpage is /about/default.aspx then the double dots apply ../images/header.jpg
If your root is /
and your calling webpage is /default.aspx, the the double dots don't apply /images/header.jpg
Best thing is to take out the dots, and test, to make sure it has nothing to do with the dots first, like the previous post says, confirm your web server is setup right. Then think about the dots when your web app works.
In my beginning, I didn't use the dots, but started using the dots after running test on them and seeing how they actually work.
Thanks for your reply . the funny thing is that i hosted this same deployment in the Paid Domain and it works, So now what i did i created another website in IIS at the Level of "Default" website and i change the Default website port to 8083 so it does not conflict with my other website and i changed the new website to use port 80 and run the site with the ../share path and it worked. it buffles me.
When i used Fiddler , i see it was expecting my website to be in wwwroot folder but when i setup the web application in IIS the virtual Directory was in another drive. so i moved also the files to wwwroot.
Spoted in Daniweb-- Sorry to rant. I hate websites. They are just wierd. They don't behave like normal code.
When I encode a website or web application, I always assume that the root of the project is /
So everything is based off of /
Not sure if I can offer any help or insight on this, I went through that a decade ago, and have always used a systematic way of setting up servers and projects since then.
When I setup a website in IIS, I don't use the default IIS folder, I set everything up on a drive letter like Z
We use an independent disk drive for websites, which is solid state.
In IIS, We set the Physical Path to let's say
Right Click website-> Manage Website -> Advanced Settings -> Physical Path
And then run our power shell or just cmd security scripts to that individual physical locations above to set IIS Anonymous and App Pool security for the folders in the project, and RW/RO folder attributes.
Unhandled exception at line 79, column 1 in http://localhost:49456/about_us.aspx?_TSM_HiddenField_=ToolkitScriptManager_HiddenField&_TSM_CombinedScripts_=;;AjaxControlToolkit,+Version=1.0.20229.20821,+Culture=neutral,+PublicKeyToken=28f01b0e84b6d53e:en-US:c5c982cc-4942-4683-9b48-c2c58277700f:e2e86ef9:9ea3f0e2:9e8e87e9:1df13a87:4c9865be:ba594826:757f92c2
above error occured for the following code
<tdstyle="text-align:left"class="content"><asp:TextBoxID="txtName"Width="225px"AutoPostBack="true"runat="server"ValidationGroup="valEnquiry"CausesValidation="True"TabIndex="1"></asp:TextBox><br/><asp:RequiredFieldValidatorID="RFName"runat="server"ValidationGroup="valEnquiry"ControlToValidate="txtName"ErrorMessage="Please Enter Your Name"ForeColor="Red"></asp:RequiredFieldValidator><cc1:ValidatorCalloutExtenderID="val_reqDTT"runat="server"TargetControlID="RFName"></cc1:ValidatorCalloutExtender></td>
Thank you for trying to help.
The reason for cookies disappearing was, that I was mistakenly assigning a domain for the response cookies in the post request other than the actual domain, so they wont appear in the redirect request.