|
Hello
i'm making a webapplication using Asp.Net1.1 with vb.
By Using my Applicaton User Can Make his Site and Uploaded on his Server as well.
now i have to Monitor his Server by my Application that how many Disk Space he has been used if we allowed him 100 MB.
how can i do it.
thanx
|
|
|
|
|
hi
i installed iis in my system and test it by : http://localhost/localstart.asp and working correctly .
but when i create asp.net web site in VS2005 the following message shown me :
The site 'http://localhost/WebSite1' has not been configured for use with ASP.NET 2.0. Microsoft Visual Studio has been designed for use with ASP.NET 2.0; if not configured some features may make incorrect assumptions, and pages designed with the tool may not render correctly.
Would you like the site to be configured now?
and when i click Yes the follwing message shown me :
Configuring web site 'http://localhost/WebSite1' to ASP.NET 2.0 failed. You may need to manually configure this site for ASP.NET 2.0 in order for your site to run correctly.
and when i compile my project by VS2005 the following message shown me :
Unable to start debugging on the web server. The server does not support debugging of ASP.NET or ATL Server applications. Click Help for more information on how to enable debugging.
You may also want to refer to the ASP.NET and ATL Server debugging topic in the online documentation.
How to Solve my Problem ??
|
|
|
|
|
I am not sure but if you try this,
Go to your IIS server and right click default website and choose properties.
for the tabs choose Asp.net tab
and check which version is there if its not version 2 or later then choose latest version from there . it may help.
thanks
Naveed Kamboh
|
|
|
|
|
Hi
Thanks for guide me . i checked version and it's empty and i set it to 2.X but when i start without debug of my project the following message shown me :
Server Error in '/WebSite1' Application.
----------------------------------------------
Failed to access IIS metabase ...
and not run in debug mode . ow to solve my problem ?? my version iis is 5.1 .
Do u know that i must install IIS 6.0 or higher ?
|
|
|
|
|
This means that ASP.Net is not properly registered with IIS.
.Net framework provides an Administration utility that manages the installation and uninstallation of multiple versions of ASP.NET on a single machine. You can find the file in C:\WINNT\Microsoft.NET\Framework\v**\aspnet_regiis.exe
use the command: aspnet_regiis.exe -u ---> to uninstall current asp.net version.
use the command: aspnet_regiis.exe -i ---> to install current asp.net version.
For Windows Server 2003, you must use aspnet_regiis -i -enable
This is because of the "Web Service Extensions" feature in IIS 6
Thanks & regards,
Suresh Dayma
|
|
|
|
|
here my prob is ,
for example i have a savebutton
and when that button clicked am do both insert and update,
if yes how to do that.using any flag variable or something like that,urgent.
kissy
|
|
|
|
|
Insert and update what? A file, a listbox, database???
only two letters away from being an asset
|
|
|
|
|
And even if both are there they can be done one after one.
Best Regards,
Apurva Kaushal
|
|
|
|
|
Hi,
I hope my understanding is correct.
You have button to save the data to the backend, that needs to insert the new record and update the existing reocrd is it? You can have a viewstate variable in your web form to check the corrent record on the web form is in insert mode or update mode (If a record retrieved from backend it is in update mode), set the status as 'U' in the view state, if the viewstate value is 'U' issue an update or make an insert. Hope this what you want?
Ram
|
|
|
|
|
how it will works,i can not get the idea.I have add,update,save buttons.if i add button just i am able to edit a name in the textbox,then i click save.same way if i click on update ,i can just modify the value and again i need to click on save button to save the changes.
will it be possible to do these two tasks in save button(insert,update).how??
kissy
|
|
|
|
|
Put the code of insert in a separate function and update in a separate function and then call both the metods one after one where you want to accomplish both the task.
Best Regards,
Apurva Kaushal
|
|
|
|
|
thank you ur answer is good,i am trying in that way.
kissy
|
|
|
|
|
always welcome..
Best Regards,
Apurva Kaushal
|
|
|
|
|
I have the solution if two buttons are there differently,but is it possible in a same button.if i click add then save,if i click update then save.add and update code can we write in the same button,if how
kissy
|
|
|
|
|
Hi,
I have got a button inside a page which is which is derived from a Master Page.Button Click of this button pops up a child calendar window i need to collect the selected date back in a textbox availabale on the parent form, but i am unable to get the desired results. Please let me know what all modification i do need to make in the following code to get the desired results:
Code in the button Click Event:--
string id = txtSDate.ClientID;
string str = " window.open(" + "'../Components/calendar.aspx?formname=frmGlobalScheme." + id.ToString() + "','Details','height=260,width=300,resizable=No,scrollbars=Yes,menubar=No')";
Response.Write(str);
Code in Calendar SelectionChanged Event:--
string strjscript = "";
strjscript += "window.opener." + HttpContext.Current.Request.QueryString["formname"];
strjscript += ".value = '" + Calendar1.SelectedDate.ToString("d") + "';window.close();";
strjscript += "</script" + ">";
Response.Write(strjscript );
Thanks in Advance
|
|
|
|
|
Yes same problem i am facing.
any help please
Naveed Kamboh
|
|
|
|
|
I have a calendar popup that I use as well. Here is the code behind.
<br />
<br />
public partial class UserControls_CalendarPopUp : System.Web.UI.Page<br />
{<br />
protected void Page_Load(object sender, EventArgs e)<br />
{<br />
if (Request.QueryString["DefaultDate"] != "")<br />
{<br />
this.Cal.SelectedDate = DateTime.Parse(Request.QueryString["DefaultDate"].ToString());<br />
}<br />
}<br />
protected void Cal_SelectionChanged(object sender, EventArgs e)<br />
{<br />
string StrTB;<br />
string StrJs;<br />
<br />
StrTB = Request.QueryString["TB"].ToString();<br />
StrJs = "<script> opener.window.document.getElementById('" + StrTB + "').value = '" + this.Cal.SelectedDate.ToShortDateString() + "' ; window.close(); </script>";<br />
this.ClientScript.RegisterClientScriptBlock(this.Page.GetType(), @"<script type=""text/javascript"">UpdateOpener();</script>", StrJs);<br />
}<br />
}<br />
<br />
<br />
protected void Page_Load(object sender, EventArgs e)<br />
{<br />
if (!IsPostBack)<br />
{<br />
this.imgCalIcon.Style.Add("Cursor", "pointer");<br />
this.imgCalIcon.Attributes.Add("onclick", @"popupCal('" + this.TxtDate.ClientID.ToString() + @"', '" + sDefaultDate+@"');");<br />
}<br />
<br />
}<br />
<br />
<br />
<br />
Finall the javascript on the page with the image<br />
<br />
function popupCal(TextBox, DefaultDate)<br />
{<br />
settings=<br />
"toolbar=no,location=no,directories=no,"+<br />
"status=no,menubar=no,scrollbars=no,"+<br />
"resizable=no,width=230,height=186;"<br />
MyNewWindow= open("../UserControls/DateTextBox/PopUpCalendar/CalendarPopUp.aspx?TB="+TextBox+"&DefaultDate="+DefaultDate,"CalFrom",settings);<br />
}<br />
<br />
One more thing don't forget to change the link to the CalendarPopUp.aspx. It will have to point to the directory where you put the calendar page.
how vital enterprise application are for proactive organizations leveraging collective synergy to think outside the box and formulate their key objectives into a win-win game plan with a quality-driven approach that focuses on empowering key players to drive-up their core competencies and increase expectations with an all-around initiative to drive up the bottom-line. But of course, that's all a "high level" overview of things
--thedailywtf 3/21/06
|
|
|
|
|
|
Hi All,
Is Microsoft Obseleting the VB 6 support ??
Plz discuss, or give Valid links about this Topic.
Thanks in advance
Sajjad
|
|
|
|
|
|
thanx Mike
|
|
|
|
|
Here i have a dropdwnlist and when i do some changes with the list in dropdwnlist,that should be reflected in dropdownlist,for me it si reflecting in database only.
when i clickon refresh buttom from the main menu it should be reflected in the listitems also.give me a solution
kissy
|
|
|
|
|
Sounds like you need to rebind your list after you change the items.
|
|
|
|
|
ya i need to get the same.how to do this in update button event raised
kissy
|
|
|
|
|
When you update the database with the new value just after that rebind the dropdownlist.
Best Regards,
Apurva Kaushal
|
|
|
|