|
you can use clientcallback feature.
serch for the same in google.
all the best
Thanks & Regards
Pete
|
|
|
|
|
here i am using class file which has a the required code for my application and have called it in each and every web form where ever required, and sending my arguments to the class where my code is used here i am calling class ps = new class(); and passing the values the problem is its working properly in the local intranet when run but this is the problem with web server when he files are placed in the web folder can any one solve this for me..
|
|
|
|
|
you have to escalate privilage for this class and particularly for this method to access files on the web server
it works fine for you at the intranet because you have windows account access through the intranet but visitors online are anonymous users you have to set permissions to the method you want it to call folders or files at the web server for online anonymous users
because visitors when they run the web application they have anonymous access only to your web applications so you have to provide code access security for this method and grant access to the anonymous role if you used membership or something
search for "Code access security" and read about it
thanks
Human knowledge belongs to the world.
|
|
|
|
|
hi
i have a web site which is running perfectly in the localhost of the local intranet, but when placing the whole folder in the web space i could not get the application run. so i want a perfect procedure for hosting my site inthe web space provided, and the detailed steps involved to set up or publish the web site before placing the files in the web space to get the application run.will be greatfull to the person who can give me some procedure to be followed.
|
|
|
|
|
how to create .sfd file in flash
reply soon
Best Regards,
Trishul Tandel
Software Developer
|
|
|
|
|
Trishul Tandel wrote: reply soon
Is that an order?
|
|
|
|
|
Hi friends,
I put single master page with multiple content pages. I call the function from
master page that "showContent()".
MasterPage.Master :
================
function ShowContentOne()
{
alert("enterInside");
var elemContentOne=document.getElementById('divCheckContent');
alert(elemContentOne);
elemContentOne.style.display='block';
elemContentOne.style.visibility='visible';
}
===========================================
this 'divCheckContent' is in content page two. But i cant get it. i call this function onclick in master page.
frmContentOne.aspx :
================
I cant get the div id. The div id is null while i give in alert.
Hope ur's reply
Thanks
__________________
Failing to plan is Planning to fail
Every Successful Person Have A Painful Story
|
|
|
|
|
your idv id is divContentOne and it is ruat server than not acces directly .u use the
<%= divContentOne.ClientID %>
infront of divContentOne in javascript
Best Regards,
Trishul Tandel
Software Developer
|
|
|
|
|
Put your javascript function call at end of the page.
i.e just before closing the body tag.
that should work..
Thanks & Regards
Pete
|
|
|
|
|
How to use SqlCacheDependency. Actually i want to implement SqlCacheDependency in my project. So firstly i'm enabling my database by the code given below
aspnet_reqsql.exe -S . -U sa -d 'DatabaseName' -ed
But it raising an error "aspnet_regsql" is not recognised as an internal or external command, operable program or batch file
|
|
|
|
|
.NET- India wrote: aspnet_reqsql.exe -S . -U sa -d 'DatabaseName' -ed
Where are you executing this line from?
Alexei Rodriguez
|
|
|
|
|
In Visual Studio 2005 Command Prompt
|
|
|
|
|
Using the command prompt, Go to:
C:\WINDOWS\Microsoft.NET\Framework\version####\ and execute your statement
I dont know if your statement is correct, but i hope you already checked it
Alexei Rodriguez
|
|
|
|
|
Hi,
I am developing one application in that Registration table i set Email address as primary key and i am using that email address as foreign key for remaining tables.
Now in my application i will put an option Edit Email address. Can we edit the primary key value in all tables?
When i try to edit the primary key Email i am getting this error
"UPDATE statement conflicted with COLUMN FOREIGN KEY constraint 'FK__tbl_perso__Email__01D345B0'. The conflict occurred in database 'spotlend', table 'tbl_registration', column 'Email'".Please tell me how to resolve this problem.
Thanks in Advance
pavani
|
|
|
|
|
pavanip wrote: i am using that email address as foreign key for remaining tables.
If you are useing this as a foreign key, when you try to update or delete that record in registration and there is a record in table 2, then you get this error, you would also need to update or delete the record from table 2 before updating or deleting in table registration
To resolve this, just enable the cascadeupdate and cascadedelete in table registration for the email column
Alexei Rodriguez
|
|
|
|
|
Please be carefull while using cacadedelete on the table.
this may trouble you if you are usiung the trigger. when a record is being deleted.
Thanks & Regards
Pete
|
|
|
|
|
Hi friends
I will be having hardly 100 names in the DB ( My SQL)
I have written a web-service which returns the matching names
Everything is fine except the speed , Please any suggestions regarding increasing speed .
Thanks and Regards
If You win You need not Explain............
But If You Loose You Should not be there to Explain......
|
|
|
|
|
cache what you wanna fetch
|
|
|
|
|
Thanks "Phil Uribe" & "J4amieC" for their kind attention on my problem. But I could not get the required result.My problem is still same. By using the following code I got the full path not only file name.
protected void Page_Load(object sender, EventArgs e)
{
string s = "select picture from tiff";
string str = Path.GetFileName(s);
SqlDataAdapter da = new SqlDataAdapter(str, con);
DataSet ds = new DataSet();
da.Fill(ds,"tiff" );
datalistl.DataSource = ds.Tables["tiff"];
datallist.DataBind();
}
Note: I am using datalist and in edit template I used link button to show the file name.
|
|
|
|
|
ahmad25 wrote: Thanks "Phil Uribe" & "J4amieC" for their kind attention on my problem. But I could not get the required result.My problem is still same.
Then you should reply in the already existing thread instead of starting a new.
ahmad25 wrote: string s = "select picture from tiff";
string str = Path.GetFileName(s);
As the string s doesn't contain a file path, using it in a call to GetFileName doesn't give you any meaningful result.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
ahmad25 wrote:
string s = "select picture from tiff";
string str = Path.GetFileName(s);
SqlDataAdapter da = new SqlDataAdapter(str, con);
DataSet ds = new DataSet();
da.Fill(ds,"tiff" );
What is this supposed to return??
You are calling the fill method with "" as you sqlcommand
path.getfilename("c:\\x\myfile.jpg") returns the extension of a file
Alexei Rodriguez
|
|
|
|
|
Hi all,
I am trying create a websetup project for my website. My requirements are
1. I have to check whether SQL Server 2005 is exist in the Client System . If not exist, the setup should terminate.
2.Registration key validation, for that I have to generate a key1 this will be shown in registration form(in label) to user, then user have to enter key2(In a text box). I have to validate the key2 entered by the user.
3. Providing desktop short cut icon. If user clicks on icon, it should open home page of my website.
4. Providing Programs menu shortcut, functionality same as above 2.
5. After copmpletion of installation, i have to show Reade document by providing Button[ReadMeFile] ,if user hits this button i have to open the ReadMe Document.
6. I have move My DataBase files(.ldf &.mdf) to directory [Program Files]\Microsoft SQL Server\MSSQL.1\MSSQL\Data , I have to change the Connection string of my web.config page.
7. I heve to Insert Some values into DataBase table.
8. If any thing fails, i have to roll back/uninstall all files.
Please suggest me how to do websetup for above my requirements.
Thanks in advance.
|
|
|
|
|
Try the Following
I assume that you know to add custom actions for a web setup.
follwing are the answers (Piont wise).
1. Use SQLDMO Namesspase for detecting the sql server. (You can add a form to the Installer for user to speciy the server name, or you can read the system where you are trying to install.)
2. For this step you have to add a action script again and a user interface form.
3. you can use a option of desktop shortcut folder. (Drag the home page. and drop in the desktop shortcut folder.)
4. repeat the step 3. but drop in program shortcut folder.
5. you can user readme dailod. or use a custom action to launch the file either in notepad or word pad.
6. You can convert whole MDF file to a sql script. and Using SQLDMO you can execute the script on the selected instance in step 1.
7. Using SQLDMO run the scripts for inserting the values.
8. rolling back is handled automatically by the installer (But customaction exceptions should be handled carefully).
Thanks & Regards
Pete
|
|
|
|
|
|
Wowwww
It really works!!!
Alexei Rodriguez
|
|
|
|