|
Don't use words like urgent in your subject line. It is rude, and I'll just ignore your inquiry.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
You need to abstract HttpContext calls behind an interface and mock that interface while testing. BTW, before you ask next question, please read this[^]
|
|
|
|
|
|
Neeraj Saluja wrote: But trust me its really urgent
Trust me that it is no one else's problem but yours. This site doesn't revolve around people's urgency.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
Hai all,
i had one textbox in datalist which has value from database.
i need to not able to change the text which is in (datalist)textbox.
can some suggestion..pls
Thanks in advance...
Thanks
Subbu.
|
|
|
|
|
sorry but your question is not must understandable but wat i understand is :
You can set the textbox enable property to false. so no one can change the value
|
|
|
|
|
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
|
|
|
|