have visual studio pro where's asp.net?


I have visual studio pro where's asp.net\tThe box says I get c#, c++, and vis basic .net, I want to know where is the asp.net\tHow does one get it and what does it cost if I already have visual studio
Posted On: Tuesday 1st of January 2013 10:34:16 PM Total Views:  583
View Complete with Replies

RELATED TOPICS OF ASP.NET PROGRAMMING LANGUAGE




calendar

Hi everybody,\t\tI have an aspx file where there four textbox fields of date like birthdate, joindate, startdate... I want to use calendar control yo select the particular date, but i don't want four calendar controls on my page. Any alternate to use single calendar control to insert date for all the four date fields. Or i can say can i develop common calendar control for whole my application which set the selected date to particular page's control. Any way to generalize calendar control.mansi
VIEWS ON THIS POST

187

Posted on:

Saturday 10th November 2012
View Replies!

ASP Sending Variables in VB given a form

all, I am attempting to send 2 vars cid and coId with a form to another page. However, I cant figure out how to transmit them. On the page that receives, process_job.asp I am using request.form to another variable 'job_title. How can I get the others since they are in VB between tags I tried appending them to the line: but it wouldnt allow it. I need to transmit these values so they may be entered in the table on the next page as foreign keys.
VIEWS ON THIS POST

163

Posted on:

Saturday 10th November 2012
View Replies!

how to Maintain Session between ASP and ASP.NET?

plzz, Reply me How to maintain session betwwen asp and asp.net pages and also give code example that how to access ASP Session in Asp.net
VIEWS ON THIS POST

219

Posted on:

Saturday 10th November 2012
View Replies!

SQL escape characters{resolved}

,Im using SQL wityh ASP.net but have just encountered a problem.I want to search by surname.Fine.But when I enter a name such as O'Neill or O'Sullivan,my sql statement breaks because of the apostrophe.Im sure theres an easy way around this.Is there a way of stripping your text of apostrophes
VIEWS ON THIS POST

178

Posted on:

Sunday 11th November 2012
View Replies!

What is going wrong ?

I have a window which is opened using the window.showmodaldialog command. It display data relating to the record on the main page it is opened from. I change data and click a save button. It shows the the changed data. I check with Enterprise manager that my data has actually changed in the table - it has. I close my modal page. I reopen it and it is showing the old data again. If I put a break point in the Onload event it doesn't go through this event at all except the first time I open it.What am I doing wrong TIA
VIEWS ON THIS POST

194

Posted on:

Sunday 11th November 2012
View Replies!

Any good free ASP.NET 4 hosting?

Do you know any good free ASP.NET 4 hosting
VIEWS ON THIS POST

176

Posted on:

Thursday 15th November 2012
View Replies!

Edit Html templates using

Hi Friends, We are developing a web application for web templates, for that i have to edit html templates using vb.net. i need the code for that. How can i edit the html page. is there any possiblity to read the tags and edit. Plz help me
VIEWS ON THIS POST

210

Posted on:

Friday 16th November 2012
View Replies!

Popup Question

I have a calendar in [default.aspx] Within a cell in the calendar I have a hyperlink. When I click that hyperlink I want a gridview displaying the data for that date to appear in a popup [Gridview.aspx]. Is there a simple way to transfer values to a popup\t
VIEWS ON THIS POST

183

Posted on:

Friday 16th November 2012
View Replies!

Validation of viewstate MAC failed. If this application is hosted by a

