|
My first table has 'ApplicationID' as primary key which also set as identity.
All the other tables they have 'ApplicationID' as a foreign key.
In addition to this , the primary key for the other tables is
ID(of that table)+ApplicationID(of first table)
IT_Help
|
|
|
|
|
You can still do what i told you, instead of using identity, generate a unique key in your code on first page and set a session object equals to the unique key. Every time the user go back to previous page,System do a preload by using session object.
|
|
|
|
|
create the entries in all tables on first page when page load to avoid foreign key contraint and update them when user submit on every page.
|
|
|
|
|
Hello,
I have a web application built in Ajax. When the user opens the app we need to establish a connection (from client side) and keep it open for as long as they are active to a server on a different domain. (The domain spoof and web service work around not really an option for us).
The user as they interact with the ajax window will send data to the third party server with responses. Sometimes the third party server will send the end user updates that will need to be handled and the Ajax window updated with the new info.
I have built this in .Net2 (mandatory version) and c#. I have all the interactions working with a test hook (windows form) but now I need to move it to the web.
So do I do the painful, outdated ActiveX thing or is there a better technology to solve this. BTW The users are forced to use IE by other site requirements outside my control. I KNOW this has been done many times before so any information how others accomplish this would be greatly appreciated. JB
|
|
|
|
|
If you want to keep your application connected, why dont you use silverlight??
I have made one chat application in silverlight which keeps both client and server socket connection open using WPF and it is working fine.
Normally using http, it wont be possible, silverlight or Adobe AIR would be a better option for you.
|
|
|
|
|
Silverlight is a consideration but then wouldn't I have to redo my entire app in Silverlight? This question shows my ignorance of Silverlight. I mean all my Ajax code, grids, etc would have to be recoded in Silverlight. Now if that's what it takes then that's what it takes but was hoping to avoid that...???
|
|
|
|
|
Yes... This is a point. But what is the problem of creating connections to your server using AJAX in a timer.. means using SetTimeOut. Does you really require to have Socket connection established and running for the entire session ?
Take for example, Gmail establishes more than one connection to their server using normal XMLHttp object and updates the Chat and mail section. Why dont you use this to update your website.
Is socket connection is mandatory?
|
|
|
|
|
Yes. That is the rub. 3rd party forces socket connection & third party may send data realtime and we need to handle realtime. So to clarify to use Silverlight I would have to recode in silverlight or can Silverlight wrap the way Ajax modal dialog does. In other words instead of popping an Ajax window that loads a page can I pop Silverlight that loads the same page. I.E. recoding would be very minimal.
|
|
|
|
|
i have to give link for a image
if any one click the images it will go to another page what i want
|
|
|
|
|
Place the image tag inside an "a" tag.
<a href="your url"><img src="image url" /></a>
|
|
|
|
|
this code shows any blue border around the image
|
|
|
|
|
set the image border to zero.
<img src="image url" style="border ;" />
|
|
|
|
|
|
Hi,
Is it possible to prevent or extend the repeater's itemTemplate from rendering as a div?
I would appreciate any code samples.
Thanks in advance.
|
|
|
|
|
I don't understand your requirement. Repeater control never inserts its own html tags on rendering. It just repeats the items bounded to it.
|
|
|
|
|
You are right... I just looked through my code and I see what my problem is..
Thanks a lot!!
|
|
|
|
|
still I'm getting 'sys' is undefined.
locally working fine but not on live server.
look on code:
<asp:ScriptManager ID="sc1" runat="server" EnablePartialRendering="true" EnablePageMethods="true">
<Scripts>
<asp:ScriptReference Path="Utilities/Javascripts/Init.js" />
</Scripts>
</asp:ScriptManager>
<div>
<br />
<asp:UpdatePanel ID="up1" runat="server" UpdateMode="Conditional" ChildrenAsTriggers="true">
<ContentTemplate>
<asp:TextBox ID="txtText" Text="welcome" runat="server"></asp:TextBox>
<asp:TextBox ID="txtGet" runat="server"></asp:TextBox>
<asp:Button ID="btnSubmit" Text="Click Me" runat="server" OnClick="btnSubmit_Click" />
</ContentTemplate>
</asp:UpdatePanel>
//Init.js file
Sys.Application.add_init(AppInit);
function AppInit(sender) {
Sys.WebForms.PageRequestManager.getInstance().add_endRequest(End);
}
function End(sender, args) { }
You get the best out of others when you give the best of yourself.
|
|
|
|
|
|
I have already done these settings on Web.Config file but still no solution.
thanks for your response.
You get the best out of others when you give the best of yourself.
|
|
|
|
|
Just I would like to suggest one thing, as you said this is not working on Live server so be ensure every thing is present there for Ajax enable hosting on your live server.
There are many asked related to this issue. At onece go with this-
http://forums.asp.net/search/SearchResults.aspx?q=sys+undefined&o=Relevance[^]
Parwej Ahamad
ahamad.parwej@gmail.com
modified on Friday, October 2, 2009 9:54 AM
|
|
|
|
|
hi expert,
i want to campare two date in specific situation
ex. todate and fromdate
i enter the todate =02/10/2009
and from date is =03/10/2009
the above example show to you the from date
is greater than todate
if fromdate is not greater than todate
i hope you understand my querry
Please reply i wait.
|
|
|
|
|
|
Parwej Ahamad wrote: Console.WriteLine
Console.WriteLine in ASP.Net
Manas Bhardwaj
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
It was my mistake. Thought he is asking in asp.net and did't read his subject.
Parwej Ahamad
ahamad.parwej@gmail.com
|
|
|
|
|
Parwej Ahamad wrote: It was my mistake
Things happen
Manas Bhardwaj
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|