13,936 Topics
![]() | |
[CODE]namespace WebApplication4 { public partial class _Default : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { } protected void btnAdd_Click(object sender, EventArgs e) { if (upImage.HasFile) { if (CheckFileType(upImage.FileName)) { string fielPath = " !/UploadImages/" + upImage.FileName; upImage.SaveAs(MapPath(filePath)); } } } bool CheckFileType(string fileName) { string ext = Path.GetExtension … | |
Hi all, The following link [url]http://www.codeproject.com/KB/webforms/disableListItems.aspx[/url] disables items 1 and 2 from the checkboxlist if the user selects checkbox item 3. Can someone PLEASE tell me how i could change the code in this link to work for ListBox. So if I had 5 items in the lisr box (below) … | |
How i store and retrieve office files(.ppt,.doc,.html,.xls) & pdf in sqlexpress 2005 using vs.net 2008. Please Send me the steps in details. [B]Please give the answer in vb.net code (except asp.net or c++, java etc)[/B] | |
If i have a website in ASP code and working very well but i want to convert ASP code to ASP.net(C#) then how it is possible to do this, which software can perform easily to do this. | |
Quite a few people have been asking how they can get their applications to talk to each other. More specifically, they have been wanting to know how to access information from another running application using .NET Remoting. Not having done this before, I decided to take up the challenge and … | |
I have been hunting all over the net for a custom richtextbox control for C# which would have the buttons and every functionality built-in. I found some but they were for ASP.NET not for Win32 applications. So, I decided to code my own. So far, mostly everything that I required … | |
hi i am trying to change the color of selected date i used the following code but it is not working [code] <asp:Calendar ID="Calendar1" runat="server" BackColor="White" BorderColor="Black" OnDayRender="Calendar1_DayRender" Width="300px" DayNameFormat="Shortest" Font-Names="Times New Roman" Font-Size="10pt" ForeColor="Black" Height="220px" NextPrevFormat="FullMonth" TitleFormat="Month"> <SelectorStyle BackColor="#CCCCCC" Font-Bold="True" Font-Names="Verdana" Font-Size="8pt" ForeColor="#333333" Width="1%" /> <TodayDayStyle BackColor="#CCCC99" /> <OtherMonthDayStyle … | |
hello, I have asp.net application.In that application i got SMS code for sending sms from my company.The code is in VB.net. I just want to call the sendsms() method which in Vb.net page.. How should i call dis method...??? | |
Hi guys I'm using asp membership for user authentication and it works perfect. I want to store username into cookies once the user logs in, i tried to implement cookies behind the login control so that when the user logs in the username can be stored into cookies. Once i … | |
hi friend i am using asp calendar control in that i want to change the color of date on click | |
I have the following pages, but on the verify page, it is saying these are not defined: [icode] content = "Name: " + result.FName + "<br>" + "E-mail: " + result.EmailOption + "<br>" + "Gender: " + result.GenderOption [/icode]<br> Here are the pages: addentry.aspx: [code=vb] <%@ Page Language="VB" ClassName="SenderClass" debug="true" … | |
I am currently working on my final year project and i researching into building an Information system with SQL as database and ASP.Net as an interface? I just want to know if VB6 has the capabilities of been used as a tool to develop an Information system, integrating SQL and … | |
I am currently running on a ASP.NET v2.5, and I am having a terrible time converting this ASP to .NET compatibility... Any assistance would be greatly appreciated!! [CODE]<% Dim scr, loc If Request.Querystring("Check") = "" Then scr = Request.ServerVariables("SCRIPT_NAME") loc = instrRev(scr,"/") scr = mid(scr, loc+1, len(scr) - loc) response.cookies("enabled").value="1" … | |
I was running on a ASP, we now converted our servers to run on ASP.NET v2.5, and I am having a terrible time converting this ASP to .NET compatibility... Any assistance would be greatly appreciated!! [CODE]<% Dim scr, loc If Request.Querystring("Check") = "" Then scr = Request.ServerVariables("SCRIPT_NAME") loc = instrRev(scr,"/") … | |
I want to add one row by default that contains textboxes & checkbox. How to add it. See pic As Attachmnet. | |
I have created an asp.net web project and deployed it in my pc with the virtual directory set to websetup1. How should i access my website? When i type my ip add in the browser, it will display my router configuration page instead. Should i include virtual directory in my … | |
Hi how can i write a program to compare data entered and data stored? when we click ok. they will detect whether information store is the same. Just an example login. but mine is asp.net i'm just using normal window application. previously i use this is to store my password. … | |
Hi, Is there any way of storing some variables, say username for a particular session in ASP.NET. E.g, If we let a user login in a page, then I want him to stay logged in for all the pages he traverses on the server. Currently, I am trying Server.Transfer and … | |
Ok so I have a web app that needs to a large file (up to 100mb) and then do some server side conversions. I have built a model that works locally, but now that I'm trying it on my vps its taking an insanely large amount of time and not … | |
i have develop a simple login form... using ASP.net 2.0 and vb then i have upload it into my localhost(IIS) when i tried to view the page , the page was displayed like what i want.. but when i tried to input in username textbox runtime error appeared ... please … | |
I have the following pages: UserForm.aspx: [code=vb] <!-- UserForm.aspx --> <%@ Page Language="VB" ClassName="SenderClass" %> <script runat="server"> ' Readonly property for name Public ReadOnly Property Name() As String Get Return USerName.Text End Get End Property 'Readonly Property for phone Public ReadOnly Property Phone() As String Get Return UserPhone.Text End Get … | |
SOURCE CODE [code] <asp:Repeater ID="Repeater1" runat="server"> <HeaderTemplate> <table border="1" width="100%"> <tr bgcolor=Gray> <th>ProductId</th> <th>ProductName</th> <th>Description</th> <th>Weight</th> <th>isInStock</th> </tr> </HeaderTemplate> <ItemTemplate> <tr> <td width ="10%" height ="50%"><%# DataBinder.Eval(Container.DataItem,"ProdID") %></td> <td width ="10%" height ="50%"><asp:HyperLink id="hlEdit" runat="server" NavigateUrl="Frmuser.aspx" Text='<%# DataBinder.Eval(Container.DataItem, "ProdName") %>'></asp:HyperLink></td> <td width ="10%" height ="50%" ><%# DataBinder.Eval(Container.DataItem,"Descr") %></td> <td width … | |
I have a simple loginview on a webpage. If a user is logged out they are prompted with a login control. If they do, I have a label in the LoggedInTemplate with no text value. I have programmatically set a text value through the ViewChanged Event. However, when I log … | |
I was wondering if anyone can help me with this. I want to have a form that the user fills out, then when they submit it, it displays the values on the page in a summary with two buttons: Submit and Cancel. The Submit button directs the user to the … | |
If I clicked a button... how can I get the values entered in these dynamic textboxes and then save them into the corresponding field in the database? [CODE] int i = 0; foreach (var f in selectFields) { TableRow tr = new TableRow(); TableCell td1 = new TableCell(); TextBox txt … | |
im using menu item as my navigation. and im using this to remove my menu. [CODE] Private Sub RemoveItemByValue(ByVal Value As String) For i As Integer = 0 To Menu1.Items.Count - 1 If Menu1.Items(i).Value = Value Then Menu1.Items.Remove(Menu1.Items(i)) End If Next End Sub[/CODE] but i can only remove the top … | |
Hello All: In asp.net there is a Multiview control which allows me to switch between panels programatically, so different sets of controls can selectively be displayed in the same area on screen. I understand there is no such control in winForms but is there a best practice or technique for … | |
Hi all, I just have curiosity about something that I read in a book " [B]Unlike using the DataGrid, where you are responsible for coding the sort routine, to enable column sorting in this grid, you just set the AllowSorting attribute to True. The control takes care of all the … | |
Hi Guys I am created a tree view in a usercontrol..and used it in master page. But when i access the pages inside the parent node.the treeview is coming back to normal form. but i want the parent node to be expanded until i am using pages from that section. … | |
Hello, I'm Roy an Applications Analyst at Trident Technical College in Charleston, SC. USA. I came here looking for solutions to problems I've encountered trying to get Crystal reports to load with my ASP.Net apps on our web server. I might find the answer here someday if I can navigate … | |
I am developing a payment system and I need to produce a receipt for the client one he/she has paid. Is it possible to generate a receipt (Report Like) Using information on the form/user controls on the form. I am using ASP.NET working in web developer environment. Is there a … | |
hello frends... well...i have got a prob here...im building a webuser Control and want to create a property for the same..i want to set multiple choices in the property box.i mean when ill use it on a .aspx form it should allow user to select to a value from multiple … | |
hello.. i just want to know how can i generate a new form using javascript which will be displayed just below one of my dropdownlist control. what i want to do is, i want a form to be generated just below a dropdownlist when i will click on a button.but … | |
Is there a way to have a hash table as a select list that, when the user selects an option, it populates a paragraph for that option in a label? I have the code that displays the selected item's value, but I don't know how to add a paragraph or … | |
WEB.CONFIG FIlE [code] <?xml version="1.0"?> <configuration> <appSettings/> <connectionStrings/> <system.web> <authentication mode ="Forms"> <forms loginUrl="FrmLogin.aspx" protection="All" > <credentials passwordFormat="Clear"> <user name="sonia" password="citm123"/> <user name="soni" password="citm123" /> <user name="muru" password="citm1234"/> </credentials> </forms> </authentication> <authorization> <allow users="sonia"/> <allow users ="soni"/> <deny users="muru"/> </authorization> <compilation debug="true"/> </system.web> </configuration> [/code] FRMLOGIN.aspx [code] protected void btnLogin_Click(object … | |
I have searched the world over for answers to my dilemma and have learned a lot, but not what I need to know. My programmer compiled our website and pushed it to the server and sent me the source code. I cannot get the source to compile. I have a … | |
Hi Guys Past few days i added an ASP membership database which uses the Visual studio controller's (Login, Creat user Wizerd, Password recovery), it was working fine until yesterday, now i cant log in with any user i've created, but i can create new user or recieve/recover password. I checked … | |
Hi Guys, I have a Silverlight Application, with lots of folders, files under the project. I realeased it on another machine, and I can open the site. My problem is, I am using built-in membership and role management, and I don't know how to use this local database on the … | |
Hi, I have a gridview that I use to display the results from 50 different SQL database queries. The gridview is populated and built dynamically (Auto-Generate fields) at runtime based on a query that the user selects. When the data is displayed it looks like this: A B C D … | |
[B]1) [/B]What I should answer person on interview on question “Can User Control be stored in library?” There are 3 types of controls: 1) User Control 2) Custom Control 3) Web parts you can reuse User control in the current project in which you have built it but you can't … | |
Hi to All, I am accessing text box value and error is operator '-' cannot be applied to operands of type System.web.UI.WebControls.TextBox and int | |
whenever i click an update button to update values in a single column of a gridview, all the columnss gets updated with the same values. eg. if a 1st column of a row with s.no. 1 is updated with values watch,50.,,,rest of the columns of the rows with s.no.2,3,4,5 etc. … | |
Hi to all, I am using custom validator for validate 10 digit mobile number starts with 9. I simply put custom validator in my form & I wrote "^9[0-9]{9}$" but if i put correct mobile number then only it gives me error message. can anybody tell me what is correct … | |
I have three textboxes a GridView with three columns Roll,name & marks, I want that when the user enter data in three textboxes & click on button,then the data added to GridvIew Columns. Foll code Add the Data to database. [code] using System.Data.SqlClient; public partial class _Default : System.Web.UI.Page { … | |
Hi all :) First of all, sorry for my bad english :) Actually I'm creating a little program that should replace Vista's welcome center (that one that shows the system info's, microsoft's related links, etc..). So far I've made the "header" part of the form (see attached image) and now … | |
I got a master page with a content place holder (called: placeForButtons). In one of my forms a panel (called: uxButtonsPanel) is added as one of its controls . Later when the program is running (after it compiled what it had successfully) I try to add a button( called: uxInteractionButton0) … | |
Can somebody give me the idea of Light WIndow in ASP.Net? When i click on butoon,form appears & the current form becomes Gray.How to do dat!Can somebody tell me! | |
After clicking the label “Click Here,” a drop-down list is popped up to allow user to select the shipping state, as shown in the picture on the next page i am confused as to how to get the click here box to work and for the states drop down menu … | |
If there's anybody out there who has been part of a project that has successfully built an enterprise N-Tiered (UIL/BLL/DAL) web application let me know. I work for a small IT firm and have worked on dozens of projects over several years now. Unfortunately these projects have been a hodgepodge … |
The End.