Validation of viewstate MAC failed. If this application is hosted by a Web Farm or cluster, ensure that configuration specifies the same validationKey and validation algorithm. AutoGenerate cannot be used in a cluster. The above message is what I get in my ASP.NET 2.0 page. I have debugging turned on and for those who want to see the stack trace, see below. In my old web site I had a frame set with a ASP page in left frame and ASP.NET 2.0 page in right frame. It was working perfectly. Then I changed the frame set into IFRAMEs (well actually using floating/draggable/resizable IFRAMEs from http://blogus.xilinus.com/ ). Now I get the above error message when I try to load up my ASP.NET 2.0 page within a IFRAME created by http://blogus.xilinus.com/. ASP pages are fine. Stack Trace: [CryptographicException: Length of the data to decrypt is invalid.] System.Security.Cryptography.RijndaelManagedTransform.TransformFinalBlock(Byte[] inputBuffer, Int32 inputOffset, Int32 inputCount) +1493410 System.Security.Cryptography.CryptoStream.FlushFinalBlock() +30 System.Web.Configuration.MachineKeySection.EncryptOrDecryptData(Boolean fEncrypt, Byte[] buf, Byte[] modifier, Int32 start, Int32 length, Boolean useValidationSymAlgo) +154 System.Web.Configuration.MachineKeySection.GetDecodedData(Byte[] buf, Byte[] modifier, Int32 start, Int32 length, Int32& dataLength) +119 System.Web.UI.ObjectStateFormatter.Deserialize(String inputString) +214 [ViewStateException: Invalid viewstate. Client IP: 127.0.0.1 Port: 4945 User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727) ViewState: /wEPDwULLTEyMTQ2MDU5NjVkZLmM+Cz37HbivYCM/Wp5kXC0U+qx Referer: http://localhost/main.aspx Path: /Record/Optimiser/ASP/OptimiserOpen.aspx] [HttpException (0x80004005): Validation of viewstate MAC failed. If this application is hosted by a Web Farm or cluster, ensure that configuration specifies the same validationKey and validation algorithm. AutoGenerate cannot be used in a cluster.] System.Web.UI.ViewStateException.ThrowError(Exception inner, String persistedState, String errorPageMessage, Boolean macValidationerror) +116 System.Web.UI.ObjectStateFormatter.Deserialize(String inputString) +251 System.Web.UI.ObjectStateFormatter.System.Web.UI.IStateFormatter.Deserialize(String serializedState) +4 System.Web.UI.Util.DeserializeWithAssert(IStateFormatter formatter, String serializedState) +37 System.Web.UI.HiddenFieldPageStatePersister.Load() +220 System.Web.UI.Page.LoadPageStateFromPersistenceMedium() +83 System.Web.UI.Page.LoadState() +35 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +6953 System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +154 System.Web.UI.Page.ProcessRequest() +86 System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) +18 System.Web.UI.Page.ProcessRequest(HttpContext context) +49 ASP.record_optimiser_asp_optimiseropen_aspx.ProcessRequest(HttpContext context) +29 System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +154 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +64
VIEWS ON THIS POST

281

Posted on:

Friday 16th November 2012
View Replies!

2010 web form control buttons

When working with a C#asp.net 2010 web forms, I am wondering if you can take the 'buttons' out of a control and place them somewhere else on the webform and still have them work I would want those buttons to still refer to the asp.net control that they were originally associated with I am referring to buttons like insert, delete, and update. In particular I am asking that question about the listview, formview, or detailview control If this is possible, I am wondering if you can tell how how to accomplish this task and/or point me to a url that I can use as a reference to complete this task In addition when working with the buttons within the web form application and preferably not within the asp.net control, can I perform other programming that needs to occur If so, can you tell point how this would be accomplished Would I need to put the code in a certain method like a page_load,pre_init, a certain click event
VIEWS ON THIS POST

191

Posted on:

Friday 23rd November 2012
View Replies!

search engine

i m making a search engine and have a text box in which value will be insert and i want that value being search in database in c# asp.net using sql.could u provide me code or it.m making a search engine and have a text box in which value will be insert and i want that value being search in database in c# asp.net using sql.could u provide me code or it.
VIEWS ON THIS POST

170

Posted on:

Friday 23rd November 2012
View Replies!

I am trying to connect and write to my database in ASP using VB

This is my first ASP.net program so I am sure that my code will not look great, but if you can hel it would be appreciated. I am receiving the following error message "System.Data.OleDb.OleDbException: Syntax error in INSERT INTO statement." Line 34 is highlighted in red this is my code: 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. Public Sub Page_Load() 11. End Sub 12. 13. 14. 15. 16. Private Sub Survey(sender As Object, e As EventArgs) 17. Response.Redirect("Survey.aspx") 18. End Sub 19. 20. Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles 21.Button1.Click 22. Dim Connection As OleDbConnection 23. Dim cmd As OleDbCommand 24. Dim sqlstring, Customer, EmailAddress As String 25. 26. Customer = TextboxCN.Text 27. EmailAddress = TextboxEA.Text 28. 29. Connection = New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=|DataDirectory|Customers.mdb;") 30. 31. Connection.Open() 32. sqlstring = "INSERT INTO Customers (Customer, Email Address) Values ('" + Customer + "', '" + EmailAddress + "')" 33. cmd = New OleDbCommand(sqlstring, Connection) 34. cmd.ExecuteNonQuery() 35. 36. Connection.Close() 37. End Sub 38. 39. Protected Sub Page_Load(sender As Object, e As EventArgs) 40. 41. End Sub 42. This post has been edited by modi123_1: 14 October 2012 - 10:32 PM Reason for edit:: add code tags - highlight the text and click the 'code' button.
VIEWS ON THIS POST

187

Posted on:

Saturday 24th November 2012
View Replies!

difference between asp.net1.1 & 2.0

plz tell me difference between asp.net1.1 & 2.0.........
VIEWS ON THIS POST

192

Posted on:

Saturday 24th November 2012
View Replies!

on screen keyboard key Event in Asp.ent C#

I have one Login Page in windows Application Form and i want to create open on screen keyboard on button click event... i have done it but my problem is that when i click on "On screen Keyboard" then put that character or any key value store in text box or display any any message box to press key value..... so you have any code for that then give me reply very fast... i need it.. MOD EDIT: Topic moved and closed for violating the rules. We are not your personal code factory. Dream.In.Code has a policy by which we prefer to see a good faith effort on your part before providing source code for homework assignments. Please post the code you have written in an effort to resolve the problem, and our members would be happy to provide some guidance. Be sure to include a description of any errors you are encountering as well.Please post like this: Thank you for helping us helping you. This post has been edited by JackOfTrades: 13 September 2010 - 04:32 AM
VIEWS ON THIS POST

257

Posted on:

Saturday 24th November 2012
View Replies!

online hotel reservation system

how can i desing the database for an online hotel reservation system
VIEWS ON THIS POST

192

Posted on:

Saturday 24th November 2012
View Replies!

dynamically added usercontrol @ref tag

I have always used either the @reference or the @register tags for my usercontrols in my aspx pages. I want to avoid using either tag in my aspx page for this application. I read somewhere about the use of interfaces and delegates to avoid having to pre register my usercontrols. But I can't find any examples or any good descriptions of that technique. I have an asp.net 2.0 page that I want to code a mulitview panel on. I have 120 or so usercontrols and my requirement is that I may need to load several of them on the page but I don't know which ones ahead of time. I am trying to end up with a page that will give me a dozen buttons filled in by sql table lookup which point to the usercontrol when pressed. I want to dynamically load the usercontrol in the page and avoid the screen flash so I am using a mulitview to load the controls into and show them when the button is pushed. Any suggestions Thx
VIEWS ON THIS POST

202

Posted on:

Saturday 24th November 2012
View Replies!

HTML to ASP.net

I've got a mate who designed his own website for his business. He did it in pure HTML and it looks really good, but he now wants to put a dealer login up, with different prices etc. so he turned to me. [it will therefore have database access, datasets etc] So I'm just wondering what the best way is to change the site from HTML to ASP.net I've never done this before as I've always worked within ASP, from scratch. I'm not sure whether I'll have to change the whole site or just add an ASP page with prices etc. (is this even possible) Would I just cut and paste the HTML markup into the markup page in ASP What are the best practices when doing this
VIEWS ON THIS POST

196

Posted on:

Saturday 24th November 2012
View Replies!

Setting current folder

Dear all,In my web page i need to load file from current folder but the system quit with error message which point to file not found in "C:\WINDOWS\System 32\LoadFielName" I suppose the file should be in C:\InetPub\wwwroot\SystemNameFolder", right Do i need to code some setting syntax in my web page or code behind file to set the current folder
VIEWS ON THIS POST

136

Posted on:

Sunday 25th November 2012
View Replies!

Use Dropdownlist in DetailsView using asp.net/2.0

Instead of textbox, i want to use a dropdownlist in one of the fields in my DetailsView. I am using DetailsView for data entry. And one of the fields shoud be in dropdownlist because the record shoud be come from another table.Please help me how to do this, or yet much better if you have some example..Links to other tutorial are also welcome.To give you an insight this is what i want.Location Table:LocID LocName1 1rst Floor 2 2nd Floor3 3rd LoorItem TableItemCode Description LocIDItem1 Chair 1Item2 Table 2 Item3 Furniture 3Now I will be using DetailsView to View this "Item Table" records. Also i will allow to edit, delete, and Insert new record.Obiously what i want to happen is to limit entry for the locID of Item Table to have a referential integrity to Location Table. When i click for the "New" in DetailsView, all data input are in textbox. I want to have dropdownlist on LocID
VIEWS ON THIS POST

129

Posted on:

Sunday 25th November 2012
View Replies!

Capture Cookies and IDSession from another ASP

i have acces to a asp application with username and password... but i want to login automatically from my ASP.NET aplication.i have no idea how to do itbut i must get idsession and cookie that asp application send to me.may anyone help me\tthx in advance
VIEWS ON THIS POST

201

Posted on:

Sunday 25th November 2012
View Replies!

highlighting a text box in asp.net

i have seen text box getting highlighted in gmail and some websites, when the focus is on the particular textbox. I want to know how it is done. By the way am using c# lang.
VIEWS ON THIS POST

159

Posted on:

Monday 26th November 2012
View Replies!

ASP - VB - SQL - Display logged in username as label

Is there a way to display the logged in user's username as a label. That would be awesome if someone has a method for doing this(if simple).
VIEWS ON THIS POST

176

Posted on:

Tuesday 27th November 2012
View Replies!

Dynamically Assign An ID To LinkButton

HiI have a Reapeater control on my webform that is bound to a collection of objects. This collection implements the System.Collections.CollectionBase namespace.Databinding the repeater works fine but I am having problems assigning an ID to a linkbutton.The following is the code i'm trying to use:CODE\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tReply\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tMessage of \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tThis produces the following error:CODE'' is not a valid identifier.Does anyone know how I can bind the ID of this linkbuttonTIASmeat
VIEWS ON THIS POST

254

Posted on:

Tuesday 27th November 2012
View Replies!

Installing IIS

I need to install VS on a Windows XP.\tI need IIS as well.\tWhen I go to Add/Remove Windows Component, there is no entry for IIS.\tI don't have an XP installation disc.What are my options __________________________________________Try Forum1391 for lively discussions
VIEWS ON THIS POST

170

Posted on:

Tuesday 27th November 2012
View Replies!

How to select Visual FoxPro logical field from ASP.NET

Hi!I'm writing an ASP.NET application that connecting to Visual FoxPro database, I want to select a logical field "IsActive" equals to ".T." from the "Customer.dbf", I've tried the following but they don't work:"SELECT * Customer WHERE IsActive=.T.""SELECT * Customer WHERE IsActive=TRUE""SELECT * Customer WHERE IsActive='TRUE'"Does anyone know the solution
VIEWS ON THIS POST

234

Posted on:

Tuesday 27th November 2012
View Replies!

Can web form perform drag and drop?

Can web form perform drag and drop
VIEWS ON THIS POST

213

Posted on:

Tuesday 27th November 2012
View Replies!

Deploying asp.net application to test and production

all.\tWe currently deploy our asp.net application to our test server, then staging server, then production server.\tWhen we first deploy it to our test server, we always have to check out the web.config file and change the Debug parameter to Debug=False, then recompile.Is there an easier way so we don't always have to remember to change the debug parameter all the time\tPerhaps there is an addin that gives us the option to change the setting when we click "copy project"Anyone have any ideasThank you.
VIEWS ON THIS POST

459

Posted on:

Tuesday 27th November 2012
View Replies!

Encryption - Login and Password

I am calling an ASP application from my ASP.NET application - located on different servers.In the call I am passing the "Login" and "Password".If one of the serevers is down - The error page also lists the "login" and "Password" in the error message.Is there a good encryption and decryption method I can use to prevent this
VIEWS ON THIS POST

200

Posted on:

Tuesday 27th November 2012
View Replies!

including aspx pages

HiI want to include my header.aspx (and .aspx.vb) in my pages.\tThe header obviously has a page directive, as does the apsx pages I'm trying to include it in (doing .Errors out saying can't have multiple page directives... any ideas\tboth pages have codebehind, so they need the page directive to set the inherits and src attributes
VIEWS ON THIS POST

165

Posted on:

Wednesday 28th November 2012
View Replies!

Can one aspx page post to another aspx page?

Can one aspx page post to another aspx page\tI have a form on one page, and I would like it to post to another aspx page, but if I change the action, it still submits to itself.\tCould I do a response.redirect if it is not a postback\tWould the posted data be there\t
VIEWS ON THIS POST

319

Posted on:

Wednesday 28th November 2012
View Replies!

Object Management

Hi ,Just curious how you've tackled the issue of object management between your pages.I'm pretty sure that just storing objects as session variables is sound and will work, but are there any other options that you may know of
VIEWS ON THIS POST

353

Posted on:

Wednesday 28th November 2012
View Replies!

if statement for an ascx page

ascx is no different than aspx. the ascx is a webusercontrol. My guess is your mixing serverside and client side code.if you haven't worked with webforms before read up on how markup and codebehind work. you will also need to understand the difference between client and server code. Jason MeckleyProgrammerSpecialty Bakers, Inc.FAQ855-7190: Database Connection Management
VIEWS ON THIS POST

136

Posted on:

Friday 28th December 2012
View Replies!

ASP.Net page not passing variables to sub report in crystal

I have a crystal report that contains several sub reports.\tNow within the crystal reports IDE the report works correctly and all sub reports are generated and variables that were entered into the first main report are persisted to the sub reports.\tWhen i generate the report from my ASP.Net page and generate the report as a PDF, some of the sub reports get generated while 2 of them do not, and when i profile it in SQL it is as if the variables are not being passed to the sub report\t it did work a little while ago, so i am quite unsure how this has happened\t\tmy code is:CODEPrivate Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load\t\t\t\t'Load Report\t\t\t\tcr.Load(ConfigurationSettings.AppSettings("report"))\t\t\t\t'Perform Crystal Reports Login\t\t\t\tDoCRLogin(cr)\t\t\t\t'Pass Parameters and Set Report Source\t\t\t\tcr.SetParameterValue("jobcode", Request.Params("JobCode"))\t\t\t\t'cr.SetParameterValue("dateFrom", CDate(Request.Params("dFrom")))\t\t\t\t'cr.SetParameterValue("dateTo", CDate(Request.Params("dTo")))\t\t\t\t'cr.SetParameterValue("DateFrom2", CDate(Request.Params("dFrom2")))\t\t\t\t'cr.SetParameterValue("DateTo2", CDate(Request.Params("dTo2")))\t\t\t\tcr.SetParameterValue("dateFrom", CDate("02/01/2006"))\t\t\t\tcr.SetParameterValue("dateTo", CDate("02/07/2006"))\t\t\t\tcr.SetParameterValue("DateFrom2", CDate("03/07/2006"))\t\t\t\tcr.SetParameterValue("DateTo2", CDate("31/12/2006"))\t\t\t\tcr.SetParameterValue("FullPeriodStart", CDate(Request.Params("dFrom")))\t\t\t\tcr.SetParameterValue("FullPeriodEnd", CDate(Request.Params("dTo2")))\t\t\t\tcr.SetParameterValue("@Section1", 1)\t\t\t\tcr.SetParameterValue("@Section2", 2)\t\t\t\tcr.SetParameterValue("Currency", "")\t\t\t\tExportReport()\t\tEnd Sub\t\tPublic Sub DoCRLogin(ByRef oRpt As CrystalDecisions.CrystalReports.Engine.ReportDocument)\t\t\t\tDim _applyLogin As New ApplyCRLogin\t\t\t\t' use ApplyLogin object to apply login info to all tables in CR object\t\t\t\t_applyLogin._dbName = ConfigurationSettings.AppSettings("dbName")\t\t\t\t_applyLogin._passWord = ConfigurationSettings.AppSettings("password")\t\t\t\t_applyLogin._serverName = ConfigurationSettings.AppSettings("servername")\t\t\t\t_applyLogin._userID = ConfigurationSettings.AppSettings("userid")\t\t\t\t_applyLogin.ApplyInfo(oRpt)\t\t\t\t' clean up\t\t\t\t_applyLogin = Nothing\t\tEnd Sub\t\tSub ExportReport()\t\t\t\tDim oStream As New MemoryStream ' // using System.IO\t\t\t\t' Select Case format\t\t\t\t'\t\t\tCase "PDF"\t\t\t\toStream = cr.ExportToStream( _\t\t\t\t\t\t\t\t\t\tCrystalDecisions.Shared.ExportFormatType.PortableDocFormat)\t\t\t\tResponse.ClearContent()\t\t\t\tResponse.ClearHeaders()\t\t\t\tResponse.Buffer = True\t\t\t\tResponse.ContentType = "application/pdf"\t\t\t\t'--------------------------------------------------------------\t\t\t\tTry\t\t\t\t\t\tResponse.BinaryWrite(oStream.ToArray())\t\t\t\t\t\tResponse.Flush()\t\t\t\t\t\tResponse.Close()\t\t\t\tCatch err As Exception\t\t\t\t\t\tResponse.Write("< BR >")\t\t\t\t\t\tResponse.Write(err.Message.ToString)\t\t\t\tEnd Try\t\tEnd SubHas anyone got an ideas\tTHanks Rob ---------------------------------------http://www.thatssolastseason.co.uk
VIEWS ON THIS POST

201

Posted on:

Tuesday 1st January 2013
View Replies!

Weird error only on Win 2k3 server; Encountered User Breakpoint

Can someone please tell me why this code (it is a function that has a parameter xmlstring):CODEDim objWebRequest As HttpWebRequestDim oRequest As WebRequestobjWebRequest = CType(WebRequest.Create("https://anon:6442"), HttpWebRequest)objWebRequest.Method = "POST"objWebRequest.ContentType = "text/xml"Dim PostBuffer As Byte() = System.Text.Encoding.GetEncoding(65001).GetBytes(XmlString)objWebRequest.ContentLength = PostBuffer.LengthobjWebRequest.ProtocolVersion = HttpVersion.Version10Dim oStream As Stream = objWebRequest.GetRequestStream()oStream.Write(PostBuffer, 0, PostBuffer.Length)oStream.Close()Dim objWebResponse As HttpWebResponseobjWebResponse = CType(objWebRequest.GetResponse, HttpWebResponse)Dim Enc As EncodingEnc = System.Text.Encoding.GetEncoding(65001)Dim oStreamReader As New StreamReader(objWebResponse.GetResponseStream, Enc)ResponseString = oStreamReader.ReadToEndoStreamReader.Close()Return ResponseStringCauses this\t:Quote:The description for Event ID ( 0 ) in Source ( .NET Runtime ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer. You may be able to use the /AUXSOURCE= flag to retrieve this description; see Help and Support for details. The following information is part of the event: .NET Runtime version 1.1.4322.2032- w3wp.exe - Common Language Runtime Debugging Services: Application has encountered a user-defined breakpoint.Process id=0xfb8 (4024), Thread id=0x1198 (4504).Click ABORT to terminate the application.Click RETRY to debug the application.Click IGNORE to ignore the breakpoint..When I change the code above to use the old MSXML serverxmlHTTP COM object things run great but when I tell it to use the above code i get the above message in the application event log.The most unusual issue about the whole thing is that it works perfectly on my test machine which is windows xp with iis 5.1 and the same .net version. Yet on a win2k box with iis 6 it causes this problem.
VIEWS ON THIS POST

155

Posted on:

Tuesday 1st January 2013
View Replies!

ASP.NET Windows Integrated Security

This is the first time I'm useing Integrated Security, and I am probably missing something silly.I have IIS set to use Integrated Security and anonymous access is disabled.My web.config file is set to: \t\t\tThis causes the login prompt to appear when accessing the web form, and I cannot log in.\tI don't think that it is doing any real authentication.\tWhen I "allow" a specific user and "deny" another, anybody can get in. Does anybody know what I could be missing
VIEWS ON THIS POST

231

Posted on:

Tuesday 1st January 2013
View Replies!

Can JS access the controls in a USER CONTROL for client-side events?

In the main ASP.NET page ... if you have a user control ... which say contains several controls like say text boxes for a person's address ....\thow can you use JS to access the text boxes in the User Control.Do user controls support events on the client side that you can use JS to access how do you do thatSay I want to access the client side change event for a textbox within the user control ..... .. I have no problem with the server side events. I want to explore JS for client side processing as well.
VIEWS ON THIS POST

196

Posted on:

Tuesday 1st January 2013
View Replies!

How to call a DLL from ASP.Net...something like this...

I'm redoing an ASP code using ASP.Net..In the ASP code, i have a drop down box, ASP calls a DLL to get the values for the drop down box:bjLogin = server.CreateObject("ESPDatabaseAPI.Mode")rec=server.createobject("ADODB.Recordset")rec = objLogin.List()do while not rec.EOF %>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
VIEWS ON THIS POST

225

Posted on:

Tuesday 1st January 2013
View Replies!

Web Control:TabStrip graphic images available?

Where can I find some graphic images for my TABs in thw Microsoft TabStrip web controlTrying to spruce up my images.
VIEWS ON THIS POST

175

Posted on:

Tuesday 1st January 2013
View Replies!

User control issue

I have created an *acsx file for my navigation. In it there is some logic for the log in button. In the old asp version I checked a session variable to see if user was logged in and if so to replace the log-in button with a log-out button. I am having problem trying to do the same in the asp.net version. Below is the navigation.acsx page.You will notice that there are no tags around the imagebutton tag. When I do add it, it crashes and tells me that I cannot have two tags. naturally, I am importing the navigation.acsx page to the main page and it already has a
VIEWS ON THIS POST

201

Posted on:

Tuesday 1st January 2013
View Replies!

Reaching invisible Datagrid Cell

I have table with columns;ProductIDProductNameProductDescriptionI want to show results using an editable DataGrid. however when displaying the data, i dont wanna display the productId. So I set visible value to false. When i do so , I can not get its value in updating sub.How can i get the value of that column in updating sub
VIEWS ON THIS POST

151

Posted on:

Tuesday 1st January 2013
View Replies!

Alphabetized indentifying Links within Datalist

I have a datalist that is displaying a list of all the reports available to my management staff.\tThere are various ways to filter it, but one request has been to list all of them on one page "just in case." There are over 400 of them.What I want to do is list them alphabetically and have an Alphabet of hyperlinks at the top of the page.\tIt would look like this:A | B | C | D | E ..... etc.When the user clicks on 'M' I would like to jump down to the first report that begins with the letter 'M'.\tRight above the M's I would also like a 'Back to Top' link.\tThis is a very easy task to do in strait HTML, but I can't figure out how to get it work with a datalist or datagrid.If anyone has any ideas, I would really appreciate it
VIEWS ON THIS POST

201

Posted on:

Tuesday 1st January 2013
View Replies!

Refering to Dynamically Added Controls

Hi!I am adding controls to an ASP.NET page at runtime. Because of the nature of the task there could be any number of new controls added. Does anybody know how I refer to these controls once a button has been clicked to submit the form A method of looping through them would be ace!The new cotrols live in a panel (not created at runtime). I have tried doing a FindControl on the panel, but am having no joy :(Ideas would be great!CheersRob
VIEWS ON THIS POST

242

Posted on:

Tuesday 1st January 2013
View Replies!

Trouble sequencing numbers in Access.

I have an Access database with a table and 2 columns.ybOrderNums\twebOrderNums10000\t\t\t\t20000And I have a chunk of code that reads one of the numbers (depending on which type of job) increments the number, and replaces it with the new, incremented number.However, I am getting some customers with duplicate numbers. Here is my code:Dim strNewNumI, srcColumn, strNewNum As String\tDim objTable As New DataTable("NewOrders")\tDim objReader As OleDb.OleDbDataReader\tDim objConn As New OleDbConnection(dbAccess)\tDim cmdNewNum As New OleDbCommand("SELECT * FROM tblNewOrderNum", objConn)\tSelect Case oType\tCase ordType.WebOrder\t\tsrcColumn = "wOrders"\tCase ordType.YBOrder\t\tsrcColumn = "yOrders"\tEnd Select\tobjConn.Open()\tobjReader = cmdNewNum.ExecuteReader\tDo While objReader.Read\tstrNewNum = objReader(srcColumn)\tLoop\tobjReader.Close()\tstrNewNumI = strNewNum + 1\tcmdNewNum.CommandText = "UPDATE tblNewOrderNum SET " & srcColumn & " = '" & strNewNumI & "' "\tcmdNewNum.ExecuteNonQuery()\tobjConn.Close()\tReturn strNewNumII am not sure how to set this to pessimistic connections, so only one person can read the data at a time. Or should I do a stored procedure
VIEWS ON THIS POST

193

Posted on:

Tuesday 1st January 2013
View Replies!

ASP.NET and Crystal Reporting

There are sample app;ications and white papers available at http://www.crystaldecisions.com/products/dev_zone/net/default.asp
VIEWS ON THIS POST

172

Posted on:

Tuesday 1st January 2013
View Replies!

Control Question

I can get the UniqueID of any control on my page, but I want to know how I can use this info to edit the control's properties.I have a TableCell Control that I want to edit the text of by using the UniqueID, is there a way of doing thisCheersJames
VIEWS ON THIS POST

237

Posted on:

Tuesday 1st January 2013
View Replies!

Cannot catch exception because its not of class system.exception

,I'm coding ASP.NET with VB and I've been nicely coding away for a few days getting things working and now that they do i thought it prudent to start putting in some error handling.Rather then use the old 'on error goto' approach i thought that 'try..catch' was the way to go. However, even trying something simple as follows, i get error 'Cannot catch exception because its not of class system.exception'trymyvar = mvothervar / someothervarcatch ex as exception when myvar = 0 \tresponse.writeendThe 'ex' is underlined, with the above error. I dont get this message when starting a new project, i really dont want to have to cut and paste all my code to a new project. Anyone any ideas about whats gone wrong
VIEWS ON THIS POST

193

Posted on:

Tuesday 1st January 2013
View Replies!

How to see errors on a remote server

I am creating a page that is being stored on a remote server. Right now I am getting the error below. I have set the mode to off, but I still get this. I want to be able to see the exact error even though it is stored somewhere else. Any help would be great.\tScottRuntime Error Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine. Details: To enable the details of this specific error message to be viewable on remote machines, please create a tag within a "web.config" configuration file located in the root directory of the current web application. This tag should then have its "mode" attribute set to "Off".\t\t\t\t\t\t\t\t
VIEWS ON THIS POST

212

Posted on:

Tuesday 1st January 2013
View Replies!

Calendar Control

For some reason, my calendar control is giving me an old date. In my Page_Load method, I am outputting the SelectedDate, but it is always one old. For instance...Date Clicked\tOutput ValueLoad\t\t\t\t\t01/01/000110/23/2002\t\t01/01/000110/25/2002\t\t10/23/200210/10/2002\t\t10/25/2002Has anyone ever had this problem I don't understand!
VIEWS ON THIS POST

179

Posted on:

Tuesday 1st January 2013
View Replies!

HttpHandler output using System.Web.UI.Page

ok, so i have this handler for "xml2" files...all they are is regular xml files structured like text etc etc so that i can use xsl to simplify formatting and parse in menus and what not.it was all cool using my handler to just parse with xsl and display, but now i've changed to a whole new strategy so that i can incorporate the power of aspx.\ti have a PageTemplate class that inherits from System.Web.UI.Page...i then have a user control that inherits from this... in short, i just put content in an aspx page and it doesn't have to be well formed xml or anything like that and i get the same affect as my xml2 thing, only now i get a wysiwyg editor for other developers...wopee!ok now my question...i still want to use the xml2 pages, but i don't want to the xsl to handle any menu stuff...so i want to basically change the request to an aspx page that and then change that into a TemplatedPage and then parse in my transformed xml2 into some content cell...any ideas\t\tsorry for the crappy explanation, but i don't want to write a research paper in a little box.what i'm thinking about doing is simply doing a context.response.redirect("formatpage.aspxp=" + request.url); and having formatpage.aspx do the grunt work, but i want a more graceful solution from within my handler.see http://www.aspalliance.com/Mamanze/articles/default.aspxpath=PageTemplate for a snippet of what i'm doing with the page template...mine is very similar to tha
VIEWS ON THIS POST

187

Posted on:

Tuesday 1st January 2013
View Replies!