Session hold data table problem


Hi

I have datatable on a page which\ti put into a session and then use this datatable on subsequent pages.\tHowever 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
\tobjProvType = New ProviderTypes(ctrl)
\tobjProvType.load(ds.ProviderType)
\tobjProvTypTB = ds.ProviderType
\tSession("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:  385
View Complete with Replies

RELATED TOPICS OF ASP.NET PROGRAMMING LANGUAGE




Can an updatepanel solve the problem...?

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
VIEWS ON THIS POST

137

Posted on:

Sunday 25th November 2012
View Replies!

Panel GroupingText Font Color

I'm going crazy here searching how to change the groupingtext font color in the asp.net panel control. Please help.
VIEWS ON THIS POST

98

Posted on:

Sunday 25th November 2012
View Replies!

MSSCCPRJ.SCC Corrupted??

Hi Everybody,\tAs 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'
VIEWS ON THIS POST

149

Posted on:

Sunday 25th November 2012
View Replies!

Server.MapPath() error

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 explain
VIEWS ON THIS POST

100

Posted on:

Sunday 25th November 2012
View Replies!

Export single record to word document in Crystal Report VS2008

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
VIEWS ON THIS POST

133

Posted on:

Sunday 25th November 2012
View Replies!

Performing Calculation In Gridview itemtemplate

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();
VIEWS ON THIS POST

174

Posted on:

Sunday 25th November 2012
View Replies!

smstest namespace

i need namespace of smstest
VIEWS ON THIS POST

200

Posted on:

Sunday 25th November 2012
View Replies!

Data transfer

I want to transfer a form data from one server to another in asp.net . Can you please help me.
VIEWS ON THIS POST

76

Posted on:

Sunday 25th November 2012
View Replies!

Problem using Server.MapPath

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
VIEWS ON THIS POST

106

Posted on:

Monday 26th November 2012
View Replies!

User Login and Roles

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
VIEWS ON THIS POST

115

Posted on:

Monday 26th November 2012
View Replies!

birthday reminders

hii ... plz tel me the code for birthday reminder in asp.net using asp.net
VIEWS ON THIS POST

114

Posted on:

Monday 26th November 2012
View Replies!

asp.net

pls give me some project titles
VIEWS ON THIS POST

90

Posted on:

Monday 26th November 2012
View Replies!

inserting an image in to sql server

how to insert an image in to a database and retrieve the images from the databases
VIEWS ON THIS POST

230

Posted on:

Monday 26th November 2012
View Replies!

Asp.net

How i Create Thumbnail when Uploading Video Files After Uploading video files Thumbnail Should Automatic created. just like www.myspace.com functionality. Please Help me it's critical for me. If Anbody Find the Problem then Send me mail at sattu_it@yahoo.co.in This post has been edited by sattu_it: 01 December 2006 - 12:21 AM
VIEWS ON THIS POST

109

Posted on:

Monday 26th November 2012
View Replies!

Active Directory password reset in asp.net

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.
VIEWS ON THIS POST

98

Posted on:

Tuesday 27th November 2012
View Replies!

Changing skin in WIX

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.
VIEWS ON THIS POST

142

Posted on:

Tuesday 27th November 2012
View Replies!

Ajax unique username

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.
VIEWS ON THIS POST

230

Posted on:

Tuesday 27th November 2012
View Replies!

Edit Selected TreeviewNode dynamically

How to edit selected TreeViewNode dynamically and update in database simultaneously Plz send reply Asap to this mailid haasanshaik@gmail.com This post has been edited by haasanshaik: 18 April 2009 - 12:43 AM
VIEWS ON THIS POST

197

Posted on:

Tuesday 27th November 2012
View Replies!

reading database

hi i cannot get a system where asp.net (vb.net) 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.
VIEWS ON THIS POST

108

Posted on:

Tuesday 27th November 2012
View Replies!

Forward to new page if INSERT successful

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
VIEWS ON THIS POST

195

Posted on:

Tuesday 27th November 2012
View Replies!

ASP Classic to ASP.Net

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%>
VIEWS ON THIS POST

240

Posted on:

Tuesday 27th November 2012
View Replies!

web form to find user's WIN account

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
VIEWS ON THIS POST

123

Posted on:

Tuesday 27th November 2012
View Replies!

More Datagrid woes :(

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
VIEWS ON THIS POST

170

Posted on:

Tuesday 27th November 2012
View Replies!

findcontrol

I want to switch font colours depending on a value - this code works great when the form loads but errors on the\tlbl.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\t\t\t\tIf e.Row.RowType = DataControlRowType.DataRow Then\t\t\t\t\t\tDim lbl As Label = CType(e.Row.FindControl("Label1"), Label)\t\t\t\t\t\tIf DataBinder.Eval(e.Row.DataItem, "Over_Under") < 0D Then\t\t\t\t\t\t\t\tlbl.ForeColor = Drawing.Color.Red\t\t\t\t\t\tElse\t\t\t\t\t\t\t\tlbl.ForeColor = Drawing.Color.Blue\t\t\t\t\t\tEnd If\t\t\t\tEnd If\t\tEnd Sub
VIEWS ON THIS POST

116

Posted on:

Tuesday 27th November 2012
View Replies!

Windows authentication with IIS

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
VIEWS ON THIS POST

165

Posted on:

Tuesday 27th November 2012
View Replies!

Problem with frame navigation in ASP.Net

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(){\t\tparent.frames("header").document.location = "RcptHeader.aspx";\t\tparent.frames("detail").document.location = "RcptDetail.aspx";\t\tparent.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
VIEWS ON THIS POST

104

Posted on:

Tuesday 27th November 2012
View Replies!

Ohhh so close...ImageButton

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\t(the button is hid by default)CODE\t\tSub MasterGrid_Select(Sender As Object, E As EventArgs)\t\t\t\tMasterGrid.Items(0).FindControl("emailIBtn").Visible = False\t\t\t\tMasterGrid.Items(MasterGrid.SelectedIndex).FindControl("emailIBtn").Visible = True\t\t\t\tBindDetailGrid()\t\tEnd Sub
VIEWS ON THIS POST

84

Posted on:

Tuesday 27th November 2012
View Replies!

Which Control caused PostBack?

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()
VIEWS ON THIS POST

118

Posted on:

Tuesday 27th November 2012
View Replies!

Disable cookie in all controls, text box, dropdown list...

How to disable cookie in all controls, text box, dropdown list...
VIEWS ON THIS POST

177

Posted on:

Tuesday 27th November 2012
View Replies!

Javascript functions stop working

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 happening
VIEWS ON THIS POST

164

Posted on:

Tuesday 27th November 2012
View Replies!

Inline Code problem with user control property

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\tPlease Help
VIEWS ON THIS POST

153

Posted on:

Tuesday 27th November 2012
View Replies!

Advanced use of DataGrid...

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.
VIEWS ON THIS POST

126

Posted on:

Tuesday 27th November 2012
View Replies!

Development server set up

HiWe are currently getting together a set up for a ASP.NET development server.\tThis 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.\tThere will also be SQL Server running.\tIs DAO also needed to access the databaseIs there anything else that is neededWe do not want to install Visual Studio .NET on the machine
VIEWS ON THIS POST

120

Posted on:

Tuesday 27th November 2012
View Replies!

Graphing with asp.net

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
VIEWS ON THIS POST

101

Posted on:

Tuesday 27th November 2012
View Replies!

custom validator

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!\tCan anybody help
VIEWS ON THIS POST

160

Posted on:

Tuesday 27th November 2012
View Replies!

aspnet_wp.exe hangs on certain apps

I have an issue with a .NET web project that I cannot figure out.\tI 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.\tOnce 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\t(PID: XXXX) stopped unexpectedly.\tThe weird thing is all my other .NET apps still work fine.\tThis app I'm having problems with is the only app with an Oracle backend DB, the rest use SQL server.\tI 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.\tThe 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.\tThis kinda annoying since it's only one app not working but you have to restart everything to get it working again.\tAny ideas what in the world is going on\t!!\tI hope the above info is useful.
VIEWS ON THIS POST

196

Posted on:

Tuesday 27th November 2012
View Replies!

Data Grid with Excel Capabilities

,I am looking for an asp.net 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.
VIEWS ON THIS POST

164

Posted on:

Friday 28th December 2012
View Replies!

ASP.NET Database/speed issue

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.\tThis 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 http://staging.jeffersoncountyclerk.org/wdiv
VIEWS ON THIS POST

167

Posted on:

Friday 28th December 2012
View Replies!

Date difference

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..\t
VIEWS ON THIS POST

143

Posted on:

Friday 28th December 2012
View Replies!

Dynamic js file at runtime

Hi all,At the bottom is the head section of my aspx page.\tI want to set the src prop of the script at run time.\tsrc="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.\tI'm using Web Application and cannot access the designer pages. :( Can anyone tell me what I'm missing here\tI'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";
VIEWS ON THIS POST

162

Posted on:

Friday 28th December 2012
View Replies!

Need to View / Edit a DLL

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 this
VIEWS ON THIS POST

146

Posted on:

Friday 28th December 2012
View Replies!

Evaluating and comparing with the DataBinder.Eval statement

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 \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tSome Text Is Written! Shawn MolloySeattle, WA
VIEWS ON THIS POST

145

Posted on:

Tuesday 1st January 2013
View Replies!

Unable to print report from the server

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\t\t\t\tDim myReportDocument As New ReportDocument\t\t\t\tmyReportDocument.Load(Server.MapPath(strReport))\t\t\t\tmyReportDocument.RecordSelectionFormula = "{command.RECORDID} = " & Session("ReportID")\t\t\t\tmyReportDocument.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!!!
VIEWS ON THIS POST

133

Posted on:

Tuesday 1st January 2013
View Replies!

DSN Database connection

, hope you can help me, I am in the process of updating our company's web pages from asp to asp.net, and have run into a problem accessing database.I am trying to make the most of asp.net's features including the tag, but i need to have a data source tag. I managed to connect to the database normally like so:\t\tDim objConn = Server.CreateObject("ADODB.Connection")\t\tDim rstSource\t= Server.CreateObject("ADODB.Recordset")\t\tDim strSQL, myStr\t\tobjConn.Open ("DSN=myDSNConnection")\t\tstrSQL = "SELECT * FROM myTable ORDER BY fieldOne;"\t\trstSource= objConn.Execute(strSQL)\t\t\t\tDo while not rstSource.eof\t\t\t\tmyStr &= rstSource("Cyfenw").Value & ""\t\t\t\trstSource.MoveNext\t\tloop\t\tmyContent.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.
VIEWS ON THIS POST

161

Posted on:

Tuesday 1st January 2013
View Replies!

ddl selected index change

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\t(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\treturns 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
VIEWS ON THIS POST

133

Posted on:

Tuesday 1st January 2013
View Replies!

read xml doc

,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:- - \t2006-05-17 \t2006-05-17-00.00.00.000000 \t2 \t- \t2006-05-17 \t2006-05-17-00.00.00.000000 \t3 \t- ------------------ i need to know\tis how to read this webpage and load this data into my local database.\tNeed to do it in ASP since all the subsequent pages designed are in ASP.
VIEWS ON THIS POST

102

Posted on:

Tuesday 1st January 2013
View Replies!

ASP.NET

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)\t\tDim msg as New MailMessage()\t\tmsg.To = txtTo.Text\t\tmsg.From = txtFrom.Text\t\tmsg.Subject = txtSubject.Text\t\t'msg.BodyFormat = MailFormat.Html\t\tmsg.BodyFormat = MailFormat.Text\t\tmsg.Body = txtBody.Text\t\tSmtpMail.SmtpServer = "localhost"\t\tSmtpMail.Send(msg)\t\tmsg = Nothing\t\tlblMsg.Text = "An Email has been sent to " & txtTo.TextEnd SubFeedbackTo:From:Subject:Body:
VIEWS ON THIS POST

111

Posted on:

Tuesday 1st January 2013
View Replies!

RGB Colors

I am trying to change the color of a button to (230,230,207).\tCan someone tell me how to do this.\tI have looked on the net but haven't found anything.
VIEWS ON THIS POST

81

Posted on:

Tuesday 1st January 2013
View Replies!

RadioButtonList Wrap Format. Aligning text.

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.
VIEWS ON THIS POST

129

Posted on:

Tuesday 1st January 2013
View Replies!

Web Matrix Visited

Anyone ever look at Web Matrix as a beginning / get-your-feet wet / just starting out .NET developer product\tI 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.\tWe program in MS Access and the bosses cant seem to get there mental dependencies off it
VIEWS ON THIS POST

109

Posted on:

Tuesday 1st January 2013
View Replies!