|
hi netman the problem is for the first time it is not firing means suppose there are five nodes in a treeview if u click on the first node for the first time it is not firing from second time means later wen we click on any node it is firing .
|
|
|
|
|
Hi all,
I have a form where i capture some data that needs to be inserted into a main table and child table. These two have primary and foreign key relationships.For saving this type of data i wrote the following function
sub SomeFN()
{
_main_id = Save_Main_Info()'_returns the newly inserted id in main
For i As Integer = 0 To _Grid.Rows.Count - 1
Save_Details(_main_id)
Next
}
Now since sometimes we are experiencing fluctuating internet,it happens that only main entry is saved, the details are not saved. This problem is not for every time. Also when i retry making the same entry later it gets saved(suggests that there no incorrect data due to which the data was not saved). Is it so that the connection gets broken when the control comes to for loop.Any ideas????
When you fail to plan, you are planning to fail.
|
|
|
|
|
hi Dear
Both Save Master and Save Detail Should be one Transaction, so that if any of one fails then it should automatically Rollback.
Event execution is not depends upon internet connection. When even user send request to server it process by server at onces, and after that all processed data return back to client browser.
Just one question , why u are using loop
Sajid A.
|
|
|
|
|
Since the stored proc used for inserting main and details are diff, i can`t use transaction. But i have a facility of using the Sqlcommands Transaction though.I have to use for loop to loop thriough the detail items. Is there any method where we can insert all the main as well as details at one go into the table.
When you fail to plan, you are planning to fail.
|
|
|
|
|
when I am deleting physical folder from application using bellow code then control going in Session_End in global.asax so page is redirecting to login page again means logout
if (Directory.Exists(Server.MapPath(FolderPath)))
{
DirectoryInfo diSource = new DirectoryInfo(Server.MapPath(FolderPath).ToString());
foreach (FileInfo fi in diSource.GetFiles())
{
fi.IsReadOnly = false;
fi.Delete();
}
Directory.Delete(Server.MapPath(FolderPath).ToString(), true);
}
so how to control this?
You get the best out of others when you give the best of yourself.
|
|
|
|
|
Hi Dear
I think you need to assign Asp.Net user permission to directory.
Sajid A.
|
|
|
|
|
how to assign asp.net user permission.
You get the best out of others when you give the best of yourself.
|
|
|
|
|
Hi All,
I have partially completed my project using the form authentication.
I have used a single login form for two type of user says "Producer" and "Dealer". and set the web.config as :
<authentication mode="Forms">
<forms loginurl="Login.aspx" defaulturl="DecideLogin.aspx" name="authCookie" timeout="30" path="/">
Once the user will logged he will redirect to "DecideLogin.aspx" where i am redirect to suitable directory along user role(Dealer,Producer)
above is all about which i have done
Requirement:
I have need to keep the layout "Login.aspx" suitable to both but the content and menus are different for both the users.so i want to keep the two different login form for both.
suppose i will keep the to two login form, then how could i manage the loginurl once the session will exprired.
Once the session will expire on which page user will redirect and how?
Thanks in advance,
Sri..
|
|
|
|
|
Hi Dear,
I am just suggesting you, not to make two login page, if you have such type of requirement then make two master pages(set user controls and menus accordingly) and in runtime try to change the master page accoring to user type (Dealer , Producer).
Sample code is just for yr reference
Protected Sub Page_PreInit(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.PreInit
If userType = "Dealer" Then
Me.MasterPageFile = "Dealer.master"
Else
'Default for for Producer
Me.MasterPageFile = "Producer.master"
End If
End Sub
You can only change master page in Page_PreInit Event.
Cheers
Sajid A.
|
|
|
|
|
Like the above post I agree
It would be better just to change the styles through the code rather then have to different login pages.
Then you can just use one tag in the web config file and just change the style depending on which user is logged in
We are not a Code Charity
|
|
|
|
|
|
|
Hi This is venkat here working as a s/w developer in bangalore,india. I am eager to develop a matrimonial site
using asp.net. If any body have experience in developing matrimonial sites, plz suggest me what are the considerations i need to take
before starting free matrimonial sites. if any queries send me to my mail: venkat.ramavath@gmail.com
Thanks in Advance,
venkat
rfdsfgvgsdgvrfdsfgvgsdgvrfdsfgvgsdgvrfdsfgvgsdgvrfdsfgvgsdgvrfdsfgvgsdgvrfdsfgvrfdsfgvgsdgvrfdsfgvgsdgvrfdsfgvgsdgvrfdsfgvgsdgvrfdsfgvgsdgvrfdsfgvgsdgvrfdsfgvrfdsfgvgsdgvrfdsfgvgsdgvrfdsfgvgsdgvrfdsfgvgsdgvrfdsfgvgsdgvrfdsfgvgsdgvrfdsfgvrfdsfgvgsdgvrfdsfgvgsdgvrfdsfgvgsdgvrfdsfgvgsdgvrfdsfgvgsdgvrfdsfgvgsdgvrfdsfgvrfdsfgvgsdgvrfdsfgvgsdgvrfdsfgvgsdgvrfdsfgvgsdgvrfdsfgvgsdgvrfdsfgvgsdgvrfdsfgvrfdsfgvgsdgvrfdsfgvgsdgvrfdsfgvgsdgvrfdsfgvgsdgvrfdsfgvgsdgvrfdsfgvgsdgvrfdsfgvrfdsfgvgsdgvrfdsfgvgsdgvrf
|
|
|
|
|
You ought to do the basic research of the matrimonial sites yourself. If you are expecting some one else do this for you then, it is not going to happen here.
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
Next time can you be more specific with your subject titles as well
We are not a Code Charity
|
|
|
|
|
See his sig. It is breaking the screen like anything.
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
Dear all ,
i need code for
Random Images Generation for prevent spam registration.
plz send.
thanx in advance.
Never Think That You Have Failed Instead Always Think That u hav Better Chance Next Time...
|
|
|
|
|
It's called a "captcha". Google it.
Simon
|
|
|
|
|
Hi
i have one webapplication in .net2.0 in my local machine with
ipaddress "127.165.6.5 ".if i type "http://127.165.6.5/weapplication "
in the address bar of a browser i have to get my application what i need
to do?
Please help me.
madhavi.kona
|
|
|
|
|
So you want to access your application by typing in:
madhavi.kona wrote: http://127.165.6.5/weapplication
WHat happens when you try and access it?
You need to spell webapplication correctly for a start
We are not a Code Charity
|
|
|
|
|
.netman wrote: WHat happens when you try and access it?
Nothing will happed. First of all need to create a virtual Directory in IIS
|
|
|
|
|
For that you have to deploye it in IIS by creating VirtualDirectory
|
|
|
|
|
how to create virtual directory? and how to deploy in IIS.
madhavi.kona
|
|
|
|
|
http://www.google.co.uk/search?hl=en&q=create+virtual+directory+iis&btnG=Search&meta=
We are not a Code Charity
|
|
|
|
|
You need to publish your web application to IIS Server or any other hosting server.
After creating a virtual directory and mapping to the path of your web applicaiton, you should be able to view the said application in a browser...
Best Regards,
Sam Xavier
www.componentone.com
|
|
|
|