|
|
Iam developing a web based payroll system using Visual Studio 2005 and
ASP.Net. I would like to have certain clarification on the following line.
I would like to pick employee name from a list which contain multiple
colums with employee name,employee id,department as coumn headers. For this
if I use combobox - it can contain only one column, if I use listview and if
the no of employees are high the selection will become too slow. Can you
suggest any control which will support multiple columns and multiple records
(rows) with an area to enter some text value (employe name) which is to be
serched with in the displayed list ?
I also would like to know about a control (feature ) which supports data
entry in a grid format (rows and columns - Excel like data entry). The grid should suport data entry directly in to a cell. The grid also should suport data binding. I should be able to customise the column/cell format into textbox,combobox, etc. Is there any such inbuilt control available with Visual Studio 2005 ans ASP.Net ? If not, is it advisible to build a user control by ourself or buying a provern third party control ? If third party control is advisable can you suggest a well known and widely used one ?
Rajeev
|
|
|
|
|
I would suggest a datagrid for both of these things - for the first one add a check box column and for the second you need the grid to be in edit mode always.
|
|
|
|
|
Hi all
Can any one please tell me Y iam getting Login failed for user 'QQQ\ASPNET' ERROR
But i given right user name and password
---------------------------------------
Dim pkg As New DTS.Package
pkg.LoadFromSQLServer("QQQ", "sa", "sa", _
DTSSQLServerStorageFlags.DTSSQLStgFlag_UseTrustedConnection, "DSS6", "{FD8467BD-0FED-4F78-8F7A-C58A7E061AF7}", _
"{F987D202-6553-42AC-9CFE-41DC46E5EB90}", "ExcelPack3", "")
pkg.Execute()
Label1.Text = "Package Executed"
---------------------------------------
Thank Q
|
|
|
|
|
You are running under the default aspnet account (anonymous access). This user does not (and probably should not) have permission to access your database.
|
|
|
|
|
Hi friends,
While adding the web service(ie., *.asmx) file into a new asp.net web project i am getting the following error. It is showing the error at the first letter "<@". Can you tell me how to resolve this.
The XML page cannot be displayed
Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.
--------------------------------------------------------------------------------
A name was started with an invalid character. Error processing resource 'http://localhost/MyWebProjects/WebSite1/Service.as...
<%@ WebService Language="C#" CodeBehind="~/App_Code/Service.cs" Class="WService.Service" %>
-^
VijayaRam
|
|
|
|
|
Open the .net command prompt and run the following commands:
1) aspnet_regiis.exe –i
2) aspnet_regiis.exe –e
and finally restart the IIS
Gautham
|
|
|
|
|
As you told,i have done, but no use, I think the error may be in asmx file. it is telling file cannot begin with % character. Do you know how to register the asmx file in the project.
Thanks in advance.
this is the error:
The document at the url http://localhost/MyWebProjects/WebSite1/Service.asmx was not recognized as a known document type.
The error message from each known type may help you fix the problem:
- Report from 'DISCO Document' is 'Name cannot begin with the '%' character, hexadecimal value 0x25. Line 1, position 2.'.
- Report from 'WSDL Document' is 'There is an error in XML document (1, 2).'.
- Name cannot begin with the '%' character, hexadecimal value 0x25. Line 1, position 2.
- Report from 'XML Schema' is 'Name cannot begin with the '%' character, hexadecimal value 0x25. Line 1, position 2.'.
VijayaRam
|
|
|
|
|
I read somewhere that it could be a problem with the machine.config.
I guess in machine.config you have a add verb tag, make sure this tag is not uncommented!! i will search for the solution too if it does not work.
Gautham
|
|
|
|
|
register .asmx extention in your IS
|
|
|
|
|
hi,
i have executed a query and got the resultant data into a DataSet. now i need to further filter this data based on a condition. i dont want to run a query again and create a seperate dataset for this task.
can you please tell how to run a query on this dataset itself?
thanks
|
|
|
|
|
I think the best way is filter tha data while loading the from database using StoredProcedure
Thanks and Regards
Sandeep
If you want something you never had,
do something you have never done!
|
|
|
|
|
dear friend, that will not help me. my actual task is to query a dataset based on results from a different dataset.
|
|
|
|
|
|
based the task?, if its is true then it want to display otherwise,it wont? its ur ques?,
Magesh
|
|
|
|
|
sir,
i made the page_load as public,then the results shown below.
public partial class Default2 : System.Web.UI.Page
{
public void Page_Load(object sender, EventArgs e)
{
TextBox t1 = new TextBox();
t1.ID = "TextBox1";
form1.Controls.Add(t1);
}
protected void Button1_Click(object sender, EventArgs e)
{
SqlConnection con = new SqlConnection("Server=localhost;uid='sa';pwd='sa';DataBase=master");
SqlCommand com=new SqlCommand("insert into table1 values('"+TextBox1.Text+"')",con);
SqlDataReader rr=com.ExecuteReader();
}
}
----------------------------
CS0103: The name 'TextBox1' does not exist in the current context
Line 24: {
Line 25: SqlConnection con = new SqlConnection("Server=localhost;uid='sa';pwd='sa';DataBase=master");
Line 26: SqlCommand com=new SqlCommand("insert into table1 values('"+TextBox1.Text+"')",con);//this line in Red Color(error portion)
Line 27: SqlDataReader rr=com.ExecuteReader();
Line 28:
|
|
|
|
|
the TextBox1 variable is private to the Page_Load function, you need to assign the object to a variable declared in the class and accessible to all functions.
|
|
|
|
|
How it should be Acheived?
Please tell.
|
|
|
|
|
Declare the TextBox as a class level control.e.g. just before Page_Load,
declare as:
private TextBox t1 = new TextBox();
It'll work fine then.....
Note: Right now u r declaring TextBox in Page_Load , once the control goes out of Page_Load, the TextBox1 context is gone. Hence this error is coming. If u declare it on class level , it'll be solved.
|
|
|
|
|
public partial class Default2 : System.Web.UI.Page
{
private TextBox TextBox1;
public void Page_Load(object sender, EventArgs e)
{
TextBox1 = new TextBox();
TextBox1.ID = "TextBox1";
form1.Controls.Add(TextBox1);
}
protected void Button1_Click(object sender, EventArgs e)
{
SqlConnection con = new SqlConnection("Server=localhost;uid='sa';pwd='sa';DataBase=master");
SqlCommand com=new SqlCommand("insert into table1 values('"+TextBox1.Text+"')",con);
SqlDataReader rr=com.ExecuteReader();
}
}
|
|
|
|
|
hi!
I am doing a website in visual studio 2005.in my asp.net page i have got a grid view which takes the data from the database dynamically. In my source code i have set the wrap property of AlternatingRowStyle,FooterStyle,RowStyle,EditRowSt yle,SelectedRowStyle,EmptyDataRowStyle to "false". this is because i dont want the data in my cells to go to the next line. when i run it in mozilla browser the grid view appears fine,there is no wrapping but when i run the same in internet explorer the cell data goes to the next line. what should i do for this.what other code should i write to prevent this wrapping in internet explorer browser.i am using c#
Kindly help. Thanking in advance!
|
|
|
|
|
This is a browser issue and can only be fixed (if indeed it can) with CSS styles.
|
|
|
|
|
HI FRIENDS
I HAVE WORKED IN J2EE (STRUTS).FOR EXAMPLE I AM CREATING A LOGIN PAGE IN J2EE I HAVE TO CREATE A CONTEXT DIRECTORY,THEN I HAVE TO CONFIGURE MY STRUTS.CONFIG FILE,SERVER.XML FILE IN CONF DIRECTORY OF TOMCAT.WHEN I SUBMIT MY FORM WITH ID AND PWD .THEN THE JSP PAGE WILL BE CALLED AND VALUES ARE TRANSFERED BY GET,SET PROPERTY IF I AM USUING JAVA BEANS.THEN AFTER MAPPING IN STRUTS.CONFIG FILE THE CORRESPONDING .CLASS FILE WILL BE CALLED AND IF MY LOGIN IS VERIFIED BY DATABASE THEN MY FORWARD PAGE WILL BE WELCOME.JSP ELSE I WILL BE FORWARRED OR INCLUDED BY LOGIN AGAIN PAGE OR INVALID USER.
IF I WILL DO THE SAME THING IN ASP TECHNOLOGY HOW CAN I DO IT.PLEASE GIVE ME A COMPLETE DESCRIPTION ABOUT THIS MECHANISM AS I HAVE DESCRIBED FOR J2EE.
BYE
LOOKING FORWARD TO RESPONSE..
|
|
|
|
|
Please refrain from using capitals, it hurts my eyes.
Have you looked at the built-in ASP.NET login controls? You'll also want to configure user access rights in web.config. And use JSF instead of struts.
|
|
|
|
|
Parameswar Mala wrote: HI FRIENDS
I HAVE WORKED IN J2EE (STRUTS).FOR EXAMPLE I AM CREATING A LOGIN PAGE IN J2EE I HAVE TO CREATE A CONTEXT DIRECTORY,THEN I HAVE TO CONFIGURE MY STRUTS.CONFIG FILE,SERVER.XML FILE IN CONF DIRECTORY OF TOMCAT.WHEN I SUBMIT MY FORM WITH ID AND PWD .THEN THE JSP PAGE WILL BE CALLED AND VALUES ARE TRANSFERED BY GET,SET PROPERTY IF I AM USUING JAVA BEANS.THEN AFTER MAPPING IN STRUTS.CONFIG FILE THE CORRESPONDING .CLASS FILE WILL BE CALLED AND IF MY LOGIN IS VERIFIED BY DATABASE THEN MY FORWARD PAGE WILL BE WELCOME.JSP ELSE I WILL BE FORWARRED OR INCLUDED BY LOGIN AGAIN PAGE OR INVALID USER.
IF I WILL DO THE SAME THING IN ASP TECHNOLOGY HOW CAN I DO IT.PLEASE GIVE ME A COMPLETE DESCRIPTION ABOUT THIS MECHANISM AS I HAVE DESCRIBED FOR J2EE.
BYE
LOOKING FORWARD TO RESPONSE..
Are you angry on somebody? All capitals means shouting and would most likely intimidate the readers.
|
|
|
|