|
According for this you should create one connecting string table in you main database
so based on login id and role its should pick up connecting string when user login to system . save this connecting string in session variable.
Hope this will work for you.
|
|
|
|
|
Hi, there is no main database at present.
There is only one DB per business.
|
|
|
|
|
I dont this so with out main db you complete this kind of functionality.
|
|
|
|
|
You could have different connection strings in the webconfig and choose from them, at runtime, based on the user's role/business unit data.
|
|
|
|
|
What do you mean by "based on the user's role/business unit data." ? if you mean when they login then please note that at present in each business DB, there are login schemas.
|
|
|
|
|
In that case then you got to tear out the login schemas from the business dbs and put it in one common db. Then proceed with either my suggestion or Rana's suggestion.
Based on your original question, to give different login screen to different business, how will you identify which user is from which business before s/he logs in??
So either tear out the login schema into diff db or else, make separate deployment for each business with different db configs.
HTH!
|
|
|
|
|
There must some specific condition on which you will be deciding whioch db you are going to use.So at the loading of your website,apply the connectionstring that you want. Cheers!!
Brij
|
|
|
|
|
As far as i think you can have particular id for each bussiness and according to that id you can dynamically
use the connection string as you want.
|
|
|
|
|
hello all
can we use frament caching or partial-page output caching without webuser controls ???
I mean could there be any possibility to use fragment caching rather than used in webuser controls..?
if yes..how could it be done?
|
|
|
|
|
I have never used fragment caching without Usercontrol.and I dont think it is possible without userconrol. Cheers!!
Brij
|
|
|
|
|
What is IsCallback? when to use Callback?
Pz explain with example ?
|
|
|
|
|
i think you should google and find out answer becuase there you find more information and articles.
|
|
|
|
|
Callback is very good approach,when we dont want to postback the whole page to the sever.Here we make the html from server and simply paste that html in our page useing the callback response.
For details Have a lookCheers!!
Brij
|
|
|
|
|
Hi,
Callback is used to contact web server(either submitting some information to Web server OR retrieving information from Web Server) in such a way that end user does not experience the processing of request.
In simple words when a callback request is made, system serves the request on the web server and present the information requested on the user interface without refreshing the entire web page on the end user's machine.
Techinally speaking when a callback request is made then Page_PreRender(Before, On and After) events are not fired and the requested information is handed to user interface, this will prevent the complete rendering of page and only the portion that requested the call back operation/request will be updated.
Callback improves the user experience, saves performance and saves the response time.
Postback is the normal process that happens when a page contact web server(either submitting some information to Web server OR retrieving information from Web Server) and it refreshes complete page on the web server.
In simple words when a postaback occurs complete page is rendered again.
Hope this helps, let me know if you need any further information on the same.
Thanx,
Adil... )
|
|
|
|
|
hello seniors,
i have to pass memcod with query string on link button's click and also have to open a popup on which i'll upload picture.
i want to open that popup using window.open() javascript method
please help me its very urgent.....
Mayank Pathak
|
|
|
|
|
function modalWin(url)
{
var windowWidth = document.documentElement.clientWidth;
var windowHeight = document.documentElement.clientHeight;
if (window.showModalDialog)
{
window.showModalDialog(url,'Agent Rala Time','dialogWidth:'+ windowWidth +';dialogHeight:'+ windowHeight );
}
else
{
window.open(url,'Agent Rala Time','height='+ windowHeight +',width='+ windowWidth +',toolbar=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no ,modal=yes');
}
}
|
|
|
|
|
Attach a javascript function on the linkbutton click.And in that function use window.open.Also pass the querystring in the url. Cheers!!
Brij
|
|
|
|
|
thnx for the reply sir..
but i need a code snippet...
plz explain me with an example
thanks a lot
|
|
|
|
|
hi all I need to create a row or div containing 4 textbox and a button dynamically...
on button click that particular row or div with textboxes and button should display. For every button click a new row or div should be added
how can i do please help with any articles or some code...
thanx...
|
|
|
|
|
did you try to create that dynamically.Use some placeholder create the dynamic controls and add them to the placeholder.
Let me know if face any problem.Cheers!!
Brij
|
|
|
|
|
this is what i tried im getting 4 buttons along with textboxes
but i want only single button
i want that row say for 'n' times but i could do it only once...
private void tablenew()
{
Table table1 = new Table();
table1.ID = "tab";
Page.Form.Controls.Add(table1);
for (int i = 0; i < 1; i++)
{
TableRow row = new TableRow();
for (int j = 0; j < 4; j++)
{
TableCell cell = new TableCell();
Button lbl1 = new Button();
lbl1.ID = "butn_" + i + "_" + j;
TextBox lbl = new TextBox();
lbl.ID = "TextBox_" + i + "_" + j;
cell.Controls.Add(lbl);
cell.Controls.Add(lbl1);
lbl1.Text = "Button";
lbl1.OnClientClick = "Btn_click";
row.Cells.Add(cell);
}
table1.Rows.Add(row);
}
}
|
|
|
|
|
I am not able to understand your actual requirement.If you want one button per row then add it upper for loop.
If you tell me your requirement categorically then may I'll be able to answer your problem.Cheers!!
Brij
|
|
|
|
|
my requirement is when i click a button
four text boxes should display and this has to repeat, i.e, for every button click i need to generate 4 text boxes...
thanx..
|
|
|
|
|
Hi Every one,
i developed an asp.net(2.0) applicaions which contains the attachments of the clients . these attachments are saved in the shared folder and retrive the file when the user requests.
if i maintain the application and the shared folders in the same system it will work properly.
if i maintain the application in one server and the file folder in the other server i face a lot of security issus like
1.Access Denied
2.Couldnot find the part of the path.
.....
for this i made an common account for the application server and the file server and also set impersonation to true.
Even the i got the couldnot find the part of the path error.
i already gave the everyone with full control to the shared folder and i added the common account and gave it to full control
Is there is any alternate for the save and retrive the files to and from the shared folder.
Please help me...
ThanksKesav
modified on Wednesday, February 17, 2010 5:32 AM
|
|
|
|
|
go to run and open IIS manager by typing inetmgr
in that
go to Application > DefulatAppPool > right click and go to properties
In properties > go to identity tab and change predefiend to Local System
|
|
|
|