No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
29 Posted Topics
Hello guys, There's some issue with my UIPickerView controller. The data won't pop up in it. The 'Drum' by itself is visible but empty. My code is: - (void)viewDidLoad { [[self navigationController]setToolbarHidden:YES animated:YES]; [self setItemShow:theItem]; self.uiPickerViewData=[[[NSMutableArray alloc]initWithObjects:@"One",@"Two", nil]autorelease]; [super viewDidLoad]; } And method which will work when button is getting … | |
Hello! I've got trivial problem and have no time to re-read manuals. I need to construct a function in SQL2005 which selects from DB and returns datatable. Something like this: [CODE] create function GetAllStudents() returns Table as begin ( select StudentID,StudentName,StudentFamilyName,Birthday,HisClass from Students ) return DataTable [/CODE] I need it … | |
Hi guys, I am learning Objective-C and today at night I managed a simple program, an usual one from ordinary exercise. Code: [CODE] #import <Foundation/Foundation.h> int main (int argc, const char * argv[]) { NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init]; NSLog(@"Welcome to multiplication table test"); int rightAnswers; //the sum … | |
Re: There's no problem to make Masterpage or learn some basic and even advanced css tricks. If you want your site to be good-looking and don't have art taste like me, so rent some web designer or just buy a template. | |
Re: [QUOTE=manraj82;1536013]Hi guys, I am in the process of creating a login form in ASP.Net and I have not written any code for it yet bcos I dont know how to go about doing it.In the past I have created basic login forms in ASP.net by redirecting them to a page … | |
Hello again, I have a method: [CODE] public static void GetStudents(DropDownList list, Label lbl) { SqlConnection conn = new SqlConnection(Config.DbConnectionString); SqlCommand cmd = new SqlCommand("GetStudentsToDDL", conn); cmd.CommandType = CommandType.StoredProcedure; SqlDataReader reader; try { conn.Open(); reader = cmd.ExecuteReader(); while (reader.Read()) { ListItem item = new ListItem(); item.Text = reader["StudentName"].ToString() + " … | |
Hi again, I need an professional advise how to implement dropdownlist in very professional way. So, my code is: [CODE] <asp:DropDownList id="ddlStudents" runat="server" CssClass="textbox" OnSelectedIndexChanged="ddlStudents_SelectedIndexChanged" AutoPostBack="true" EnableViewState="true"> <asp:ListItem Value="0">Choose</asp:ListItem> </asp:DropDownList> [/CODE] The rest of data I get from SQL DB. Is it the right way to populate the default value … | |
Hello again, I have a problem with dropdownlist. DropDownList: [CODE] <asp:DropDownList id="ddlStudents" runat="server" CssClass="textbox" OnSelectedIndexChanged="ddlStudents_SelectedIndexChanged" AutoPostBack="True" EnableViewState="False"> <asp:ListItem Value="0">Choose</asp:ListItem> </asp:DropDownList> [/CODE] Method which fills the ddl with data from DB [CODE] protected void GetStudents() { SqlConnection conn = new SqlConnection(connection); SqlCommand cmd = new SqlCommand("GetFullStudentProfile", conn); cmd.CommandType = CommandType.StoredProcedure; cmd.CommandText … | |
Hello. I am doing an exercise and faced an problem my code is: [CODE] protected void ddlStudents_SelectedIndexChanged(object sender, EventArgs e) { SqlConnection conn = new SqlConnection(connection); SqlCommand comm = new SqlCommand("GetFullStudentProfile",conn); comm.CommandType = CommandType.StoredProcedure; comm.CommandText = "GetFullStudentProfile"; SqlDataReader reader; try { conn.Open(); reader = comm.ExecuteReader(); reader.Read(); StringBuilder sb = new … | |
Hello, My code is: [CODE] protected void Button1_Click(object sender, EventArgs e) { string EducatorName = tbEducatorName.ToString(); string Educatorfamilyname = tbEducatorFamilyname.ToString(); int Hisclass =Int32.Parse(ddlClasses.DataValueField.ToString()); SqlConnection conn = new SqlConnection(DBconn); SqlCommand cmd = new SqlCommand("AddNewEducator", conn); cmd.CommandType = CommandType.StoredProcedure; cmd.CommandText = "AddNewEducator"; cmd.Parameters.Add("@EducatorName", SqlDbType.VarChar).Value = EducatorName; cmd.Parameters.Add("@Educatorfamilyname", SqlDbType.VarChar).Value = Educatorfamilyname; cmd.Parameters.Add("@EducatorClass", SqlDbType.Int).Value … | |
Hello this is my CSS: [CODE] div#menu { width:680px; height:30px; position:absolute; top: 300px; left:300px; } #linkbar { list-style:none; margin:0; padding:0; } #linkbar a:hover { background-color:#CCCC00; color:Black; } #linkbar a:visited { background-color:#CC6600; color:White; } #linkbar a:visited:hover { background-color:#CCCC00; color:Black; } #linkbar a { behavior: url(/css/border-radius.htc); border-radius: 10px; display:block; float:right; margin:3px; background-color:#006600; … | |
hello, iam very new in jQuery. Need help asap please. on my asp.net page I want to use two jQuery functions. 1. Clears textBox when user clicks on it. 2. Clears all inputs when user clicks on btnCancel button. I made two functions [CODE] //clears value from onclicked input $(document).ready(function … | |
Hello! [CODE] private void btnRecord_Click(object sender, EventArgs e) { //try //{ Random num = new Random(2); XmlDocument xmlDoc = new XmlDocument(); XmlElement contact = xmlDoc.CreateElement("contact"); XmlElement name = xmlDoc.CreateElement("name"); XmlElement familyname = xmlDoc.CreateElement("familyname"); XmlElement momos = xmlDoc.CreateElement("momos"); XmlAttribute contactid = xmlDoc.CreateAttribute("id"); contactid.Value = num.ToString(); XmlText firtnametext = xmlDoc.CreateTextNode(tbName.Text); XmlText lastname … | |
Hello again, How can I count the message size from: [CODE] msg.Body = tbText.Text; [/CODE] ? I need to get KBs. | |
Hello. I am developing simple exercise formapp and I need to detect internet connection every 2 seconds. #1. I do check internet connection like this [CODE] public static bool Connection() { bool connection; try { System.Net.IPHostEntry objIPHE = System.Net.Dns.GetHostEntry("www.google.com"); connection = true; } catch { connection = false; } return … | |
Hello again I have 1 well working function and one working stored procedure which counts the quantity of rows in table. Now I've created special table which has only two rows 1. Id (int null)(!++) 2. Rows(int not null) In Rows I want to store the quantity of rows from … | |
Hi, I try to develop Forms App which will count my working hours, taxes, expenses etc... At moment Iam working on calendar. On the first form I have combobox which sends the name of month into the ReturnNumberOfDaysInCurrentMonth(). The Class returns the number of month for DateTime.DaysInMonth(int,int), which returns the … | |
Please someone can help me. I need a function which just returns the number of rows from known table. I tried it like: [CODE] CREATE FUNCTION getRows ( @id int ) RETURNS int AS BEGIN DECLARE @rownums int SELECT Count(*) FROM dbo.MainData where id=@id RETURN @rownums END [/CODE] But it … | |
Hello. Because my client's table has two rows getting int values as ids from other table to display the string values. Table 1 Table 2 Item: 12 12 = 'Cat' For displaying the values I have created view in DB [CODE] create view ClientsView as select cl.id,cl.Name,cl.Familyname,cl.Position,cl.Email,cl.OfficePhone,cl.Mobile,cl.Website,cl.Comment,cl.[Date],cont.country,cl.Street,cl.City,clgr.[Group] from Clients as … | |
Hello! How can I insert into DB date using DetailsView. I have variable: [CODE] DateTime now=DateTime.UtcNow; [/CODE] I need to send it's value into the database automatically when an user inserts new record in my DetailsView. The code: [CODE] <asp:DetailsView ID="DetailsView1" runat="server" AllowPaging="True" AutoGenerateRows="False" CellPadding="4" DataKeyNames="id" DataSourceID="SqlDataSource3" ForeColor="#333333" GridLines="None" Height="50px" … | |
Hi, I need some free picture viewer to plug him into my aspx page. It should have to navigation buttons << | >>. Can somebody advice me some? | |
Hello guys. My future site physically locating in: C:\inetpub\wwwroot directory, which is accessible as [url]http://localhost[/url]. IIS 7.0 knows this site as 127.0.0.2. This means, that I created new site in IIS and assigned physical location even the directory of my over-mentioned site. Looks like everything works fine. In SQL Server … | |
Hello. I am constructing feedback form - SMTP - ADO - Captcha OK. Everything works fine to me. Except one important thing. After smtp and sql injection and Reset(), user can hit back in browser and after that resend message. that's not good. How to make the data in form … | |
Hello guys! Well, my question must be simple and someone will fall in laugh while thinking what kind of morons are exist in the world. :-) Question #1: Ok, I have a HTML table stored in one of the columns in SQL-table (is this approach right, or should I store … | |
Re: [QUOTE=sangeeta_ratha;1113428]hi, Im using a repeater control bound to a database table. everything works fine. i need to display the total of a column from that database table in the footer template of my repeater control. but im clueless as to how it can b done. Any help would be appreciated. … | |
Hi, I am trying to make some "a la captcha" it must be simple, but not for me. my code is: [CODE] using System; using System.Configuration; using System.Data; using System.Linq; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.HtmlControls; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Xml.Linq; public partial class _Default : System.Web.UI.Page … | |
Hello again. Default.aspx [CODE] using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; public partial class contact : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { State.Enabled = false; ShowCaptchaNums(); } protected void Country_SelectedIndexChanged(object sender, EventArgs e) { if (Country.Text == "United States") { State.Enabled = … | |
Hello again I have two drop-down lists on my web application. #1. Country list #2. US states list By default #2 is disabled [CODE] protected void Page_Load(object sender, EventArgs e) { State.Enabled = false; } [/CODE] I need to enable it only if user will choose "United States". My trial … | |
Hello guys! I am developing simple desktop application that suppose to connect to SQL DB launched on remote server. Everything going fine, exept that when connecting to DB I get exeption "Login failed for user 'guest'." So, looks like i need to create some user with password and give him … |
The End.