|
Hi,
Thanks for your replay.I have one more doubt
1. Can i use mysql instead of MsSQL .
2. Instead of mssqlexpress can i use other data base like master database in mssql for user management administration.Please Replay.
Thanks&Regards
lijo
|
|
|
|
|
yes you can integrate the WSAT into your web applications. go to asp.net configuration option. there you can access the Wsat and add it to your web app
|
|
|
|
|
Guys;
As you might know, all extenders are created by calling the function $create() just on the event Sys.Application.init . And disposed by calling the function $find('componentId').dispose() ether on the event Sys.Application.unload (closing the page) or by updating the containing UpdatePanel .
My question is; in case we create the behavior(the extender) dynamically by calling the function $create() through the client script, then how to register disposing it when the UpdatePanel is updated?
Help people,so poeple can help you.
|
|
|
|
|
We can achieve that by by calling the function Sys.WebForms.PageRequestManager._registerDisposeScript(); which registers the the component on updating the parent UpdatePanel just like the code below:
Sys.WebForms.PageRequestManager.getInstance()._registerDisposeScript('parentupdatepanelid', 'var component = $find("componentid"); if (component != null)component.dispose()';
The disposing script(the second argument) is executed by the function Sys.WebForms.PageRequestManager._updatePanel which is called when an UpdatePanel is updated. (the code below)
function Sys$WebForms$PageRequestManager$_updatePanel(updatePanelElement, rendering) {
for (var updatePanelID in this._scriptDisposes) {
if (this._elementContains(updatePanelElement, document.getElementById(updatePanelID))) {
var disposeScripts = this._scriptDisposes[updatePanelID];
for (var i = 0, l = disposeScripts.length; i < l; i++) {
eval(disposeScripts[i]);
}
delete this._scriptDisposes[updatePanelID];
}
}
this._destroyTree(updatePanelElement);
updatePanelElement.innerHTML = rendering;
}
I added the if statement to the disposing script because the component can be disposed before the UpdatePanel is updated so the function $find() would return a null and we would have a Null Reference Exception.
So what about the behaviors that is created after ExtenderControls on the Page that have disposing scripts of '$find("componentid").dispose();' ?
Help people,so poeple can help you.
modified 11-May-12 10:33am.
|
|
|
|
|
HI
I want:(Below)
Redirect to login page when i dont touch the page. (After Session time out).
I dont want like this:(Below)
Not to refresh the page or set a timer in javascript.
Regards,
Shirish Manda
|
|
|
|
|
Sir;
you can add an if statement to the function that handles the load event of the page checking if the session is null and redirecting to the logging page. Just like the code below;
if (Session["UserName"] == null) Response.Redirect("~/loggingpage.aspx");
Help people,so poeple can help you.
|
|
|
|
|
If this is written in Page Load event. It fires only when page is loaded. It does'nt fires (Page Load Event) when session timeout.
Regards,
Shirish . M
|
|
|
|
|
Sir;
I use it all the time and it works.
Help people,so poeple can help you.
|
|
|
|
|
Every Time The Page Loads, check for any Session Variable You Set At The Time Of Login IS NOT NULL.. If It Is NULL, Then Redirect To The Login Page Else Complete The Request.
- Happy Coding -
Vishal Vashishta
|
|
|
|
|
|
Can u please elaborate your question
|
|
|
|
|
When I am testing a web form application 2010 using a custom server (where the url address is 'https:/ip address of my workstation/virtual directory), I get the error message: 'System.InvalidOperationException: The 'Microsoft.ACE.OLEDB.12.0' provider is not registered on the local machine'.
**Note the custom web server is IIS7 that is running on my workstation.
Basically I am trying to have my workstation act like the production iis server. The problem is the production server has 32bit and 64 bit versions of excel installed on it.
However on my workstation, I have a 32 bit version of excel 2007. (The web application takes the data from the excel spreadsheets and loads the data into the database.)
From what I have seen on the internet, having both a 32 bit and 64 bit version of excel on the same computer has problems. Thus can you tell me what you would suggest I try to solve this probloem?
|
|
|
|
|
Office most of the time creates problem when you work on different environment so I would suggest use Open XML for office use. No office installation required on at least server environment.
Parwej Ahamad
|
|
|
|
|
xcan you give me an explaination of what open xml is used for?
|
|
|
|
|
As per my understanding, you are accessing Excel file through your Asp.Net application. If correct then go for Open XML http://openxmldeveloper.org/[^]
Parwej Ahamad
|
|
|
|
|
sc steinhayse wrote: 'Microsoft.ACE.OLEDB.12.0' provider is not registered on the local machine'.
Please read that error message again.
What does it mean?
A COM component is required.
It is called 'Microsoft.ACE.OLEDB.12.0' provider.
It is not registered (i.e. likely not installed) on the local machine.
So: what's the next step?
Install the oledb components on that computer!
For more information on doing that, read http://www.codeproject.com/Messages/4231330/More-Of-A-Tip-Than-A-Question.aspx[^].
|
|
|
|
|
How can i get a video article for "Create User Wizard" in C#..?
|
|
|
|
|
Start here[^].
"If you think it's expensive to hire a professional to do the job, wait until you hire an amateur." Red Adair.
nils illegitimus carborundum
me, me, me
|
|
|
|
|
|
I want to add a multiple attachment control in my site. Only 1 attachment can be added at a time. When user clicks on "Add Another Attachment" link, he is able to add another attachment & so on, just like gmail. Please help me accordingly.
|
|
|
|
|
Start here[^].
"If you think it's expensive to hire a professional to do the job, wait until you hire an amateur." Red Adair.
nils illegitimus carborundum
me, me, me
|
|
|
|
|
|
Hi,
I am using jquery autocomplete.
I am implementing multi values for autocomplete
while entering data into text box is fine.
But when page is post back I am displaying the previously selected values, now if i want to delete the selected values how can i know which value is deleted from text box.
And my data is from database if user keep on pressing back space or select content from text box and click on delete can i know which value is selected and which value is deleted.
Here is my sample code
$("#personGroupID").autocomplete({ minLength: 3,
multiple: true,
mustMatch: true,
autoFill: true,
source: function (request, response) {
currentvalue = this.term.split(', ');
searchlength = currentvalue.length;
var theUrl = "/Pages/ITS/ITSLookUpService.aspx?Type=PersonGroup&Value=" + currentvalue[currentvalue.length - 1].toUpperCase();
$.ajax({
url: theUrl,
data: request,
dataType: "json",
type: "POST",
success: function (data) {
response(data);
}
});
},
select: function (event, ui) {
var terms = split(this.value);
terms.pop();
terms.push(ui.item.DESCRIPTION);
terms.push("");
var selectedvalue = document.getElementById("personGroupID").value;
if (selectedvalue = "") {
document.getElementById("personGroupID").value = terms.join(", ");
}
else {
}
if (document.getElementById("HiddenPersonGroup").value != "") {
var selectedpersongroupsk = document.getElementById("HiddenPersonGroup").value.split(',');
var exist = false;
for (var i = 0; i < selectedpersongroupsk.length; i++) {
if (selectedpersongroupsk[i] == ui.item.PRSG_SK) {
exist = true;
}
}
if (!exist) {
document.getElementById("HiddenPersonGroup").value = document.getElementById("HiddenPersonGroup").value + "," + ui.item.PRSG_SK;
$("AssignedPersonGroup").val(this.personGroupID.value + "," + ui.item.DESCRIPTION);
}
}
else {
$("HiddenPersonGroup").val(ui.item.PRSG_SK);
$("AssignedPersonGroup").val(ui.item.DESCRIPTION);
}
return false;
}
If i want to delete the data from text box how can know which value is deleted.
|
|
|
|
|
Member 8482949 wrote: But when page is post back I am displaying the previously selected values,
That's the proper behavior of a postback to the server.
If you populate a dropdown or listbox on the server side, the server maintains the list of values, and expects the same list of values to postback, with one of them having the selected attribute.
You can alter the contents of an edit box, for the server does not care what value is returned on postback.
If you don't like the behavior, then populate the dropdown box using JQuery when the DOM is ready, and take the selection and copy it into a edit box, then post the page back using the edit box for the value.
Also, a web service uses the asmx extension, and not the aspx extension. The wrong mime type may produce strange behavoir.
|
|
|
|
|
I have a flash page(URL) that has a product image and some text like color,category,price etc.I would like to know how to get data (image & all the data associated with product) from a Flash website into a file (may be excel, access, flat, csv, xml...etc).
|
|
|
|