I am trying to justify writing a website in asp.net that has the potential to be as large as wikipedia. Are there any large websites content driven websites that have been written asp.net?
Im working with a complete website that was made quite a few years ago, and need to make it functioning with the most recent version of asp. I have no previous experience with asp.net
I want to create a unit testing project for my existing websiet which is written in VB. When I try to add a unit testing , no place I can select c#. It always create in VB. How can i add a c# unit testing project for it?
I have two examples to show you what I want to achieve here. But to point what's different about my question, Is that I'm having a parametrized URLs and I want to implement URL rewriting to my application. But I don't want to convert the parameter in the URL to be placed between slashes..."page.aspx?number=one" to "pages/one/" << NOT!
First example:
http://localhost:1820/Pages/Default.aspx?page=2&start=5 To http://localhost:1820/Pages/page2
Second example:
http://localhost:1820/Items/Details.aspx?item=3 To http://localhost:1820/Items/ItemName
But I'll still need all the parameters in the original URLs
Is there a (free!) software/components that I can use to track how my web site is being used - which pages are most popular, how many times was the site visitied today, yesterday etc...
i have to choose the most popular venueselect max(count(Destination))as popular_venu from bookingthis shows me error.how do i solve this?nothr queriesselect max(count(Departure_time)from bookingwhere Departure_time>12:00:00i got error for both.please help me to sovle
On my content page I have the code (in page_load):
if (Master.pageAction == "remove") { int removeProductID = int.Parse(Request.QueryString["ID"]); int removeOptionID = int.Parse(Request.QueryString["optID"]); Master.myBasket.removeFromBasket(removeProductID, removeOptionID); //Response.Redirect("viewBasket.aspx"); } The function remove from basket is defined as: // Removes item from a basket public void removeFromBasket(int itemsID, int optionsID) { Page myPage = (Page)HttpContext.Current.Handler; this.setCookieString(""); myPage.Response.Write("done"); }
And it calls:
// Sets cookie date public void setCookieString(string cookiesData) { Page myPage = (Page)HttpContext.Current.Handler; HttpCookie basketCookie = new HttpCookie("basket"); basketCookie["items"] = cookiesData; basketCookie.Expires = DateTime.Now.AddDays(7d); myPage.Response.Cookies.Add(basketCookie); }
I use the setcookiestring function on other pages and it works fine, but this function (removing from the basket) isn't setting the cookie! It is writing "done" to the top of the page, so the functions are executing.
No warnings, no errors, it's just not updating the cookie.
I am trying to call a webservice, written in PHP from ASP.Net. I have added Web Reference using "Add Web Reference". The url is: http://mikikard.com/public/webservice?wsdl
In Add Web Reference Window, I can see the list of functions. But, When I try to build the Website, It gives the following Error:
Unable to import binding 'SoaptestBinding' from namespace 'http://mikikard.com/public/webservice'.
We have a site and a logged in section of the site that all was written in classic asp. We are starting to convert the site pages to asp.net 3.5. We are starting with the easiest pages (text mainly) first then we will rewrite the web application part of the site.
My question is - Is it possible to run the new asp.net 3.5 pages with classic asp pages? Or will we need to rewrite everything before deploying?
I am working on a tool which audits access to existing web application. Existing app does not have any hooks in place, but my plan is to inject an IHttpModule by modifying web.config and log whatever I need to log during EndRequest event.
What I'm struggling with right now is: I cannot intercept what is application writing to an output stream. I need to know what output does the application send to the client. Originally, I hoped I could run a code in BeginRequest to replace HttpContext.Response.OutputStream with a stream of my own, which would be flushed to original stream during EndRequest, but the stream only has a get accessor, so I cannot replace it.
I could of course use reflection to assign to private member of HttpContext.
public static DataTable GetDataTable(SqlCommand sqlCmd) { DataTable tblMyTable = new DataTable(); DataSet myDataSet = new DataSet(); try { //1. Create connection mSqlConnection = new SqlConnection(mStrConnection); //2. Open connection mSqlConnection.Open(); mSqlCommand = new SqlCommand(); mSqlCommand = sqlCmd; //3. Assign Connection mSqlCommand.Connection = mSqlConnection; //4. Create/Set DataAdapter mSqlDataAdapter = new SqlDataAdapter(); mSqlDataAdapter.SelectCommand = mSqlCommand; //5. Populate DataSet mSqlDataAdapter.Fill(myDataSet, "DataSet"); tblMyTable = myDataSet.Tables[0]; } catch (Exception ex) { } finally { //6. Clear objects if ((mSqlDataAdapter != null)) { mSqlDataAdapter.Dispose(); } if ((mSqlCommand != null)) { mSqlCommand.Dispose(); } if ((mSqlConnection != null)) { mSqlConnection.Close(); mSqlConnection.Dispose(); } } //7. Return DataSet return tblMyTable; }
I use the above code to return records from database. The above snippet would run in web application which expected to have around 5000 visitors daily. The records returned reach 20,000 or over. The returned records are viewed (read-only) in paged GridView.
Would it be better to use DataReader instead of DataTable?
NOTE: two columns in the GridView are hyperlinked.
My title says it all, I am looking to see if there is any built in class/function that basically takes a number and gives back the number in letters such as 10 to ten.
I have downloaded a AsyncFileUpload example, I edited the uploadError javascript and now it is working perfectly:
[Code]....
It works perfectly how I wanted it, like this: I upload a file, if it's an Image I get the Lime AsyncFileUpload background, and the file name and size are written under the AsyncFileUpload, if it's not an Image, I get the error label shown, with red AsyncFileUpload background, and if I upload another file, it keeps working the same thing every single time, but only shows the last uploaded image name at the end of an image upload, not all of the images.I tried to merge it with my website, and ended with this code:
[Code]....
but in my website its just working the first time only, then rest times I'm getting the uploadError() function working instantly when I click upload, even if i have selected an image or anything else.
im working with an web application where i need to call a java script confirm message like (r u sure u want to proceed) in the text changed event of a text which is present in item template of a grid view.if the answer is yes i want to do some calculations if no then
protected void txtQuandity_TextChanged(object sender, EventArgs e) { Page.ClientScript.RegisterStartupScript(this.GetType(), "Test", "Quantity();", true); } In java script-- <script type="text/javascript"> function Quantity() [code]...
how i check the spelling written in text box is correct or not. in c# i am using a file which contains some words. and this file is used to check the spelling written in text box.
i have a multiline textbox. for example when i write to text box something like this," it is an example for my question " i'am getting the textbox.text and save it to databese, but when i get the same value from databese and show it on page it seems like this, "it is an example for my question", without skipping line, consecutive.
how can i save and get from database as written in textbox?
I am trying to add a web reference to a webservice that is apparently written in php. The problem is that it is causing the following error:-
Custom tool error: Unable to import WebService/Schema. Cannot find definition for
http://www.agenericservicename.com/ADS:ADSBinding. Service Description with namespace http://www.agenericservicename.com/ADS is missing.
The developers at the other end are telling me that .net has problems connecting to non-.net services in this way, but I was under the impression that a webservice was a webservice regardless of the technology used to build it.What is going on?
Am using UpdatePanel on a .aspx page with a User Control. This user control is AJAX enabled and is using UpdatePanel and ScriptManager on the aspx side. When I have EnablePartialRendering set to true i.e. <asp:ScriptManager runat="server" id="someId" EnablePartialRendering="true" >
and use ScriptManager.RegisterClientScript to write JSON from server side (C# code) - it is not written to the browser i.e. it shows empty square brackets when I view source in Browser i.e. var SomeVar = [] As soon as I change EnablePartialRendering ="false" and refresh the page JSON starting showing up in the browser i.e. var SomeVar = [{"id","1"}{"id",2}]