|
you not doing it correctly. why do you do it ftp way ?
1)create a virtual directory on the IIS
2) Copy the File to that Directory
3) Configure the Security and .net if its not configured
and browse your site. its simple that way
Vuyiswa Maseko,
Spoted in Daniweb-- Sorry to rant. I hate websites. They are just wierd. They don't behave like normal code.
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.com
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/
|
|
|
|
|
Hi dr.nokia,
We are generally using publish website method for deployment. Can you try this method ???
If you have any doubts in publish, please contact me !
Thanks & Regards,
Jeneesh k. v.
|
|
|
|
|
hii,
i am using rolemembership in my website.i created two roles administrator and user.
but it is not identifying the role of users ie:admin or user whenever i login.however login is successful.but i am unable to open my website admin panel which is accessible by role("administrator").
what changes shud i do in my web config to solve this problem.plz guide.
Thank's
|
|
|
|
|
Start here[^]
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
Hey Mark, Happy new year !!!
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
Hello all,
Not sure if anyone has seen or heard of this problem before, but it has me stumped and google has failed to help in my search for an answer so far...
I am trying to use a couple of Application Variables on my site, but they keep disappearing.
I am storing the values I want them to hold in a config table in an SQL Db, then on application start I fetch the config values and turn them into Application variables so that I don't need everyone connecting to the db each time they need to be used which is very frequently.
I know making changes to the web.config file restarts the application, and that's not what's causing the problem. No class files are being changed or even pages updated, and yet the application variables just vanish, sometimes twice a day, sometimes once a week.
I have written an admin page to reset the varibles so it can be done nice and quickly, but I can't seem to find out what the problem is, I only seem to get it on my live server, not my test one. it's a Win 2003 box and the sites .net 3.5 if that helps at all?
Any help/advice would be appreciated.
Thanks in advance
mark
|
|
|
|
|
Check if your application variable getting lost coincides with IIS worker process recycling. IIS Worker process gets recycled based on various conditions like number of inputs serviced, time to live, etc and is configurable. But, it has to be recycles no matter what.
If this is the case then, it explains why you do not face this on your test server, since the no of hits on your test server is nowhere near what you get on the Live server.
The solution for your problem would be to use a sliding expiration scheme to auto expire/refresh the data on a time bound/unavailability basis. Alternatively, you can also modify the get property of the application variable to check if the data is available and fetch it from the server if it is not available. Doing this would ensure that your application does not fail and there is no need for manual intervention.
HTH!
Have a Great Year ahead!
|
|
|
|
|
Hi,
I am trying to send a text message to mobile from C#,
i googled and found one piece of coding but its throwing error..
UriBuilder urlBuilder = new UriBuilder();
urlBuilder.Host = "127.0.0.1";
urlBuilder.Port = 8800;
string PhoneNumber = "919894911514";
string message = "Just a simple text";
urlBuilder.Query = string.Format("PhoneNumber=%2B" + PhoneNumber + "& Text=" + message);
HttpWebRequest httpReq = (HttpWebRequest)WebRequest.Create(new Uri(urlBuilder.ToString(), false));
HttpWebResponse httpResponse = (HttpWebResponse)(httpReq.GetResponse());
the error is
No connection could be made because the target machine actively refused it
127.0.0.1:8800
am i doing correct?
help me
|
|
|
|
|
First thing to noticed about that your 127.0.0.1 is a sms server or your mobile device connected machine's IP. I think Your mobile device not connected to given IP machine.
Deepak
Smile a Lots,Its Costs Nothing
|
|
|
|
|
The code in general is correct, except for the URL part. 127.0.0.1 refers to local host and is used here as a reference. You need to replace it with the URL of some service that can process this request.
|
|
|
|
|
|
I don't know any such services, but I assume a Google search should give you a lot of options. But, most services would require you to become a member before you can use their service.
But, there should be other ways to do it than doing it via HTTP Web request/response. Just think of other means as well.
|
|
|
|
|
I have a ASP.Net Page that resides on a web-hosting server and it can be accessed by adding it as a link to a webpart on some other sharepoint server.
I want to display the IP address of Sharepoint server on the ASP.Net Page that can be viewed in the web part.
Is it Possible?
I tried Request.ServerVariables("HTTP_REFERER") but this gives the entire path which I don't want
i.e. http://<Sharepointservername>/tryout/default.aspx
I don't want this, I want the IP Address of the SharePoint Server alone.
I also tried Request.ServerVariables("remote_host") but it gives me the IP Address of the web-hosting server where the ASP.Net Page resides which is not what I want.
I hope all this is not confusing.
I am a .Net developer and Sharepoint is pretty new to me, so plz. help.
|
|
|
|
|
Hi,
I am implementing Asp.Net AJAX, in this in one .aspx page i am having 10 server side controls, now i want to pass all the controls values to my .JS page, from there i can call server side method using pagemethods.
The best way to send the control values to js page.........
|
|
|
|
|
You don't need to pass the values to your Javascript. You can retrieve them from the JavaScript:
document.GetElementById("MyControl").Value
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
hi
Is there any processor or code to traslate my Web page Contant to other language contant.
Example
[English Contant To Hindi Contant]
|
|
|
|
|
|
you can use Google Translate API
Cheers,
Nitin
===================
ANNET TECHNOLOGIES
===================
|
|
|
|
|
Search For Asp.Net Globlazation Concept for dynamic language change. If you dont know another language then the translator API can create some problem into some words.
Deepak
Smile a Lots,Its Costs Nothing
|
|
|
|
|
Hello to All Forum members.
I want to use a Tree view with multiple check boxes in Asp.net with c#.
I used "ShowCheckBoxes" properties of tree view to display node, these node are actually modules name of the project.
But I have to add two more checkboxes in each node to giving Edit and Delete Permissions of the modules.
Please visit the Url for more clear of the picture.
http://picasaweb.google.com/lh/photo/yfojhqq0dTeYi9oxRKcRAw?authkey=Gv1sRgCLnG4-v31czmLw&feat=directlink[^]
How can I achieve this ?
Please any one tell me the complete solution.
Thanks in Advance.
Vishnu Narayan Mishra
Software Engineer
|
|
|
|
|
Do like this :
<asp:TreeView ID="myTreeView" runat="server" ImageSet="Arrows" PathSeparator="|"
ShowCheckBoxes="All">
</asp:TreeView>
ShowCheckBoxes="All"
This is what you are looking for.
|
|
|
|
|
Hi
I already told that I did implemented this.
But I have to add two more check boxes.
Please visit the Url (Image) given in my post before giving me the answer.
This will clear you the picture what I exactly want?
Vishnu Narayan Mishra
Software Engineer
modified on Monday, January 4, 2010 7:57 AM
|
|
|
|
|
We incorporate a treeview like this in our Internet Filtering product. What we have done in this case is to use a third party ActiveX control. So you might want to consider searching the web for third party controls, and testing them out for your purpose. It's easier than trying to code it all yourself.
Web Filtering Guy
|
|
|
|
|
a.aspx
function btnLogin_onclick() {
var NumRandom = document.getElementById("lblRandom").value;
if (compare()) {
var str = '<%=WebEncrypt("' + NumRandom + '")%>';
document.write(str);
}
a.aspx.cs
public string WebEncrypt(string Text)
{
return Text;
}
it returns '+NumRandom+',Whyyyyyyyyyyyyy.....
|
|
|
|
|
Yaa... I think you dont know the basics of Web programming right.
Let me explain you.
In case of Web Applications, if you write server tag like <% %> it will get replaced in response.
Therefore, anything in the server tag is evaluated when the actual page is rendered.
But as javascript runs in the browser, it will run after all the page processing is done and the response in the browser.
You cant call a server method this way using server tag. You need to use AJAX to call server methods. You might use ICallbackEventHandler or PageMethods or your custom AJAX to do this job. But seriously, you cant pass value of javascript variable this way..
|
|
|
|