|
Make that TextBox Read only or show the text in Label instead of TextBox
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
Check My Blog
|
|
|
|
|
hai
i think that text box is in readonly mode or it will be diasbled pls check the properties of that textbox
|
|
|
|
|
i have to create college timetable and want to display like this
Time Slot | 08-10 | 11-01 | 02-04 |
----------------------------------------------------
Monday | prof1/phy | prof2/math | prof3/lang
----------------------------------------------------
Tuesday | prof4/com | prof .........................
can any1 help how should i design database and how to display timetable in asp.net like this ???
thanks in advance.
|
|
|
|
|
Use DataList control for showing the Data
Make a call to to database run the store procedure/Query
get result into DataSet bind this Data to DataList
Now to create ItemTemplate for DataList Take help from Google
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
Check My Blog
|
|
|
|
|
when i fetch data from sql it looks like this
monday | 08-10 | prof1/phy
---------------------------
monday | 10-10 | prof2/math
----------------------------
.
.
.
tuesday | 1-3 | prof ........
------------------------------------
1 > days name are repeating
2 > i want to show data in format i mention above
??
datalist will repeat all the fields
|
|
|
|
|
...so you need to manipulate your data to the form you want it in.
Not everything can be done by databinding from a database as easily as it can by writing a bit of code for yourself.
Bob
Ashfield Consultants Ltd
|
|
|
|
|
i have 35600 records in the database , How should i display the records , so that the screen may not turn white(due to complete CPU usage).
|
|
|
|
|
Use paging on the GridView. And set it to show the 10/20 records or so.
Hope this helps.
|
|
|
|
|
can i do the same in vb.net window applications
|
|
|
|
|
As far as I know you should be able to. There should be a Pageing property on the GridView. Just run through all the properties, it should be there somewhere.
|
|
|
|
|
i am trying to locate it, but it is lying nowhere.
my grid is ultragrid
|
|
|
|
|
Try this, http://www.codeproject.com/KB/database/DataGridPaging.aspx
Sorry im more on Web side. Hope it helps. Also try the BindingNavigator, it might help.
|
|
|
|
|
i moved my entire webpage inside a ajax enabled website .
took a masterpage included form ,placed a content place holder inside that form.Placed a script manager and Update panel inside that place holder.
Then i moved my already created form inside the Update panel
MY PROBLEM
Now the submit button is not working at all,not even causing postback
please help me
|
|
|
|
|
Could you post your code ?
Other things are working ?
For what purpose are you using Update Panel ?
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
Check My Blog
|
|
|
|
|
I am using a file upload control in asp.net2.0 to upload a file in the folder named images
(located in the root directory of my application).The code for submit button's click event is:
if (FileUpload1.HasFile)
{
string path = Server.MapPath("/images");
string name = FileUpload1.FileName;
FileUpload1.SaveAs(path + "/" + name); /////error is in this line
Label2.Text = "successfully uploaded";
}
else
Label2.Text = "No file selected";
when i am running my application,it is showing the following error
Access to the path 'C:\Inetpub\wwwroot\testproject\images\testfile.txt' is denied.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.UnauthorizedAccessException: Access to the path 'C:\Inetpub\wwwroot\testproject\images\tata.txt' is denied.
ASP.NET is not authorized to access the requested resource. Consider granting access rights to the resource to the ASP.NET request identity. ASP.NET has a base process identity (typically {MACHINE}\ASPNET on IIS 5 or Network Service on IIS 6) that is used if the application is not impersonating. If the application is impersonating via <identity impersonate="true"/>, the identity will be the anonymous user (typically IUSR_MACHINENAME) or the authenticated request user.
To grant ASP.NET access to a file, right-click the file in Explorer, choose "Properties" and select the Security tab. Click "Add" to add the appropriate user or group. Highlight the ASP.NET account, and check the boxes for the desired access.
What should i do?
|
|
|
|
|
You need to allow write access to that website in the IIS.
Go to start, control Panel, Admin tools, IIS, then right click on Website and go to properties.
There should be a tick/dropdown box somewhere there allowing write access or something like that.
|
|
|
|
|
hi
every one i am new in asp.net .plz tell me
i have one feed back form in this path;
C:\Documents and Settings\admin\My Documents\Visual Studio 2005\Projects
this folder have two pages which i want to access at other computer which is attach through lan to my computer .plz tell me how i can access this form to other computer .
thanks..
gaurav
|
|
|
|
|
hi gaurav
Let us suppose, Application name is MyApplication and page name is Home.aspx
When u run the application u will get some path like
http://localhost/MyApplication/Home.aspx
put your system name(ex:sys130) instead of localhost, then u can acces the application
in any system with in lan connection.
change like
http://sys130/MyApplication/Home.aspx
|
|
|
|
|
Hi all
I am working on web text editor. When i entered text in textbox(text editor),
can i divide 20 lines in to one paragraph.
My aim is to save the text as paragraphs in database, when i submit.
ex: like
id, par1, par2....par10
Thanks & Regards
satish
|
|
|
|
|
Hi,
I use a simple login control with 3 users.
It is working fine in file system.
After publish the project to my local web server, my login is not working.
I am getting errors with all my users.
The error is "Your login attempt was not successful. Please try again."
please help.
Sanjay Kunjam
------------------------------------------------------------------
"Computers are useless. They can only give answers" - Pablo Picasso
------------------------------------------------------------------
|
|
|
|
|
Please post some code and give us more detail.
Have you tested your web app on the web server before? do other areas of it work?
|
|
|
|
|
I haven't tested my page web server before.
Actually i have copied my project to my local web server i.e Localhost.
My project which is stored in my file directory is working fine, but after copying to web server its giving message of Login Failure.
I have used a simple asp.net login control
<asp:Login ID="Login1" runat="server"
DestinationPageUrl="~/Admin/epfo/Default.aspx" DisplayRememberMe="False">
Sanjay Kunjam
------------------------------------------------------------------
"Computers are useless. They can only give answers" - Pablo Picasso
------------------------------------------------------------------
|
|
|
|
|
Make sure in the webconfig file that you have the correct application name for the membership provider. In fact make sure this part of the web.config file is the same as the other
|
|
|
|
|
Hello
I put my application in the server
in the application the user can export some data to an excel file
my problem is that the excel file don't open on the client and it will just open the excel in the task manager in server
Please can someone help me
"""""
On Error GoTo errprocess
Dim objSheet As Microsoft.Office.Interop.Excel.Worksheet
Dim wb As Microsoft.Office.Interop.Excel.Workbook
wb = New Excel.Application().Workbooks.Add(path)
wb.Application.Visible = True
objSheet = wb.ActiveSheet
objSheet.Cells(11, 2) = "ttt"
objSheet.Cells(13, 2) = "ggg"
objSheet.Cells(14, 2) = "kkk"
objSheet.Cells(15, 2) = "eee"
objSheet.Cells(16, 2) = "rrr"
objSheet.Cells(14, 4) = "yyy"
objSheet.Cells(12, 4) = "bbb"
objSheet.Cells(17, 4) = "ccc"
''''''
objSheet.Columns.AutoFit()
Exit Sub
errprocess: '
Response.Write(Err.Description & " " & Err.Number & " " & Err.Source)
Response.End()
""""""
Thanks in advance
Assaf
|
|
|
|
|
I am doing an application in ASP .NET in which i am using a list box with multiple selection. I am using a sqldatasource to bind values to the list box. Everything works fine till this.
i want the page to send the selected multiple values in list box to be in two different text boxes
i tried this code and working, all the selected values comes to single text boxes. I want first selected value to be in textbox1 and second value to be in textbox2..
This is the code...
On Click event of a button
int i;
txt_uname1.Text = "selected" + " ";
for (i = 0; i < list_users.Items.Count - 1; i++)
{
if (list_users.Items[i].Selected)
{
txt_uname1.Text = txt_uname1.Text + list_users.Items[i].Text + " ";
}
}
Please help me fixing this...
Thanks in advance
SAJAN A PILLAI
ASP.NET,C#.NET Programmer
BANGALORE
"Winners don't do different things. They do things differently. ...
|
|
|
|