|
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. ...
|
|
|
|
|
What if user selects more than 3 items from the ListBox ?
Where are you going to show those items ?
Code modification for your logic (Not tested)
int i;
txt_uname1.Text = "selected" + " ";
bool isFirstSelected
for (i = 0; i < list_users.Items.Count - 1; i++)
{
if (list_users.Items[i].Selected)
{
if(!isFirstSelected)
{
//TextBox 1
txt_uname1.Text = list_users.Items[i].Text;
isFirstSelected=true;
}
else
{
//Text Box 2
txt_uname2.Text = list_users.Items[i].Text;
break;
}
}
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
|
|
|
|
|
Thanks for the reply....It works.
SAJAN A PILLAI
ASP.NET,C#.NET Programmer
BANGALORE
"Winners don't do different things. They do things differently. ...
|
|
|
|
|
For that instead of assigning values directly to textbox,first you store values to a string array.And after that you create other loop and assign values to your textboxes.
Hope this will help you
|
|
|
|
|
How to creating application
|
|
|
|
|
Get it
SSK.
Anyone who says sunshine brings happiness has never danced in the rain.
|
|
|
|
|
|
|
hi what for?
SSK.
Anyone who says sunshine brings happiness has never danced in the rain.
|
|
|
|
|
Hi,
I am create a masterpage and webform and I want to display the webform in one page like when we open the website link ,default page, all the contents display in one page,the user no need to scroll up and down.
How to do this using asp.net masterpage or webform?
Anyone can help?
Thanks.
Regards,
Katelva
|
|
|
|
|
put all the contents inside the content place holder and then u can see it.
SSK.
Anyone who says sunshine brings happiness has never danced in the rain.
|
|
|
|
|
Hi,
I have been design my stuff in the webform using masterpage,but when I test using the browser, the user need to scroll down the page to see all the content, I wan to make all the content which user can see in one page?
Regards,
Katelva
|
|
|
|