13,153 Topics

Member Avatar for
Member Avatar for adobe71
Member Avatar for sniigg

Hi all, I am creating a checkbox dynamically on page load. [code] using (SqlConnection conn = new SqlConnection(ConfigurationManager.ConnectionStrings["SimplifyNew"].ToString())) { SqlCommand cmd = new SqlCommand("usp_selectModifiedResults", conn); cmd.CommandType = CommandType.StoredProcedure; conn.Open(); SqlDataReader reader1 = cmd.ExecuteReader(); while( reader1.Read()) { System.Web.UI.HtmlControls.HtmlGenericControl DivCheck = new System.Web.UI.HtmlControls.HtmlGenericControl("DIV"); DivCheck.Style.Add("float","left"); CheckBox cb = new CheckBox(); DivCheck.Controls.Add(cb); bradbandPanelTarget.Controls.Add(DivCheck); cb.ID …

Member Avatar for reach_yousuf
0
279
Member Avatar for nikitaxcavn

[B]Hi, I get the below error...plz tell me how to solve it...it comes when i upload my application n check in browser[/B] Server Error in '/' Application. Runtime Error Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the …

0
44
Member Avatar for MISJoe

I am working on a Web App, coded in VB.net Here is some code and I'll explain it, Hope I use the code tags properly [CODE]<asp:LoginView ID="LoginView1" runat="server"> <LoggedInTemplate> Only Logged in users can see this <asp:LinkButton ID="LinkButton1" runat="server"/> <!-- This is a Rich Text Editor --> <FTB:FreeTextBox id="FTB1" Width="600px" …

Member Avatar for reach_yousuf
0
99
Member Avatar for MARIJA_A

So my problem is : student([COLOR="red"]STUDENT_ID[/COLOR],name,surname) address([COLOR="red"]STUDENT_ID[/COLOR],city,number,state) additional_info([COLOR="red"]STUDENT_ID[/COLOR],what,why,when) [COLOR="Red"]IF STUDENT_ID IS IDENTITY , THEN THE PROBLEM IS EASILY SOLVED BY DECLARING A NEW VARIABLE WITH THE COMMAND SET SCOPE_IDENTITY , BUT IN MY CASE , ID_STUDENT IS FROM TYPE NVARCHAR, BECAUSE THE FORMAT OF THE ID SHOULD BE xxx/yyyy WHICH …

Member Avatar for reach_yousuf
0
94
Member Avatar for nikitaxcavn

Hi My web Application has some problem to connect it with localhost..it does not show any compilation error but it shows a blank web page..i checked IIS,its working perfectly...even windows apps is also working properly...cant find out the error and dnt knw how to solve it... pleaseee help me....

0
51
Member Avatar for twilitegxa

I have a checkboxlist and I need to know how I can send the values of all checked items to a text file. I already have other controls on the form sending their values to my text file, but I don't know how to get the values of the checked …

0
74
Member Avatar for PierlucSS

Thank you for reading, I am currently trying to pass through a project or whole sites containing many pages to determine wether they are xhtml-strict or not with a local xhtml-strict.dtd file. I cannot go through a webservice it would be too overkilling for server and host might even probably …

Member Avatar for PierlucSS
0
238
Member Avatar for amby

Hi, I have a javascript object which is converted from json to java script object. i want to display its values like after each key value pair, i want to insert new line. but i dont know exactly how to do that. below is my code, please take a look …

Member Avatar for amby
0
253
Member Avatar for waheedabro62

Hi Every One: I am creating some textbox and button dynamically and adding them to one panel (plane created statically) and placing this panel to update panel (update panel created statically)now what next i do how i define trigger please help me i am novoice in Asp.net Ajax plz help …

Member Avatar for vuyiswamb
0
53
Member Avatar for dnanetwork

how do avoid multiple login of users from different browser..? i mean first i logged in from IE next i logged in from Mozilla.. now if i'm once logged in .. i want to show user a message that u r already logged in i'm using membership framework.. any help..?

Member Avatar for vuyiswamb
0
98
Member Avatar for scorpio222

hi, i have designed a web service which would create 2 csv files on the system. I want to send the links to the location of the files as an url attachment over the aspx page. like : ([url]http://)[/url] myserver/download.aspx?file1=C:\temp\image1.png&file2=C:\temp\image2.png i kept http in brackets so that you can read …

0
55
Member Avatar for princymathur

hi i want to insert a textbox value into one column of a table. bt wht i m getting error as: Exception Details: System.Data.SqlClient.SqlException: Incorrect syntax near '{'. the code is [CODE]SqlCommand comm = new SqlCommand("insert into Sample {'email_id'} values("+ TextBox1.Text+")", conn);[/CODE] how should i do it if i dont …

Member Avatar for vuyiswamb
0
125
Member Avatar for AparnaBhise

i use this method to fill data grid [code] public void fill() public void fill() { SqlConnection con = new SqlConnection(connStr); con.Open(); SqlDataAdapter da = new SqlDataAdapter("Select * from Dept_Master", con); DataSet ds = new DataSet(); da.Fill(table); } public void BindDG() { GridView1.DataSource = table; GridView1.DataBind(); } public void Nrow() …

Member Avatar for dnanetwork
0
146
Member Avatar for neriahfred

I'm developing a mobile website using vb.net but having set my tools right as I read somewhere, I've having an object reference...null error from the sqladapter line. I'm trying to authenticate by checking the db for username and password and granting or denying access asthe case maybe, here's my code, …

-1
55
Member Avatar for sanbal

Hi, I am new to asp.net can any one of you please tell me how to do the below scenario. I am having a set of menus in my web site. In a menu I want to restrict a menuitem access ie the user with the admin access can view …

0
71
Member Avatar for tonymuilenburg

Hi, I'm trying to loop through multiple textboxes in a C++ form using visual studio.net 2008 to set the selection start for each. The code for a single textbox is easy: [CODE] textBox1->SelectionStart = 4; [/CODE] When I try to assign textBox1 to a Control variable, and assign selection start, …

Member Avatar for tonymuilenburg
0
177
Member Avatar for qasimidl

[code=text] CREATE FUNCTION dbo.GetDuration(@FromDt as datetime) returns varchar(255) as BEGIN DECLARE @YRS AS SMALLINT, @MNT AS SMALLINT, @DY AS SMALLINT, @Fvalue varchar(255) SET @YRS = DATEDIFF(YY, @FromDt,GETDATE()) SET @MNT = DATEDIFF(MM, @FromDt,GETDATE()) % 12 SET @DY = DATEDIFF(DD,GETDATE(), DATEADD(MM, (@YRS 12) + @MNT,@FromDt) ) SET @Fvalue = CAST(@YRS AS VARCHAR) …

Member Avatar for coryloriot
0
68
Member Avatar for ramindya

THIS IS A ASP.NET Web APPLICATION NOT WINDOWS FORMS Problem/ Question: To search a child node anywhere in the treeview. I need to type a Node name in the textbox and search the node name in the Treeview and highlight the node name on finding. I don’t how to do …

Member Avatar for nil
0
483
Member Avatar for john_beginner

hello all of u ! i m begging in c# and making one program in asp.net ! i have very simple query , [code=c#] public partial class _Default : System.Web.UI.Page { public String str; protected void Page_Load(object sender, EventArgs e) { } protected void Button1_Click(object sender, EventArgs e) { str …

Member Avatar for john_beginner
0
153
Member Avatar for vik85

Hi Guys I am working on asp.net and C# i had problem with enter key. I used the master page and i created the login module on the master page .i used to asp.net default Validator for validation.but when i go to the registration page and hit the enter the …

0
58
Member Avatar for toadzky

I have a ListBox using an ItemTemplate. Here is the XAML: [CODE] <ListBox Name="list_Sensors" ItemsSource="{Binding}" Grid.Column="0" IsSynchronizedWithCurrentItem="True"> <ListBox.ItemTemplate> <DataTemplate> <Grid> <Grid.ColumnDefinitions> <ColumnDefinition Width="Auto" /> <ColumnDefinition Width="Auto" /> </Grid.ColumnDefinitions> <GroupBox Header="Part Number/Description" Grid.Column="0" Margin="5" Width="200"> <StackPanel> <TextBlock Text="{Binding Path=PartNumber}" HorizontalAlignment="Center"/> <TextBlock TextWrapping="Wrap" FontSize="8" HorizontalAlignment="Center"> <TextBlock.Text> <MultiBinding StringFormat="{}{0} {1}"> <Binding Path="Manufacturer" /> …

Member Avatar for toadzky
0
405
Member Avatar for sumansaha1

Hi, i am using a flag in the database to detect if the user is logged in or not. But this flag is updated only if the user logs in or logs out.If the user closes the browser or somehow gets out of the site without logging out he has …

Member Avatar for Freon22
0
100
Member Avatar for sandeep210

[CODE]<?xml version="1.0" encoding="utf-8" ?> <hibernate-mapping xmlns="urn:nhibernate-mapping-2.2" namespace="Samples.Controllers" schema="I_USER" assembly="Samples" > <sql-query name="PROCEDURE1" callable="true"> <!--<return class="empdetails.cs" />--> <return-scalar column="iusrfname" type="String" /> <return-scalar column="iusrlname" type="String" /> <return-scalar column="iusrlinname" type="String" /> <return-scalar column="iusremailid" type="String" /> <return-scalar column="iusrmobileno" type="String" /> <return-scalar column="iusrrmrks" type="String" /> <!--<return-scalar column="iusrcreated" type="DateTime" />--> call PROCEDURE1(:pr_userid,:iusrfname,:iusrlname,:iusrlinname,:iusremailid,:iusrmobileno,:iusrrmrks)<!--,:iusrcreated)--> </sql-query> </hibernate-mapping>[/CODE]

0
114
Member Avatar for sniigg

Hi, I have a html document when i run in Internet explorer i am getting the desired output(j query working fine). But i copy pasted the same code in aspx page...the same code is not working properly...

Member Avatar for sniigg
0
220
Member Avatar for ashab27

hi, I have 5 images and i want to do that is should come one by one without click on anywhere and without refresh the page also. how can i do that in page load event in asp.net (C#) plz tell me....................

0
65
Member Avatar for rohitmanhas_12

I need to control timeout values for each user. Im having trouble to make it work. When the session timouts out I want to redirect the user to the login page...cud anyone help me with this..

Member Avatar for kvprajapati
0
65
Member Avatar for Anterko

Hello. I have a nested GridView inside of a DataList. I need to enable the paging control of the GridView, but I have no idea where to put the code for it to work. Also I would like to create a function which will do the following: when a user …

0
88
Member Avatar for Anterko

Hello. I have a nested GridView inside of a DataList. I need to enable the paging control of the GridView, but I have no idea where to put the code for it to work. Also I would like to create a function which will do the following: when a user …

0
84
Member Avatar for jitendra_25

I have used a javascript to display a countdown timer for 60 min. like in an online exam. It works fine but when i refresh the page on which timer is displayed then the timer value again resets to 60:00. So, if there is any solution to prevent this please …

0
55
Member Avatar for Ajith S Kulgod

Hi , I have created an windows setup project using Microsoft Visual Studio 2005 . I have included the uninstaller utility also . After Uninstalling the application from the uninstaller utility , the default location of the windows setup project is not deleting . Can you give a solution such …

0
60
Member Avatar for kanuri1

hi i wants to import gridview data into excel format.. here iam writing the code but here iam getting the error as "Control 'GridView1' of type 'GridView' must be placed inside a form tag with runat=server." here my code is given below please correct the code......... [CODE]Protected Sub Page_Load(ByVal sender …

0
43
Member Avatar for jellybeannn

Hi can anyone please help me, I've got a gridview populated from a database, when the download button is pressed this is exported to excel, what I would like to do is to hide the gridview, it must not show on the aspx page but the database must still export …

Member Avatar for kvprajapati
0
99
Member Avatar for bhavu4u

[QUOTE]I have a form with textbox. Besides this textbox i should have imagebutton / something which on clicking will open a popup window (lookup). This popup window will have UserId and Usernames (from db). So when the User selects one from this , the UserId should get selected in the …

Member Avatar for kvprajapati
0
487
Member Avatar for Batoul88

Having a bit of trouble here. I know that if you want to use a fileupload control inside an AJAX update panel then you need to create a trigger for the control that performs the uploading postback to the updatepanel, but the problem is, I have an update panel that …

Member Avatar for rohand
0
95
Member Avatar for virang_21

Hi I am using ASP.NET to upload files that is to be stored in MSSQL Server 2008 as varbinary(MAX). I have issues with opening scanned pdf files once users upload them. The issue is happening very randomly (say 20% of the files cannot be opened .). It seems something is …

0
73
Member Avatar for kwazy2010

Please i need some suggestions on how to develop a web based forum application...am not sure if to use ASP.net or php...

Member Avatar for SheldonC
0
165
Member Avatar for SDS20

Hi, im having a problem with a custom control in asp.net I've googled but I cant find any solution, maybe the people here can lend me a hand. Here's the code [CODE] public Table generateControls(GeoData geodata) { Table table = new Table(); Label StrAddress = new Label(); Label Localty = …

Member Avatar for SDS20
0
129
Member Avatar for firstimer

Hi all, I am new to C# and the visual studio express environment. I have a button on this web page, when it is clicked a method assigns a new random number to a variable but I want new clicks to add numbers to what was in the variable and …

Member Avatar for firstimer
0
136
Member Avatar for rico196

Hy, Let's say that I have class Node with some parameters Node[] child's, string id, string content ... This class is like a another storage for data from mssql database. And that web-application is running on IIS server and is written in ASP.NET C# Now when one user open that …

Member Avatar for Ramesh S
0
301
Member Avatar for jellybeannn

Hi on my localhost the website works fine, but when I transfer it onto the web I get this error, please someone help. [CODE] Server Error in '/' Application. Runtime Error Description: An application error occurred on the server. The current custom error settings for this application prevent the details …

Member Avatar for Ramesh S
0
337
Member Avatar for kunkka17

hi,, i have problem run the asp.net application through IIS. I have made virtual directory for the application folder. when i try to 'Browse' the virtual directory, then the Error show up. 'You are not authorized to view this page' 'You might not have permission to view this directory or …

0
90
Member Avatar for celinehgl

Hi guys, The codes below is running perfectly fine. But I have a problem - if there are no records found in the database, my dropdownlist will not display nothing. However, I want it to display something like "no records found" instead of havng it blank Can someone tell me …

Member Avatar for kvprajapati
0
172
Member Avatar for sanbal

Even I installed asp_regiis . I am using Visual Studio 2008 v3.5 I am facing an issue while building a web project. I have added the controls in the design window as [code]<td align="left" valign="top"> <asp:DropDownList ID="ddlCategory12" runat="server" CssClass="dropDownList" AutoPostBack="true" OnSelectedIndexChanged="ddlCategory12_SelectedIndexChanged"> </asp:DropDownList> <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" InitialValue="----Select----" CssClass="validator" ErrorMessage="Please Select Category" …

Member Avatar for sanbal
0
99
Member Avatar for kiranbvsn

I am having two dropdownlists that are interrelated, in which one is vertical ddl and the other department ddl in a grid view if we select the vertical ddl then corresponding departments have to appear in department ddl. I've written the code like this In footer of gridview i successful …

Member Avatar for Sals
0
103
Member Avatar for Dhammakirty

how can we acces properties (eg.employee id,name)defined within a dll to a windows form. someone can help me.......

Member Avatar for Sals
1
142
Member Avatar for adobe71

I want to generate non-repeated random number. I tried the following code but it generates repeated random number. [code] protected void Button1_Click(object sender, EventArgs e) { Random rnd = new Random(); int n = rnd.Next(1, 100); Label1.Text = n.ToString (); } [/code]

Member Avatar for Freon22
0
194
Member Avatar for ravin26

hi, I want to know how can i allow user to download an mp3 file on his click in asp.net vb.

Member Avatar for adobe71
0
101
Member Avatar for kaivalPrajapati

How to use for Adrottetor in my web site? pl z... all about discus and give any Essy example.

Member Avatar for adobe71
0
77
Member Avatar for jobojo

Good evening everyone and hope you all had a good weekend. I am working on a site which allows the user to search database records based on entering either a reference number of a person' last name and then clicking the submit button. This brings the user to a results …

Member Avatar for kvprajapati
0
238

The End.