|
This is probably a dumb question but is ASP.Net a Server side script or a client side script? I ask this because I'm doing Coop with a particular department in the Government (Canada) and they use ASP.Net in their websites and I was given a book to learn about it. I'm about 5 chapters in and the above question still lingers.
|
|
|
|
|
ASP.NET is a framework that runs on the server side. The book probably assumes that you know that html, css and javascript is all you want to be sending to the client.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Oh I hate Javascript, I'd do a basic "Hello World" with document.write and I'd get 5 errors that made no sense but Thanks.
|
|
|
|
|
The point of ASP.NET is that it is a factory that generates HTML and javascript. So, quite often you can do some cool stuff without writing your own script. Of course, sometimes you need to, and you can inject it into your pages in this instance.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Hello everyone,
I developed a web site with asp.net 2005 (c#). I put in app_code three directories that conatin my classes:
BIZ: contains bizuness classes
DAL: data access layer
MODEL: contains models of my database's table
When I run the project locally on my computer everything is allright. But I published the site, I get this error:
CS0246: The type or namespace name 'BIZ' could not be found (are you missing a using directive or an assembly reference?)
This error is in a function like follow:
<br />
private void DisplayBlogLaUne(){<br />
BIZ.Blog o;<br />
o = new BIZ.Blog();<br />
Model.InfoBlog info;<br />
...<br />
}<br />
This site bugs on
BIZ.Blog o;
Could anyone tell me what's the problem?
Just Relax And Keep It Simple.
|
|
|
|
|
sounds like the dll is missing.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
hello Christian,
I don't have any DLL in my website. I don't need any and I don't use any!
The BIZ.Blog is falling and BIZ is the directory who is the namespace of Blog class.
thanks.
Just Relax And Keep It Simple.
|
|
|
|
|
Hi All,
I have a returned dataset with 4 different tables in the dataset. I need to add 1 new column in one of the table in the dataset. And I sort that table. Then I need to bind the whole dataset with a data repeater.
Could someone help me how to accomplish this?
Thanks so much
|
|
|
|
|
Hi ,
I am trying to bind data to a grid view from an enumerator.
Followings is the piece of code.
I get a resulting girdview which shows data vertically instead of horizontally.
Please help me
override public void PopulateTestCases(string searchString)
{
ArrayList arrScripts = new ArrayList();
//ddlTestCases.Items.Clear();
bool connect = td.Connect("http://aa-bb.us.xxxxx.com/qcbin/", "hello", "SystemTestMaster", "oops", "abcdef");
if(!connect) throw new Exception("Quality Center Connection failed");
arrScripts = td.GetBaseTestScripts(searchString.Trim());
System.Collections.IEnumerator myEnumerator = arrScripts.GetEnumerator();
// GridView_TestCase.DataSource = arrScripts;
while (myEnumerator.MoveNext())
{
GridView_TestCase.DataSource = myEnumerator.Current.ToString();
GridView_TestCase.DataBind();
//ddlTestCases.Items.Add(myEnumerator.Current.ToString());
}
td.DisConnect();
//if(ddlTestCases.Items.Count < 1) throw new Exception("No TestScripts were found with the given Search String.");
}
Thank You ,
With Warm Regards,
Nikhil Pagidala
Happy Programming!
Regards,
Nikhil Pagidala
|
|
|
|
|
I am working on a project developing an ASP.NET (1.1) web application. However, I am not using the Visual Studio.NET front-end design application. I'm simply using notepad to create .ASPX, .VB, and other related documents. When I want to write a pre-compiled visual basic class, I use the command-line vbc.exe compiler, and place the output DLL in the /bin/ folder.
Up to this point, this has worked fine for me.
Now, I am trying to use a third-party COM module with the site (simplechart.net). I have installed the module on the server. Now, in the instructions that come with the simplechart.net module, I am told:
"In the Solution Explorer, Right-click on References and select Add Reference. Select the COM tab in the resulting Add Reference dialog. Scroll down to the SimpleChart Toolkit 2.1, highlight it and click Select."
But.... I don't use the Visual Studio.NET front end.
So my question is this: What is it that this "Add Reference" process really DOES, in the background? Can I do the same thing manually, without going in to Visual Studio.NET?
---Greg
p.s. please don't reply with "Why would you want to do that?" and go on to extoll the virtues of using the Visual Studio.NET application. I am first interested in whether or not it is possible (whether or not you think it's advisable) to do without.
|
|
|
|
|
Add Reference tells the compiler what DLLs to include when building; as well as this - it also tells Visual Studio .NET how to handle things as far as Intellisense is concerned (not that this bit concerns you). Anyway - you can achieve what you need by using /reference:mydll.dll in the cs.exe command line you are going to use.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
First of all, thank you for your reply, it was very helpful!
One follow-up question, though: What if I want to make use of the Class (that is defined in the DLL) in a code-behind page? Since I'm not compiling the code in the code-behind page, I wouldn't be using cs.exe and wouldn't have an opportunity to use /reference, correct?
Or am I misunderstanding how/when to use the /reference option?
Thanks again for your help!
----Greg
|
|
|
|
|
Sorry it's taken me so long to get back to you, but the answer is that you wouldn't need to use the /reference here. This is only to add a reference to an external assembly.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
Hmm.... I'm not sure you understand. I'm still trying to make use of a class name in the external assembly, but I'm trying to make use of it in a code-behind page, rather than a compiled class.
Specifically, I have installed an external assembly called SimpleChart, which gives me a file called SimpleChart4.dll.
Then, in a code-behind page I say:
Imports SimpleChart4
which is the name of the namespace, and is the line used in all of their example code. However, it gives me an error, telling me that it doesn't recognize the type.
In theory, if I had the Visual Studio.NET application, I could click on "Add Reference", choose the "COM" tab, and add a reference to the DLL, and then suddenly it should be able to recognize the SimpleChart4 namespace/type.
However, since I do not use the Visual Studio.NET application, I'm wondering how to do this without....
----Greg
|
|
|
|
|
Plz tell me
when to use PostBack and when to CallBack.
I understand that,postBack helps avoiding the reloading of some data during page_load or page_initilize events...But, How about CallBack?
With a small code snippet(if possible),Plz explain me.
Thanks a lot.
Muthu
|
|
|
|
|
post back: the whole page is send back to the server(images, html, all)
Call back, only the funcions into the java script is send back to the server and returned.
here is a video about using call back with ajax
http://www.asp.net/learn/ajax-videos/video-79.aspx
i hope it helps.
|
|
|
|
|
Thank u very much for reply me..was useful to me..
Muthu
|
|
|
|
|
Hi all,
I have to make one web page where user can add dropdownlist dynamically. As many time user clicks on one button it add one dropdownlist control to webpage. Is it possible to do this using ASP.NET without java script?
Thanks in advance,
Priyank
|
|
|
|
|
You can use a PlaceHolder control. On every click of the button event, create a dropdownlist and add it to the PlaceHolder
protected void btnCreateDropDown_Click(object sender, EventArgs e)
{
PlaceHolder phDropdownlist = new PlaceHolder();
DropDownList dropdown = new DropDownList();
dropdown.ID = "SomeName";
dropdown.DataSource = dataset1;
dropdown.DataTextField = "Text";
dropdown.DataValueField = "Value";
dropdown.DataBind();
phDropdownlist.Controls.Add(dropdown);
}
|
|
|
|
|
:-OHow to clear all cookies and Session ids after complete signout.
I have tried Session.Abandon()
Session.Contents.RemoveAll(),Session.Contents.Clear();Session.RemoveAll();
Session.Clear(); method.
whenever i click on Back button in the browser bt,the cookie and session id still alive.what i do? help me.....
GaneshKalai
|
|
|
|
|
Don`t worry.The page is actually loaded from the cache and the user cannot perform any server side operation unless and until you are checking the cookie on page load of every page.
|
|
|
|
|
I have same problem and I want members don't watch previous page after signing out.(like mail.yahoo.com)
|
|
|
|
|
Hi everyone,
I am shifting from .NET 1.1 to 2.0.I installed VS .NET 2005 with AJAX extensions. I am very fascinated by the term AJAX and its advantages but i didn`t get any samples for it. Can anyone spend a moment to help me out!!!!!
|
|
|
|
|
when you download
AJAX toolkit there are two version, the one with samples and the other without Samples.
also in the asp.net ajax home page, there is a lot of videos about how to start using the ajax toolkit, remember, the toolkit is just that a easy and fast way to use some AJAX capabiities.
http://www.asp.net/learn/videos/default.aspx?tabid=63#ajax
http://www.asp.net/ajax/downloads/
|
|
|
|
|
download ajax toolkit: http://www.asp.net/AJAX/Control-Toolkit/
toolkit demo live: http://www.asp.net/AJAX/Control-Toolkit/live/
kiet vu
(-,-)am from VietNamese.
|
|
|
|