I have a DataGrid (see code at end of my question) with several
dropdownlist controls within TemplateColumns for Editing. For the
first 2 ddls in my grid, ddlMedType and ddlMedicationName, I would like
to populate ddlMedicationName based on the selecteditem of ddlMedType,
but I don't know how to reference this.
Thank you for saving me from confusion!!!!
Here is my DataGrid code:
NOTE: I've bolded the 2 controls that I need help with -- the rest you can really ignore!!
<asp:datagrid id="dgMeds" runat="server" OnEditCommand="dgMeds_EditRow" OnUpdateComm...Sending SMS using vb.net or C#.net using vb.net or c#.net
My requirement is
I hav one csv file with these fields id,mobilenum,messgae,status.intiallu staus is 0.
once i read the all fileds and take that mobile number.using tat mobile number i need to send sms .after sending sms i shuld change status as 1
How to send sms thru coding (please dont provide any links.if it is provide also please give working links becox i checked codeproject .i didnt get any nice link.
and also provide the how to update the status field im csv file
To send SMS, you need some third party SMS providers. if you consul...Text out of a formview control (label, textbox, dropdownlist) in vb.net
How would I get the text or selectedvalue out of a from view control into the subject of an email?
Here is my code
Dim message As New MailMessage
Dim server As New SmtpClient("mail.domain.com")
Dim fromAddress As New MailAddress("Program@domain.com")
message.Subject = (Label(frmNewQCI.FindControl("P1CategoryLabel").Text))
message.Body = "New QCI Created"
message.From = fromAddress
It is underlining Label and saying
'Label' is a type and cannot be used as an expression.
It's also underlining the rest an...windows forms in vb .net into web forms
we are creating a database driven website as part of our project. currently we have forms connecting to the database created in visual basic. these windows forms we need to convert into web forms which are asp .net compatible. can u give me an answer or show me a way.
because of the difference in nature between web and win applications you'll need to reimplement at least the UI part. If you have a multitiered application in which the busines logic and data access are in different parts/assemblies you can reuse them.
Grz, Kris.Read my blog. Handy Firefox plugins for web developers.Wor...VB .net Web Form will not get contents of Text Box
I have created a web form with text boxes that are bound to a DataSet/DataView. I have created button to navigate up and down the recordset. That all works fine.
I need to have the ability to edit/add text in any of the boxes and then when clicking "Save" button, it would build an UPDATE query to send to the database.
When the Save button is clicked, I have coded to DIM a string var (strSQL) to use to build the SQL command. For some reason, it will only get the text from a text box if the data was pulled the database. If I add/edit data, then the SQL command will ha...Load Text box of one web form with selected list item of list box of another web form
one help please
Problem is i have two web forms 1. ForiegnkeyTest.aspx 2. foroginkeytable.aspx
step 1 1 ForiegnkeyTest.aspx one web form
&...Implementing .Net Form into an APS.net web form, can this be done
I am new here, but have been searching for a while, and may not have the correct lingo to find what I am looking for.
I am tasked with implementing a .exe application that was writen vb6 then converted to .net into a new website my team is developing. The idea is to put each of the 3 different forms in this .exe application of 3 different .aspx pages. I have attempted multiple things to get this into the page and even started to just rewrite it as an ASP.net web form, but even then I can't reuse any of the code since the System.Web.UI.Page doesn't inherit the sa...Converting Web Site from Vb.Net 2003 to Vb.Net 2005
I have a web site in vb.net 2003 that I what to convert to vb.net 2005. I open my web site in the visual studio 2005 by Local IIS option. I follow the steps of the visual studio conversion wizard.In the conversion report I received the following warning
'Referencepath' settings have not been converted.
Can anyone tell what I have to do to make this warning disappear?
'Referencepath' is a property you can set with with VS2003 project file, sothat when ever you to do Add reference this path is serached for class libraries. We do not have that ...using a button (in vb.net) to launch a new page based on dropdownlist selection
I am creating a page for my students for my personal website. I teach piano, and I would like to set up a site where my students can see assignments/personal grades based on their login. Once they login, my site will launch and on the homepage, there is a dropdownlist of three items representing level of study: Beginner, Intermediate and Advanced.
If the student selects "Beginner" from the dropdownlist, they click the "submit" button and the "Beginner" page will launch listing items unique to them (the unique items are based on their individual log...Can a .NET web based intranet application call a windows based .NET application?
Is it possibly to have an asp.net 2.0 application call/invoke a windows desktop application written in .NET 2.0?
We have a .NET 1.0 windows desktop application that was written in C#. We also have a new .NET intranet web application written in asp.net 2.0. Is it possibly to have a button on the web application that when pressed will invoke the .NET 1.0 windows application? And then if someone closes the application, it will return control back to the ASP.NET 2.0 application?
Are you referring to running a WinForms application on the server or on the client PC? ...Both C# ASPX pages and VB.NET ASPX in single VB.NET Web Applcation Template
Is it possible to have both c# pages and VB pages in same Webapplication, what i chose is VB.NET Web application Template.
I don't see why you couldn't, but for the sake of consistency I don't know why you would want to do this. When you choose a C# or VB.NET application template(I'm assuming you're using VS or WebMatrix), it simply creates a .aspx file that includes a page directive that specifies the page language. If you created a C# template but want to use VB.Net instead, you need to go from:
<%@ Page Language="C#" ....
to...Getting the Selected Item of dropdownlist inside Web User Control on a Web Form
Ive got a dropdownlist control inside a web user control called Entity.ascx. This web user control is on a webform.aspx. In Entity.ascx class I created a SelectedEntity property that returns the selected item in the dropdownlist.
Inside webform.aspx when btnGo is pushed I set a string and pass it in the url. I am trying to get the entity they selected via the property (SelectedEntity) inside Entity.ascx. As the SelectedEntity property tries to return the selected item in the dropdownlist I get this error:
System.NullReferenceException: Object reference not set to an instance....Net 2.0 Web application using Vb.net is unable to create object of another dll writen in C# .net 2.0
I habe created one ASP.net web application using Vb.net which is adding reference of dlls written in C# and .net 2.0. But whenever trying to create object of referencing dll, it is throwing error :Object reference does not set to an object. But, locally it is working fine,. In the server i have deployed the .aspx files and dll files in the bin. There were already an web.config in the server which is of .net 1.1. But checked it is retrieving value for that web.config correctly.
Should i have to deply any other files and if not what can be the solution for this? Please help.
So...VB.NET new item behavior in VS.NET
When I create a new class in VS.NET, it gives me a template like this:
public class xxx
How can I make it the same behavior as I got in C#?
public class xxx
I can change the template in VS.NET, but can not figure out a way to specify a default namespace, and can not find a way to include the folder path in namespace.
CalvinLive by a Better Codehttp://www.raincoder.comEqual parts art and scienceEmail: email@example.com...