|
Hello Friends,
I would like to upload asp.net page. i am getting error about opening connection with microsoft access.
First when i upload web.config file, it shows me error of that then i change web.config as per error suggestion.
then i am getting error about open connection.
Thanks in advance.
Adarsh
|
|
|
|
|
compad wrote: i am getting error about opening connection with microsoft access
How about telling the error description?
|
|
|
|
|
please check below page, enter any name and email click on subscribe
http://www.bhavkpgnati.org/newfeature/subscribe.aspx
|
|
|
|
|
How's about just posting the error - not in the habit of visiting odd sites...
|
|
|
|
|
error is as follow :
The Microsoft Jet database engine stopped the process because you and another user are attempting to change the same data at the same time.
|
|
|
|
|
I want to show data from grid to excel sheet
ihave used code
Response.Clear();
Response.AddHeader("content-disposition", "attachment;filename=FileName.xls");
Response.Charset = "";
Response.ContentType = "application/vnd.xls";
System.IO.StringWriter stringWrite = new System.IO.StringWriter();
System.Web.UI.HtmlTextWriter htmlWrite = new HtmlTextWriter(stringWrite);
GridView1.RenderControl(htmlWrite);
Response.Write(stringWrite.ToString());
Response.End();
I am able to get report but now i need that
My report header at the center of 1 row how to do that
|
|
|
|
|
Hi Guys
In Web application i am using ajax tool kit so my application is working properly
but when i leaved my application idle for 10 or more than 10 minutes
after that clicking on any event its giving script message as below
after refreshing page again its working fine
"Validation of view state MAC failed. If the application by a web form or cluster, ensure <machinekey> configuration specifies the same validation key and validation algorithm
Autogenerate can not be used in cluster."
what is the any one help me
thanks in advance
krishna veer singh
|
|
|
|
|
Hi I have an application in ASP .NET 1.1 , in that i am using log4net for logging information. My demand is i need 2 seperate log files(but file appender only). Is it possible with log4net and how? Please tell. It's very urgent.
|
|
|
|
|
Member 3985504 wrote: It's very urgent
Of course it is.
Does log4net not have a forum or FAQ ?
Christian Graus
No longer a Microsoft MVP, but still happy to answer your questions.
|
|
|
|
|
I am using the gridview to show the data from the DB.
I am using a checkbox to edit the data in the DB.
If checkbox is checked once then the page must pop up with that data.
If multi items are checked then apage must be pop up with selected multiitems data in a grid.
For this am using onclick event to check the single item is checked or multi items are cheked.
have used a script to pop up a page.
Can anybody tell me "CAn we use onclient click and onclick propertities on a single control"?
|
|
|
|
|
Yes. If onclientclick returns false, the onclick will not run.
Christian Graus
No longer a Microsoft MVP, but still happy to answer your questions.
|
|
|
|
|
Yes, because I've done the following...
Developer's Notes
Hoep this help, Signed... Linda S.
xxx
|
|
|
|
|
i have grid view in which i have allow paging.......so i have 10 pages.123456789...n so on
to get all pages i hv write the code as follwes.
protected void grdvwUpdt_PageIndexChanging(object sender, GridViewPageEventArgs e)
{
DataTable dsAllUpdtblData = ViewState["dvAllUpdtblData"] as DataTable;
grdvwUpdt.PageIndex = e.NewPageIndex;
grdvwUpdt.DataSource = dsAllUpdtblData;
grdvwUpdt.DataBind();
}
when i click on any no ....it dnt show any change.....it must hv to give remaining record...but it didnt shoe tht
why?
|
|
|
|
|
In page Index Changing no need to rebind gridview.
Only this much is enough
grdvwUpdt.PageIndex = e.NewPageIndex;
|
|
|
|
|
still not working .........
|
|
|
|
|
You use your earlier code.That is rebind the grid after changing the page index and insert breakpoints .Check whether control is passing correctly or not.
|
|
|
|
|
debugger going inside the event.....but nthing get happen
|
|
|
|
|
hi,
try giving the same code in PageIndexChanging event of grid
T.Balaji
|
|
|
|
|
i have use pageIndexchanging only....
|
|
|
|
|
Here is the code. You need to create the session of the gridview at the time of binding the data
public void BindData()
{
DataSet dsItemList = objConfig.GetItemList();
grdItemList.DataSource = dsItemList;
grdItemList.DataBind();
Session["grd_ItemList"] = dsItemList; }
After creating the session use that session in ur page indexchanging method
protected void grdItemList_PageIndexChanging(object sender, GridViewPageEventArgs e)
{
grdItemList.PageIndex = e.NewPageIndex;
if (Session["grd_ItemList"] != null)
{
grdItemList.DataSource = Session["grd_ItemList"];
grdItemList.DataBind();
}
Session["grd_ItemList"] = null;//end the session
}
|
|
|
|
|
Hi,
I am creating an web application in asp.net and the requirement is that I have to hide a FileUpload or INPUT(File) on button click using JavaScript . I tried a lot but I didn't get the success . Please help me regarding this. Thank You
|
|
|
|
|
Put it in a div and hide that. Do you know how to hide a control with js at all ?
Christian Graus
No longer a Microsoft MVP, but still happy to answer your questions.
|
|
|
|
|
Sorry.... But I don't know how to hide controls in js. So I also don't know how to hide it through put it in <div>.
|
|
|
|
|
astrovirgin wrote: But I don't know how to hide controls in js
Do you know how to google? if no, CG's article[^] should help.
to toggle the visibility follow these steps,
1 - Get the div using document.getElementById(divId)
2 - Set style.display = 'none' to hide and style.display = 'block' to show.
|
|
|
|
|
in vb i hv done following.......
trWorkAssigned.Style("Display") = "Inline"
tdUpdtInvCoid.Style("Display") = "none"
i want to use tht coding in c#
how i will use tht?
|
|
|
|