|
Hi i have developed an Asp.Net Website i use Session Variable to track the user it work properly in my local system i have installed my website on local server and test it but the session not work properly in the local server when i access it from my machine the session varialble losss its datas how to prevent it please help me
|
|
|
|
|
Hai,
Suppose I have two tables for coutry and state in the databse.In my aspx page I like to populate the DropDown List state according to the country selected using AJAX.Pls give me an idea and sample code of how this task can be accomplished.
|
|
|
|
|
Hi All,
I have a custom Control which contains div as a main container and any other control can be dragged and dropped within the div control. Currently, I have added client side code to invoke a postback on the following events of the container:
document.onchange = handleEvent;
interceptor.onclick = handleEvent;
interceptor.onkeypress = handleEvent;
interceptor.onkeyup = handleEvent;
interceptor.onpaste = handleEvent;
So in any of these events on the container or any its child a postback event is raised to the server with the function handleEvent:
function handleEvent(event)
{
var btsave = document.getElementById(controlEtatUpdate);
if ( btsave.disabled )
{
if (!event)
{
var e = window.event;
if (!e.ctrlKey)
{
if (e.keyCode != Sys.UI.Key.tab)
{
if (e.srcElement.type) {
if (e.srcElement.type == 'text')
{
if (e.type != 'click')
{
// Save the current position for a text.
currentPosition = getPosition(e.srcElement)
WarnServer();
}
}
else
{
WarnServer();
}
//W3C model
if (e.stopPropagation)
{
e.stopPropagation();
}
}
}
}
}
}
}
So as soon you click on the custom control, an even is raised but I would like to avoid that in the case of a ComboBox…Especially when there is no change in the selection. Any help will appreciated.
|
|
|
|
|
Hi ,
I was going through an ASP.Net [with VB.Net as code behind] application.
The problem with this application is that when a particular page is transfered to another page, the receiving page sometimes get data [using Request.Form] and sometimes not. This form is submitted using javascript. This is inconsistent behaviour.
Is this a known issue in ASP.Net?? Any solution for this?
|
|
|
|
|
|
I have a web site that I'm writing for a client but am thus far unable to connect to the server via my ASP pages. All the information I can get from the help center at the hosting provider is the DSN, IP address, Username, Password, and the database name.
I've been to connectionstrings.com, which is a pretty useful site, and have attempted to use the available resources but to no avail.
Here is the connection string I'm currently using,
Sub ConnDB()<br />
Set DataConn = Server.CreateObject("ADODB.Connection")<br />
DataConn.Open "Provider=sqloledb;Data Source=190.190.200.100,1433; Network Library=DBMSSOCN;Initial Catalog=myDataBase;User ID=myUsername;Password=myPassword;"<br />
End Sub
Any help with this would be greatly appreciated.
Cheers
An American football fan -
Go Seahawks!
Lil Turtle
|
|
|
|
|
Is the firewall enabled? If so, is it allowing access to port 1433?
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
|
|
|
|
|
I'm fairly certain that the hosting company I'm working with has some kind of firewall enabled but it's also their SQL server that I'm trying to access.
How would I check to see if port 1433 is open?
Thanks for replying, Cheers
An American football fan -
Go Seahawks!
Lil Turtle
|
|
|
|
|
Chris McGlothen wrote: How would I check to see if port 1433 is open?
You could try to ping it. Most likely your web host won't allow traffic in and out of the port over the web. My web host doesn't.
Out of curiosity, who is the web host?
"I guess it's what separates the professionals from the drag and drop, girly wirly, namby pamby, wishy washy, can't code for crap types." - Pete O'Hanlon
|
|
|
|
|
Paul Conrad wrote: You could try to ping it.
I should've realized that the simplest answer is usually staring you in the face
The site is being hosted by Network Solutions. And I've figured out the connection, I was using the wrong connection string format. Sometimes it just takes that second cup of coffe and a quick chat about the playoffs at the water cooler to realize your obvious simple mistakes.
Thanks for the help, mate.
An American football fan -
Go Seahawks!
Lil Turtle
|
|
|
|
|
I think QueryAnalyzer might use NamedPipes and hence pass through. How about ASP and ASP.NET? I think TCP should be enabled in server configuration. Isn't it?
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
|
|
|
|
|
This is the first time that I've worked with an outside hosting company, and they do support ASP. I've been writing the server side code in ASP and using VBScript for the included connection functions and some page load events. As far as I can tell the connection string shouldn't be blocked by the firewall and since the SQL server is running at the hosting complex, I assume, I'm not sure what else could be causing the problems.
Thanks for the reply,
Cheers
An American football fan -
Go Seahawks!
Lil Turtle
|
|
|
|
|
hi
how can manage keypress event in asp.net ?
forexample :
suppose gmail. in compose mode when user click "Ctrl+s" email save in draft.
i want such things.
tanks.
|
|
|
|
|
hi,
I want to create a site which has a language rather than English,so plz tell me how shall i do it.Thank you.
coolsatty
|
|
|
|
|
Do you mean a language other than English? Just type your words in the language of your choice. If you mean you want the user to select which language they want then... well, that's quite a different thing entirely and not really something that can be explained in a forum.
|
|
|
|
|
Please be more clear as to what you are trying to do.
"I guess it's what separates the professionals from the drag and drop, girly wirly, namby pamby, wishy washy, can't code for crap types." - Pete O'Hanlon
|
|
|
|
|
This is a simple table code I have attempted to write but for some reason it displays quite a few lines down from the top and I cannot figure out why. Any suggestions?
<table border=1 cellspacing=0 cellpadding=10 width=800><br />
<colgroup><br />
<col width="50%"><br />
<col width="50%"><br />
<tr><br />
<td>Superman<br />
<td>Christopher Reeve<br />
</tr><br />
<br />
<tr><br />
<td valign="top">(character biography)</td><br />
<td valign="top">(actor biography)</td><br />
</tr><br />
<br />
<tr><br />
<td valign="top">Selected Appearances<br />
Superman (1978)<br />
Superman II (1980)<br />
Superman II: The Richard Donner Cut (2006)<br />
Superman III (1983)<br />
Superman IV: The Quest for Peace (1987)[/SIZE]</td><br />
<td valign="top">[B]Selected Appearances[/B]<br />
Smallville (2001) Season 2, Episode 17 "Rosetta" <br />
Smallville (2001) Season 3, Episode 17 "Legacy"<br />
Superman (1978)<br />
Superman II (1980)<br />
Superman II: The Richard Donner Cut (2006)<br />
Superman III (1983)<br />
Superman IV: The Quest for Peace (1987)</td><br />
</tr><br />
</table>
|
|
|
|
|
hye ,
u r not writen the tr and td in correct format...so check it once again ....and write html and body also....
|
|
|
|
|
I think it's due to Cellpadding. Try reducing cellpadding value.
|
|
|
|
|
I have a link on my asp webpage to open a .ppt file in a new window. The file opens fine in IE 6 and FireFox. In IE 7, it opens PowerPoint with a blank slide. But if I right click the link on my webpage and save locally I am able to view the contents of the powerpoint. What is going on? Is IE7 blocking the content?
|
|
|
|
|
I have been searching the site for articles (and how to's) about developing digital gauges and dashboards (for the presentation of real time data), I have found only one article.
I would like to develop an application that is web based (to keep the foot print to a minimum) it is being developed for fun (not for commercial use but it needs to be robust). The data will be real time, (e.g. wind direction, wind strength, GPS data, etc) Some of the data will be from NMEA devices. I would much appreciate;
1) Articles from others (code snippets would be great!);
2) Suggestions on the best language(s) to use.
3) Other websites to visit - I have searched the Internet and only found commercial stuff, - i.e. companies selling packages - most don't look too convincing! (or they want an arm and a leg!!!).
4) Any other suggestions.
Regards,
Sciencez
modified on Friday, January 18, 2008 10:37:11 AM
|
|
|
|
|
Morning guys.Im looking for a script I can use with a database.I have a database with people's birthdates, so I need to compare that database date with a system date and if the dates match print the details of the people that celebrates.
My lil immature script looks like this.
")
end if
rs.close
set rs = nothing
end if
%>]]>
kagiso
|
|
|
|
|
Dude, your script makes very little sense, calling functions that we can't see, using variables that we don't know how they are initialised. What do you actually need? A SQL script that selects from a table based on a date?
SELECT * FROM ATable WHERE ADate = GetDate()
Would work in SQL Server...
|
|
|
|
|
what is the server side code and client side code where it has to use
sanjeev
|
|
|
|
|