Session hold data table problem


I have datatable on a page which i put into a session and then use this datatable on subsequent pages. However when I call this Session I get an error saying "Specified cast is not valid"

I use a procedure as below to to apply my session to the datatable

If IsNothing(Session("ProviderTypes")) Then 'check to see that the session is fully if not then populate session
objProvType = New ProviderTypes(ctrl)
objProvTypTB = ds.ProviderType
Session("ProviderTypes") = ds.ProviderType
End If

objProvTypTB = Session("ProviderTypes") 'line of error

I cant seem to work out what im doing wrong

Posted On: Tuesday 1st of January 2013 10:15:53 PM Total Views:  695
View Complete with Replies

Related Messages:

Can an updatepanel solve the problem...?   (253 Views)
I have 2 links (A & B) that are supposed to display information (from two different tables - A & B respectively). I also have a GridView Control that is supposed to do the data presentation. Of course the GridView control sits in an UpdatePanel control. The problem is how to display table A when I click on link A, (or likewise for link B) without flickering the page
Panel GroupingText Font Color   (218 Views)
I'm going crazy here searching how to change the groupingtext font color in the panel control. Please help.
MSSCCPRJ.SCC Corrupted??   (268 Views)
Hi Everybody, As I opened the solution with web application, a error message dialog box appears with this message:Quote:The solution appears to be under source control, but its binding information cannot be found. It is possible that the MSSCCPRJ.SCC file or another item that holds the source control settings for the solution, has been deleted. Because it is not possible to recover this missing information automatically, the projects whose bindings are missing will be treated as not under source control.How can I fixed this so it will not appear anymore The whole folder is copied from another pc including the file 'MSSCCPRJ.SCC'
Server.MapPath() error   (220 Views)
Can Server.MapPath() be used from a C# class I get an error "The type or namespace name 'Server' could not be found." It gives no error if the code is placed in a web page or user control. Can anyone explai
Export single record to word document in Crystal Report VS2008   (257 Views)
I have the code below where it exports all the record into a single word file. Well, I'm having a problem in exporting a single record to word document. In other words, I want the chosen record to be exported in a single word document every time the user clicks the cmdExportandSend button. private ReportDocument hierarchicalGroupingReport; private string exportPath; private DiskFileDestinationOptions diskFileDestinationOptions; private ExportOptions exportOptions; protected void Page_Load(object sender, EventArgs e) { hierarchicalGroupingReport = new ReportDocument(); hierarchicalGroupingReport.Load(Server.MapPath("CrystalReport1.rpt")); hierarchicalGroupingReport.SetDatabaseLogon ("admin", "admin", "localhost", ""); CrystalReportViewer1.ReportSource = hierarchicalGroupingReport; } private void ExportSetup() { exportPath = "C:\\Exported\\"; if (!System.IO.Directory.Exists(exportPath)) { System.IO.Directory.CreateDirectory(exportPath); } diskFileDestinationOptions = new DiskFileDestinationOptions(); exportOptions = hierarchicalGroupingReport.ExportOptions; exportOptions.ExportDestinationType = ExportDestinationType.DiskFile; exportOptions.FormatOptions = null; } private void ExportCompletion() { try { hierarchicalGroupingReport.Export(); lblWarning.Text = "SUCCESS"; } catch (Exception ex) { lblWarning.Text = "FAILURE" + ex.Message; } lblWarning.Visible = true; } private void ConfigureExportToDoc() { exportOptions.ExportFormatType = ExportFormatType.WordForWindows; diskFileDestinationOptions.DiskFileName = exportPath + "Word.doc"; exportOptions.DestinationOptions = diskFileDestinationOptions; } protected void cmdExportandSend_Click(object sender, EventArgs e) { ExportSetup(); ConfigureExportToDoc(); //ExportSelection(); ExportCompletion(); } Best
Performing Calculation In Gridview itemtemplate   (328 Views)
I want to perform calculation in gridview :NetAmount=(ServiceAmount*Quantity)*Discount I had written code in rowdatabound but it is not working,i amnew to programming help me solve this proble i would appreciate if some one share ther knowledge my Axpx code is: function CalcSercode(ServiceAmount,Quantity, Discount,NetAmount) { var Quantity=parseFloat(document.getElementById(Quantity).value); var Discount= parseFloat(document.getElementById(Discount).value); var ServiceAmount=document.getElementById(ServiceAmount); var SerAmountValue = parseFloat((ServiceAmount * Quantity)-((ServiceAmount *Quantity)*Discount/100)); //var SellPriceValueRound = Math.round(SellPriceValue,4); var SerAmountValueRound = SerAmountValue; ServiceAmount.innerHTML= SerAmountValueRound ; } _____________________________________________________________ My cs code is; //TextBox TxtServiceCode = GridView1.Controls[0].Controls[0].FindControl("TxtServiceCode") as TextBox; //DataSet dss = new DataSet(); //SqlConnection MyConnection = new SqlConnection("server=prog; database=mydatabase;UID=sa;PWD=naco123;"); //SqlCommand sqlcmd = new SqlCommand("select * from [ServiceCode]", MyConnection); //SqlDataAdapter adp = new SqlDataAdapter(sqlcmd); //DataSet ds = new DataSet(); //adp.Fill(ds); //GridView1.DataSource = ds.Tables[0]; //GridView1.DataBind();
smstest namespace   (338 Views)
i need namespace of smstest
Data transfer   (207 Views)
I want to transfer a form data from one server to another in . Can you please help me.
Problem using Server.MapPath   (220 Views)
im trying to download a file ... when i use this code response.AddHeader("Content-Disposition", "attachment;filename=\"" + Server.MapPath(strURL) + "\""); byte[] data = req.DownloadData(Server.MapPath(strURL)); first it shows the error " The name 'Server' does not exist in the current context d:\proj\fledwnld\fledwnld\Form1.cs " then i do google search regarding this and got into use the above code like this, using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.Web; using System.Web.UI.WebControls; using System.Net; namespace fledwnld { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void button1_Click(object sender, EventArgs e) { try { MessageBox.Show("Downloading file"); string strURL = textBox1.Text; WebClient req = new WebClient(); HttpResponse response = HttpContext.Current.Response; response.Clear(); response.ClearContent(); response.ClearHeaders(); response.Buffer = true; response.AddHeader("Content-Disposition", "attachment;filename=\"" + System.Web.HttpContext.Current.Server.MapPath(strURL) + "\""); byte[] data = req.DownloadData(System.Web.HttpContext.Current.Server.MapPath(strURL)); response.BinaryWrite(data); response.End(); } catch (Exception ex) { Console.WriteLine(ex); } } } } Now im not getting errors, but i ve got no File Download dialog pop ups, it also doesnt show any exception.. what i am doing wrong This post has been edited by djlakshmi: 05 May 2010 - 02:37 AM
User Login and Roles   (293 Views)
I am just starting to work with Web Forms and am looking for a way to have user authentication only when a user choses to login, and to have user roles give them access to post, edit, delete, or a combination of those. I have the Wrox book - Beginning ASP.Net with VB.Net and it doesn't go into enough detail on this subject.If it is simple enough for someone to zip a project/solution file I would appreciate it...If not please recommend some good books/sources of information
birthday reminders   (251 Views)
hii ... plz tel me the code for birthday reminder in using   (164 Views)
pls give me some project titles
inserting an image in to sql server   (500 Views)
how to insert an image in to a database and retrieve the images from the databases   (218 Views)
How i Create Thumbnail when Uploading Video Files After Uploading video files Thumbnail Should Automatic created. just like functionality. Please Help me it's critical for me. If Anbody Find the Problem then Send me mail at This post has been edited by sattu_it: 01 December 2006 - 12:21 AM
Active Directory password reset in   (337 Views)
I have a web page through this page when I try to add a new user then users created successfully but when try resetting their password then I am getting errors add New user successfully public static void AddUser(ADUser adUser) { // Local variables DirectoryEntry oDE = null; DirectoryEntry oDENewUser = null; DirectoryEntries oDEs = null; try { oDE = GetDirectoryEntry(GetADPath(PROD, adUser.UserType)); // 1. Create user account oDEs = oDE.Children; oDENewUser = oDEs.Add("CN=" + adUser.UserName, "user"); // 2. Set properties SetProperty(oDENewUser, "givenName", adUser.FirstName); SetProperty(oDENewUser, "sn", adUser.LastName); SetProperty(oDENewUser, "mail", adUser.Email); SetProperty(oDENewUser, "sAMAccountName", adUser.UserName); oDENewUser.CommitChanges(); /// 4. Enable account EnableAccount(oDENewUser); // 3. Set password //SetPassword(oDENewUser, adUser.Password); SetPassword1(oDENewUser.Path, adUser.Password); oDENewUser.CommitChanges(); oDENewUser.Close(); oDE.Close(); } catch (Exception ex) { throw ex; } } I have try the following 2 SetPassword methods but getting error. Method 1. internal static void SetPassword1(string path, string userPassword) { //Local variables DirectoryEntry usr = null; try { usr = new DirectoryEntry(); usr.Path = path; usr.AuthenticationType = AuthenticationTypes.Secure; object ret = usr.Invoke("SetPassword", userPassword); usr.CommitChanges(); usr.Close(); } catch (Exception ex) { throw ex; } } The exception raised (Error Code 80072035: The server is unwilling to process the request) Method 2. internal static void SetPassword(DirectoryEntry de, string userPassword) { //Local variables //DirectoryEntry usr = null; string quotePwd; byte[] pwdBin; try { quotePwd = String.Format(@"""{0}""", userPassword); pwdBin = System.Text.Encoding.Unicode.GetBytes(quotePwd); de.Properties["unicodePwd"].Value = pwdBin; de.CommitChanges(); //usr.Close(); } catch (Exception ex) { throw ex; } } The exception raised ("Exception has been thrown by the target of an invocation.") Is there an easy way to tell if there is a problem with changing a password Please reply me as soon as possible.
Changing skin in WIX   (324 Views)
Hii I am using WIX tool for developing installer. I want to change the look of the installer. Currently am able to display company logo on top only. But now we want to display it vertically on left. So, if anyone has tried or have some idea, can anyone guide me as how can I proceed further.
Ajax unique username   (470 Views)
I'm guessing this has been covered 1000 times in tutorials but I can't find one anywhere. I'm just starting to learn AJAX and was curious if anyone knew of a good tutorial that would help me out with making sure a username is unique during registration.
Edit Selected TreeviewNode dynamically   (456 Views)
How to edit selected TreeViewNode dynamically and update in database simultaneously Plz send reply Asap to this mailid This post has been edited by haasanshaik: 18 April 2009 - 12:43 AM
reading database   (291 Views)
hi i cannot get a system where ( will read a msaccess database heres my code: On Error Resume Next Dim li = DataList1.Items Dim key As String If My.Request.Cookies.GetKey("user") = Nothing Then My.Response.Cookies("user").Value = "" My.Response.Cookies("pwsd").Value = "" End If Label2.Text = "guest" LinkButton1.Enabled = False HyperLink3.Enabled = False For Each key In li Label1.Text = key If My.Request.Cookies("user").Value = key Then If My.Request.Cookies("pwsd").Value = "me" Then Label2.Text = "rikki" LinkButton1.Enabled = True HyperLink3.Enabled = True Dim user As HttpCookie = New HttpCookie("user") user.Value = key user.Expires.AddDays(2) Response.Cookies.Set(user) Dim pwsd As HttpCookie = New HttpCookie("pwsd") pwsd.Value = "me" pwsd.Expires.AddDays(2) Response.Cookies.Set(pwsd) End If Else End If Next key doesn't equal anything so what it does it hunt through a database finds a user than checks if that user exists later it will check the password as well with that user.
Forward to new page if INSERT successful   (458 Views)
Hi , I am sure this is dead easy, but i cant find anything on this at the moment. I currently have a datasource and a detailsview. I have a INSERT SQL query that puts data into the database. This all works. What i want to know, is how to make this page forward to a different page if it works, and display a message if it fails. I haven't posted any code, as there isn't any problems (at current with it). Any advice would be gratefully recieved. Many
ASP Classic to ASP.Net   (451 Views)
I am converting an app. There is a lot of inline code in the Classic version. Tables that are filled in the Classic code I can replace with grids. That's OK.What I am mulling over is what to do with conditional code. For example: 10 then%>
web form to find user's WIN account   (288 Views)
Is there any way to find a user's WIN account via some .aspx code-behind user's using our application will have to log-in with their WIN account in the morning when the get on their machines, and if we can grab this, we can do a database check for priviledges
More Datagrid woes :(   (370 Views)
Hi ,I'm sure this is something really simple but I am about to pull my hair out over this.ASP.NET - VB as LanguageI have a DataGrid added to a form at design time.At runtime I want to retrieve some data from a database and then add a few columns with either textboxes or drop down boxes. This is no problem and I am currently using the code below to do this.However what I want to do is get the values from those controls when a button is pressed at the bottom of the form. I don't seem able to reference the controls at all and when the form is posted back, on the button press, the controls disappear.Any point in the right direction would be greatly appreciated
findcontrol   (255 Views)
I want to switch font colours depending on a value - this code works great when the form loads but errors on the lbl.ForeColor = Drawing.Color.Redwhen I try to update - it doesn't seem to find the labelProtected Sub GridView3_RowCreated(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewRowEventArgs) Handles GridView3.RowCreated If e.Row.RowType = DataControlRowType.DataRow Then Dim lbl As Label = CType(e.Row.FindControl("Label1"), Label) If DataBinder.Eval(e.Row.DataItem, "Over_Under") < 0D Then lbl.ForeColor = Drawing.Color.Red Else lbl.ForeColor = Drawing.Color.Blue End If End If End Sub
Windows authentication with IIS   (324 Views)
I want to use windows authentication with IIS to give the user a popup where in he will enter the domain\userid and password. The user should be authenticated against the userid in the specified domain. I dont know how the popup box comes. I have tried a lot of things like removing anonymous access from IIS and also removed Digest and Basic authentication to make it a integrated windows authentication. Then i played a lot with web.config but the popup doesnt come. If anyone has used it then please let me know
Problem with frame navigation in ASP.Net   (215 Views)
I'm working on a project that mimics a tabbed dialog. I started by trying to use the Microsoft.Web.UI.WebControls TabStrip but had with horrendous results - so I'm resorting to frames.The form I'm trying to mimic is laid out like this:[ Tab1 ][ Tab2 ]{miscellaneous controls}[ Tab1a ][ Tab1b ][ Tab1c ][ Tab1d ]{additional controls within tabbed pages}{submit & reset buttons}The easiest way to explain it is the top two tabs are for creating invoices and receipts with invoices the default selected tab. The misc. controls would change when you switch from tab1 to tab2. The next row of tabs gives access to either invoice details, taxes, totals or receipt details, taxes and totals (depending upon whether invoices or receipts are selected). Finally, although similar, the submit & reset buttons differ for invoices & receipts.My plan was as follows:-Create three frames (header, details and footer)-header frame would contain top tabs, header controls and bottom tabs (there's actually 5 tabs for invoice details and 6 for receipt details).-by default the details frame would contain items but (when you click on a lower tab in the header frame) a new page would load in place of it (taxes, totals...)-footer frame would contain buttons that correspond to the header frame. If header contains invoices then footer contains invoice buttons.The first problem is (I think) fairly trivial but I can't seem to get past it. I thought it would be similar to changing images on a mouseover/mouseout event but...Assuming that Tab1a is in the foreground, when I click on Tab1c it should move to the foreground, Tab1a should move to the background and controls for Tab1c should appear below it. This requires replacing the images of Tab1a & Tab1c and loading a new page into the detail frame. I thought I had code to do the last bit (loading the new page) but it appears to be intermittent. And, I can't seem to change the images.I've laid out all the individual pages (two headers, two footers and eleven detail pages). I'm running into problems in two areas: 1. Getting the correct page to load in the correct frame.2. Communicating data between frames.Specifically, when you click the Receipt tab, I'm executing javascript that (I think) should load the receipt header into the header frame, receipt footer into the footer frame and receipt items into the detail frame. It does the two latter but doesn't the former: The javascript looks like this:function SwitchToReceipts(){ parent.frames("header").document.location = "RcptHeader.aspx"; parent.frames("detail").document.location = "RcptDetail.aspx"; parent.frames("footer").document.location = "RcptFooter.aspx";}Any idea why the second and third lines will load the correct page in the correct frame but the first won't
Ohhh so close...ImageButton   (203 Views)
Have a datagrid with paging, i have a template column with two imagebuttons that do what i want(print icon, and email icon). I want the email image to only show when the row is selected... i have that no prob, but hide the image that is visible on any other rows when selection changed..This works, but hides only 1 row(hence items(0)), how can i say every single row, find the email button and hide it (the button is hid by default)CODE Sub MasterGrid_Select(Sender As Object, E As EventArgs) MasterGrid.Items(0).FindControl("emailIBtn").Visible = False MasterGrid.Items(MasterGrid.SelectedIndex).FindControl("emailIBtn").Visible = True BindDetailGrid() End Sub
Which Control caused PostBack?   (250 Views)
I have a dropdown list and button that cause postback, each with events that are getting fired correctly after Page_Load. How can I determine which control caused the postback in OnInit()
Disable cookie in all controls, text box, dropdown list...   (441 Views)
How to disable cookie in all controls, text box, dropdown list...
Javascript functions stop working   (402 Views)
Hi ,I need desperate help!!! I have an ASP.NET application that depends heavily on scripting. I was getting ready to put the website online (in a couple of days) when suddenly all the javascript that I have on the site stopped working. I'm running Windows 2000 Server, and the last thing I did was I went to Windows Update and downloaded over 25 updates for my machine, 18 of them critical. Other than that, I have done absolutely nothing so I'm suspecting that one of the updates messed me up. Does anybody know what may be happenin
Inline Code problem with user control property   (321 Views)
Hi all,i have a problem, when i try to place a inline tag to pass a variable to a user control property.I have Dim Section As Integer = 2 as a global variable, and then i have:Now i am not sure, but i thought i could use the inline tags in .Net, but i am not 100% sure of the syntax, can anyone help me to find out what i am doing wrong Please Help
Advanced use of DataGrid...   (307 Views)
Hi ,I need to display a DataGrid that serves as a cross tab. The columns will be all coming from just one field/column of a database table (not from different columns as it's usually done). This field will have different values and each different value will make up a column in the datagrid. The values in the database field will serve as the text for each datagrid column.The rows should be similar. They will be made up of just one column in a database table. The different values in the database column will be the row headings in the datagrid. This will be just the heading of the rows. The values in the rows that correspond to all the columns of the datagrid will not be values but checkboxes that the user will be able to click. OK, I'll say it again so that you could understand what I'm saying: I need a datagrid with column headings and row headings only. Everything else in the datagrid should be checkboxes. Each check box will be a match of a row and a column heading (i.e. a Cross Tab). The user should be able to check/uncheck the checkboxes and based on what he checks/unchecks, I will take a appropriate action. Now, I don't quite know how to implement this. Can anybody please point me in the right direction I don't know if the DataGrid control is the best choice for what I need, so if anyone would give me other ideas, I would really appreciate it.
Development server set up   (257 Views)
HiWe are currently getting together a set up for a ASP.NET development server. This server will in effect be running IIS and hence will enable us to run our applications away from the client machines, which will not have IIS installed on them.As far as I know, we need to install IIS and MS .NET Framework on the server to run applications. There will also be SQL Server running. Is DAO also needed to access the databaseIs there anything else that is neededWe do not want to install Visual Studio .NET on the machine
Graphing with   (254 Views)
Can someone help me with turning a string of numbers like y=mx+b(Remember algebra!) into a graph. im really looking to turn much more complex numbers into graphs. If im correct the graphs should come out in in a jpg/gif image format
custom validator   (346 Views)
I have a Custom validator that has ControlToValidate set to a textbox that also has a Required and RegularExpression validator.When I run the webpage on my machine the custom validator OnServerValidate procedure is only called if both the Required and RegularExpression validators are successfully met.However, when I upload the page to my live website, if I enter an invalid value in the textbox (i.e. one that doesn't meet the RegularExpression validator, the Custom validator procedure gets called regardless.I'm really seriously in need of help with this as I can't figure out why this is happening! Can anybody hel
aspnet_wp.exe hangs on certain apps   (366 Views)
I have an issue with a .NET web project that I cannot figure out. I have one web app that I run and from time to time, I will get the yellow error page stating Configuration Error , (I get this error immediately on access the web page) this is already have the project has been built and has been running fine for a while. Once this happens, I notice in my Event Viewer, under Application Log there is an error entry ASP.NET 1.0.3705.288, if you open it up it says aspnet_wp.exe (PID: XXXX) stopped unexpectedly. The weird thing is all my other .NET apps still work fine. This app I'm having problems with is the only app with an Oracle backend DB, the rest use SQL server. I also notice in my bin folder of my web project the file oip8.tlb is in a locked state, you can't delete or rename it because it comes back with a sharing violation. The only way around this mess is to kill the aspnet_wp.exe process which will (most of the time) recycle itselft, the other option it to restart IIS. This kinda annoying since it's only one app not working but you have to restart everything to get it working again. Any ideas what in the world is going on !! I hope the above info is useful.
Data Grid with Excel Capabilities   (378 Views)
,I am looking for an control to perform the following taskswrap text when too long for the current cellauto size cell to wrapped contentsdisplay a popup comment similar to what is found in excelcomments are user editableallow all comments to display when loading the controlmerge cells rows/columnsinsert image into cell, allow user to paste image into cellcapable of asynchronous callsHave tested several controls and most of these features are available. However, I routinely get stuck on displaying comments in the intended manner.
ASP.NET Database/speed issue   (302 Views)
The front page of the site I'm creating contains a drop down list; the code-behind uses a SQL query to populate the list with almost 10,000 choices. This initial population takes almost forever to complete.I've seen mention of services and, (although I know nothing about them yet), wonder if it might not be beneficial to set that list up as a service.I'm not certain, though, because the pages that front page redirects the visitor to also take what I consider to be an inordinately long time to load - leading me to wonder how much of the speed problem is due to the limited-capacity server we're using.Any advice would be greatly appreciated.You should be able to get a look at the problem at
Date difference   (315 Views)
I am trying to calculate the number of interations between two dates and including a date interval.For eg;StartDate = 1/1/8EndDate = 10/1/8DateInterval 3The idea to calculate the iterations is to create a percentage complete variable whilst looping.Is there a function in C# which does this..
Dynamic js file at runtime   (350 Views)
Hi all,At the bottom is the head section of my aspx page. I want to set the src prop of the script at run time. src="Scripts/iphonenavIE.js"orsrc="Scripts/iphonenavSafari.js"If I add an ID and RUNAT props I get tons of unrelated errors on build and intellisense doesn't recognize the object. I'm using Web Application and cannot access the designer pages. :( Can anyone tell me what I'm missing here I've tried CODEIF .... ThenClientScript.RegisterClientScriptBlock(Me.GetType(), "Navigation", "")ElseClientScript.RegisterClientScriptBlock(Me.GetType(), "Navigation", "")End IfBTW it works with links.... but not scripts! :(CODECODE BEHINDCODElinkStyle.Attributes.Add("href", clsUtility.xReturnStyle())CODEiPhone Navigation@import "Style/iPhoneNav/iphonenav.css";
Need to View / Edit a DLL   (389 Views)
I was given an ASP.NET application that connects to a SQL Server Database.The Database was backed up off the old server and we installed it on our servers just fine.The ASP.NET application attempts to make a database connection but that function is in a DLL file and it seems to be hardcoded to the old SQL Server machine (I'm guessing the IP Address is hardcoded).I need to look into the DLL that is being called in the ASP code when making the connection. To edit it so it connects to my new SQL Server instance, or at least view the contents so I can accurately recreate the funtionality in a new DLL file.Are there any tools that can help with thi
Evaluating and comparing with the DataBinder.Eval statement   (316 Views)
Why can't I do something like this, or I should say "How" can I accomplish this kind of comparision withing a databound list controlCODE Some Text Is Written! Shawn MolloySeattle, WA
Unable to print report from the server   (313 Views)
I have an app built in asp 2.0. It allows data entery and when the data is saved to a database, it prints a crystal report. This all works fine when I run it local on my machine. But when I publish it to the server, it bombs. Here is my code and the error message.CODE'**************** this is the code that actually prints the report Dim myReportDocument As New ReportDocument myReportDocument.Load(Server.MapPath(strReport)) myReportDocument.RecordSelectionFormula = "{command.RECORDID} = " & Session("ReportID") myReportDocument.PrintToPrinter(1, True, 1, 99)Error Message:Error in File C:\WINDOWS\TEMP\CaseLogDoc {39507207-A58B-48F3-ABEA-8FE633E626D3}.rpt:Unable to connect: incorrect log on parameters. ProDev, MS Access ApplicationsVisit me at ==> http://www.prodev.usMay God bless you beyond your imagination!!!
DSN Database connection   (334 Views)
, hope you can help me, I am in the process of updating our company's web pages from asp to, and have run into a problem accessing database.I am trying to make the most of's features including the tag, but i need to have a data source tag. I managed to connect to the database normally like so: Dim objConn = Server.CreateObject("ADODB.Connection") Dim rstSource = Server.CreateObject("ADODB.Recordset") Dim strSQL, myStr objConn.Open ("DSN=myDSNConnection") strSQL = "SELECT * FROM myTable ORDER BY fieldOne;" rstSource= objConn.Execute(strSQL) Do while not rstSource.eof myStr &= rstSource("Cyfenw").Value & "" rstSource.MoveNext loop myContent.text = myStrbut I don't know how to put this in a dtatSource tag - I've found loads of tutorials that show how to do it with normal connections to databases but not using the DSN.Any help will be appreciated.
ddl selected index change   (253 Views)
sI am makin a .net web application..on page.aspx i ve 2 ddl of states and cities.When i select option in ddlstate i get corresponding cities , but when i again select a state , i get cities corresponding to present as well as previous state that i selected earlier.How should i solve this (i ve used database table to access cities corresponding to states using arraylist)code behind for selected index changed---void ddlstate_selectedindexchanged(object sender,event args e){class1 c1=new class1(); //class1 contains method fillcity that has returns cities in arraylistarraylist al=new arraylist();al=null//initialising arraylistal=c2.fillcity(ddl.selecteditem.text);//fillcity has input parameter as state which has tp be selectedfor(int i=0;i
read xml doc   (296 Views)
,This is my first day in ASP and also WEB programming and i am looking into a requirement which is on my plate when someone is on vacation. There is a HTML page which returns data in XML format. Something like thishttp://BOX11/temp_view/temp_view.xmlSTART=&END=&COLUMN_LABELS=&QUERY=select+*+from+temp_view+fetch+first+2+rows+onlyResult:- - 2006-05-17 2006-05-17- 2 - 2006-05-17 2006-05-17- 3 - ------------------ i need to know is how to read this webpage and load this data into my local database. Need to do it in ASP since all the subsequent pages designed are in ASP.
ASP.NET   (205 Views)
Can anyone give me advice why the code below doesn't run I get the error -Compiler Error Message: BC30456: 'Submit' is not a member of 'ASP.feedback_aspx'.Sub Feedback(Sender As Object, E As EventArgs) Dim msg as New MailMessage() msg.To = txtTo.Text msg.From = txtFrom.Text msg.Subject = txtSubject.Text 'msg.BodyFormat = MailFormat.Html msg.BodyFormat = MailFormat.Text msg.Body = txtBody.Text SmtpMail.SmtpServer = "localhost" SmtpMail.Send(msg) msg = Nothing lblMsg.Text = "An Email has been sent to " & txtTo.TextEnd SubFeedbackTo:From:Subject:Body:
RGB Colors   (175 Views)
I am trying to change the color of a button to (230,230,207). Can someone tell me how to do this. I have looked on the net but haven't found anything.
RadioButtonList Wrap Format. Aligning text.   (273 Views)
I have an asp:radiobuttonlist that has several selections. My problem is when the sentence wraps, it goes beneath the button. Is there any way that I can align the text so it falls under the beginning of the first letter of the sentenceExample(the underscore is meant as a space):O This is my problem whenI wrap the text O This is what I am looking__for when I wrap it.
Web Matrix Visited   (245 Views)
Anyone ever look at Web Matrix as a beginning / get-your-feet wet / just starting out .NET developer product I am aware of the difference in programming that has to be done, if Visual Studion is installed at a later date and not being able to do so many of the VS features.I am wide open to all "competitors" so long as they include the word FREE and not free trial. We program in MS Access and the bosses cant seem to get there mental dependencies off it