|
hi i am asp.net devloper and i never use asp
i would like to know what need or requirement to devlop a website in asp
please any body suggest me how i can do
i havnt any type of software like i know for php we need php setup while what need for asp.net.
|
|
|
|
|
Hi,
do you mean classic ASP or ASP.NET?
For running ASP.NET applications you need an IIS and the .NET Framework. I suggest using Visual Studio as IDE for development.
Regards
Sebastian
|
|
|
|
|
umeshdaiya wrote: hi i am asp.net devloper and i never use asp
Not sure what you mean... are you or are you not a developer? What do you mean you never use asp?
|
|
|
|
|
If you are looking to play around and develop, you can do this on your own machine by installing IIS[^].
1. You should buy a domain name from Domain Name Registrar.
2. Get a Static IP address from your Internet Service Provider.
3. Point the domain name to the IP address.
4. Install Microsoft .NET Framework 3.5
* Supported Operating Systems: Windows Server 2003; Windows Server 2008; Windows Vista; Windows XP
Try that out. Have fun!
Ranjit Viswakumar
Professional Services Specialist
HostMySite.com[^]
|
|
|
|
|
Hi,
I have a web application where i need to display a confirm box in the below manner...
in My Button_Click()event
{
///Some lines of code
Display confirm Box ...(it is better if i can apply css for this Confirm box bcos it looks better than standard one..)
Based on the response in confirm box ie if Yes ....
continue remaining lines of code.....
if NO
Come out of the button event....
}
If it is possible even in Ajax please let me know....
Please help me regarding the same...
|
|
|
|
|
use javascript and create a popup confirm box using Divs and tables
Abhishek Sur
|
|
|
|
|
You want something like this-
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<title>CSS Popup Box</title>
<meta http-equiv="content-type" content="application/xhtml+xml; charset=utf-8" />
<script type="text/javascript">
function doConfirm(v)
{
var b = document.getElementById('btn');
b.value = 'Display dialog [last return value: ' + v + '/' + (v ? 'OK' : 'Cancel') + ']';
}
function setDisp(id, disp)
{
document.getElementById(id).style.display = disp;
}
</script>
<style type="text/css">
#confirm {
position: absolute;
top: 40px;
left: 70px;
border: outset #000 10px;
padding: 1em 3em;
display: none;
background: #a5c4cc;
}
#ok {
background: #a5cca8;
}
#cancel {
background: #d6a4a4;
}
#ok, #cancel {
padding: 2px;
margin:2px;
}
</style>
</head>
<body>
<div id="confirm">
<div>Are you sure?</div>
<input type="button" id="ok" value="OK" onclick="doConfirm(true);setDisp('confirm', 'none');" />
<input type="button" id="cancel" value="Cancel" onclick="doConfirm(false);setDisp('confirm', 'none');" />
</div>
<div><input type="button" id="btn" value="Display dialog" onclick="setDisp('confirm', 'block');" /></div>
</body>
</html>
Play with the CSS to make it look the way you want. Good luck!
Ranjit Viswakumar
Professional Services Specialist
HostMySite.com[^]
|
|
|
|
|
Thanks for ur reply....
But i need confirmBox in the middle of the asp:Button click event ie after executing some lines of code ineed to display confirm box and based on the response from the confirm box i need to continue otherwise come out of the buttonclick event....
|
|
|
|
|
Hello Everybody.
Its my first time using the CP forum. though I use the articles all the time...
I have some code that builds an XML document for each user that logs in. This xml doc should become the datasource for the navigation system.
I do not use the built-in membership system, but rather have my own "Users" table and do my own authentication etc.
The XML Document is stored in a strongly-typed Session variable (as a public property in a class module). The property name is "CurrentMap"
The problem is that setting XMLDataSource.Data to the xml snippet just doesnt work. when i log in i always see the menus belonging to the previous user which logged in. Only when continuing in the site do i see the menu items based on the current users sitemap.
For testing i used the CurrentMap.Save method to save the doc to disk, and the doc is 100% correct, exactly according to my code. the problem is only on the home page, feels like asp.net is kindly doing some caching which id like to turn off.
It may also be in regard to the events that I use to bind the datasource to the xmldoc, and I used quite a few of them. But maybe im just not using the right one...
This is happening on the code behind in a Master page in asp.net 3.5.
here is the entire relevant codebehind file for the master page:
Partial Class IMaster
Inherits System.Web.UI.MasterPage
Protected Sub Page_DataBinding(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.DataBinding
CheckUser()
xdsSiteMap.DataFile = ""
xdsSiteMap.Data = CurrentMap.OuterXml
End Sub
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
CheckUser()
xdsSiteMap.DataFile = ""
xdsSiteMap.Data = CurrentMap.OuterXml
xdsSiteMap.DataBind()
MainMenu.DataBind()
End Sub
Protected Sub lkbLogout_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles lkbLogout.Click
ClearUser()
CheckUser()
End Sub
Protected Sub xdsSiteMap_DataBinding(ByVal sender As Object, ByVal e As System.EventArgs) Handles xdsSiteMap.DataBinding
xdsSiteMap.DataFile = ""
xdsSiteMap.Data = CurrentMap.OuterXml
End Sub
End Class
Here is the aspx of the master page
<td colspan="2">
<div id="MainNav" class="MainNav">
<asp:Menu ID="MainMenu" SkinID="MainMenu" runat="server"
Orientation="Horizontal" DataSourceID="xdsSiteMap" StaticDisplayLevels="2">
<DataBindings>
<asp:MenuItemBinding DataMember="siteMapNode" NavigateUrlField="url"
TextField="title" />
</DataBindings>
</asp:Menu>
<asp:XmlDataSource ID="xdsSiteMap" runat="server" DataFile="~\App_Data\SiteMap.xml" XPath="siteMap/siteMapNode"></asp:XmlDataSource>
</div>
</td>
Any ideas?
Thanks a million
|
|
|
|
|
Yes. Add Page_PreRender method to the master page. This is the later in the page's life cycle than page_load. Move the databind() call to that method, see if you get the current user.
I didn't get any requirements for the signature
|
|
|
|
|
Hi
Thank you ToddHileHoffer,
I did exactly that, but the problem remains. on the landing page i get an old map.
here is the current masterpage code
Protected Sub lkbLogout_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles lkbLogout.Click
ClearUser()
CheckUser()
End Sub
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
CheckUser()
End Sub
Protected Sub Page_PreRender(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.PreRender
xdsSiteMap.DataFile = ""
xdsSiteMap.Data = CurrentMap.OuterXml
MainMenu.DataBind()
End Sub Please reply, i cant figure this out...
|
|
|
|
|
I'm sorry your page isn't working.
Where are you setting the datasource for the MainMenu? Why don't you call xdsSiteMap.Databind() instead of MainMenu.Databind()?
Can you debug the page and set a break point on your menu or site map and verify that the data source in the PreRender method does not match the data when the page is rendered?
Another question is why are you calling CheckUser() twice? In the code above you would call CheckUser in the pageload and then agin on lkbLogout.Click(). Maybe you want to use if(!postback) in your pageload.
I didn't get any requirements for the signature
|
|
|
|
|
hi
thanks for your reply
in the end, my assumption was correct, the xds has an attribute called enavlecaching, i turned that off and all is good.
thank you for your time and interest,
it was a pleasure discussing this with you.
|
|
|
|
|
Thank you. I've been fussing with my code, on and off, for the last few days trying to figure out why I couldn't get my string output of XML data to bind to my ListView object in .Net 3.5. I found the "onPreRender" statement in another article but a separate test datalist object bound fine in the "OnLoad" event. Turning the caching off was exactly what I needed- thanks.
|
|
|
|
|
glad to be of help
|
|
|
|
|
Hi
try EnableCaching="false" on XmlDataSource control
<asp:xmldatasource id="xdsSiteMap" runat="server" datafile="~\App_Data\SiteMap.xml" xpath="siteMap/siteMapNode">
|
|
|
|
|
i have created 1 website at my home.i want to host it..wat shud i need to do..can any1 tell me in detail? i want everything in full detail
|
|
|
|
|
Do you want to host it at home? I would use a hosting company, it costs about $100 - $500 per year to have an asp.net / sql server site hosted for you.
I didn't get any requirements for the signature
|
|
|
|
|
i also want to use a hosting company...so for that wat shud i do?? will i need to make any changes in my code or just approach any company with my code and database??
|
|
|
|
|
I used http://www.appliedi.net/aspnet-3.5-hosting/[^] and it was pretty easy.
They give you a virtual directory with FTP access to it. You can use any ftp program to copy up your website.
They will give a SQL Server database. You will get owner rights to your own database. You connect to it via the IP address right from Management studio on your desktop computer.
Good luck.
I didn't get any requirements for the signature
|
|
|
|
|
Hi,
After inserting the data I am clearing the textbox and dropdownlist. But when I press the refresh button in the browser once again the data is inserted. This happens not only for Insert but also for all are the event that happens last once again happens when browser refreshed. We are not using Ajax.
Thanks,
Ashok
|
|
|
|
|
try by setting the enableviewstate property of the controls to false
|
|
|
|
|
Redirect to the same page using Response.Redirect() once you have successfully enter the data. This will prevent the refreshing in performing a postback.
|
|
|
|
|
One easy way to handle this is to set a session variable the first time the page is posted. You can check for the presence of this on any refresh and if it already exists, prohibit posting of any information.
Ranjit Viswakumar
Professional Services Specialist
HostMySite.com[^]
|
|
|
|
|
<pre>
Protected Sub rdb1_CheckedChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles rdb1.CheckedChanged
If (rdb1.Checked = True) Then
rdb2.Checked = False
rd3.Checked = False
rd4.Checked = False
rd5.Checked = False
rd6.Checked = False
rd7.Checked = False
rd8.Checked = False
End If
End Sub
Protected Sub rdb2_CheckedChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles rdb2.CheckedChanged
If (rdb2.Checked = True) Then
rdb1.Checked = False
rd3.Checked = False
rd4.Checked = False
rd5.Checked = False
rd6.Checked = False
rd7.Checked = False
rd8.Checked = False
End If
End Sub
Protected Sub rd3_CheckedChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles rd3.CheckedChanged
If (rd3.Checked = True) Then
rdb1.Checked = False
rdb2.Checked = False
rd4.Checked = False
rd5.Checked = False
rd6.Checked = False
rd7.Checked = False
rd8.Checked = False
End If
End Sub
Protected Sub rd4_CheckedChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles rd4.CheckedChanged
If (rd4.Checked = True) Then
rdb1.Checked = False
rdb2.Checked = False
rd3.Checked = False
rd5.Checked = False
rd6.Checked = False
rd7.Checked = False
rd8.Checked = False
End If
End Sub
Protected Sub rd5_CheckedChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles rd5.CheckedChanged
If (rd5.Checked = True) Then
rdb1.Checked = False
rdb2.Checked = False
rd3.Checked = False
rd4.Checked = False
rd6.Checked = False
rd7.Checked = False
rd8.Checked = False
End If
End Sub
Protected Sub rd6_CheckedChanged(ByVal sender As Object, ByVal e As System.EventArgs)
If (rd6.Checked = True) Then
rdb1.Checked = False
rdb2.Checked = False
rd3.Checked = False
rd4.Checked = False
rd5.Checked = False
rd7.Checked = False
rd8.Checked = False
End If
End Sub
Protected Sub rd7_CheckedChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles rd7.CheckedChanged
If (rd7.Checked = True) Then
rdb1.Checked = False
rdb2.Checked = False
rd3.Checked = False
rd4.Checked = False
rd5.Checked = False
rd6.Checked = False
rd8.Checked = False
End If
End Sub
Protected Sub rd8_CheckedChanged(ByVal sender As Object, ByVal e As System.EventArgs)
If (rd8.Checked = True) Then
rdb1.Checked = False
rdb2.Checked = False
rd3.Checked = False
rd4.Checked = False
rd5.Checked = False
rd6.Checked = False
rd7.Checked = False
End If
End Sub
</pre>
Thanx,
KOUNDINYA
|
|
|
|