|
TerRO_GirL wrote: I'll give you the links (if you so find them relevant)
YOU WILL?! That's great because I'm the one that needs the help here. Oh wait.
TerRO_GirL wrote: dude, that was rude .
"Ok, good luck" qualifies as rude? Maybe you should stop smoking crack.
led mike
|
|
|
|
|
Excuse me ?! I asked a totally decent question here and you asked me some stuff that had nothing to do with it ! I am trying to retrive that text , and instead of answering me or shutting up (in case you had no ideea) , you asked me something that had nothing to do with it . And after i've been refreshing and and waiting and losing my nerv trying to refind that link , you're telling me that i'm on crap ?
You know , I ain't gonna argue with some guy who doesn't know how to answer a damn question .
Happy life .
|
|
|
|
|
TerRO_GirL wrote: you asked me something that had nothing to do with it
Here's a tip for using internet programmer forums to ask for help on subjects you don't understand. Since you don't understand the subject, you are not qualified to judge what information is relevant.
TerRO_GirL wrote: you're telling me that i'm on crap ?
No, it was "crack" not "crap".
TerRO_GirL wrote: And after i've been refreshing and and waiting and losing my nerv trying to refind that link
That's not my fault, look in the mirror, there's the person that didn't even save a bookmark to the article they used to develop software from.
TerRO_GirL wrote: I ain't gonna argue with some guy who doesn't know how to answer a damn question .
Ok, you want rude, you got it. f*** off a**hole
led mike
|
|
|
|
|
TerRO_GirL wrote: but i can't retrieve the text from the textboxes
That is a good article you are using (http://aspnet.4guysfromrolla.com/articles/092904-1.aspx). Most likely you troubles are caused by incorrect implementation of ViewState. Did you understand the article and the other articles it linked to about ViewState? It would be critical to using dynamic controls for post-back operations.
led mike
|
|
|
|
|
If you have a limited number of situations and combinations of controls, I'd consider creating them on the server, setting them as hidden using css and then showing them instead of creating them. Or I'd create a hidden field on the server, and put XML or some other string in that to tell you what text had been entered.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Thank you , Christian , I've already used the visible thing on some controls, but now i have an unknown number of them , so i really need to do this dynamically ..
If you have some other suggestion , please help me out
Thank you
|
|
|
|
|
Hi,
I am trying to do the below
In Server Side Page_Load (IsPostback) with sever side conditions I am Calling javascript confirm and trying to Return Client Confirm Return value back to the Server on the Runtime. I have pasted the both Server side code and Javascript function below.
ClientSide Javascript:
function UnSavedDataconfirm(Hdn)
{
var hdnfld = document.getElementById(Hdn);
if (confirm("There are some unsaved data. Are sure you want to Change Project Selection?")==true)
{
hdnfld.value = "True"
}
else
{
hdnfld.value = "False"
}
}
ServerSide Page_Load:
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
If Page.IsPostBack = True Then
If IsValidProjectSelection = True Then
Page.ClientScript.RegisterStartupScript(Page.GetType, "UpAlert", "<script>javascript:UnSavedDataconfirm('" & hdn_pschange.ClientID & "');</script>")
If hdn_pschange.Value = "False" Then '(No value Returned from client)
Exit Sub
End If
End If
End If
End Sub
Please let me where I am going wrong or let me know know if there is some other ways to handle this situation.
Thanks in advance.
|
|
|
|
|
what is the issue ? Where do you find it doesn't do what you expect ?
Why do a postback if they don't want to save ? Use OnClientClick to return false if they don't want to save and the OnClick of a button will not be called, no postback will occur.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Christian Graus wrote: Where do you find it doesn't do what you expect ?
Isn't he expecting his server variable (hdn_pschange.Value ) to have changed after he adds his javascript to the output stream? Surly that's not going to happen right?
Mohamed Arif wrote: Page.ClientScript.RegisterStartupScript(Page.GetType, "UpAlert", "javascript:UnSavedDataconfirm('" & hdn_pschange.ClientID & "');")
If hdn_pschange.Value = "False" Then '(No value Returned from client)
led mike
|
|
|
|
|
Isn't that what UnSavedDataconfirm does ? Set the text in that hidden control ? Either way, his problem is so urgent that he can't answer us, so....
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Christian Graus wrote: Isn't that what UnSavedDataconfirm does ? Set the text in that hidden control ?
Sure but it's not going to effect the current state of your server code at the time you call Page.ClientScript.RegisterStartupScript
Christian Graus wrote: Either way, his problem is so urgent that he can't answer us
After reading his post, I was only interested in having a conversation with you so I could talk to someone that has a clue.
led mike
|
|
|
|
|
Thanks for your help in advance.
Here is my problem. I have an asp page that is a calender.
Once someone picks a Lake and then moves forward 1 month or back one month (using th e < or > images in the calendar on the right side of the screen) they lose the lake and need to repick it. Somehow I need the links associated with the images < and > to dynamically create the URL using the LAKE selected.
I have full source code for anyone who wants to take a look at it.
Here is the page.
http://www.basscalendar.net/
Thanks again and I am even willing to pay someone a few bucks to make it work (paypal) if you think you can do it. It's been giving me fits - but, I am database programmer not a web programmer!
|
|
|
|
|
I suspect that you've got selection of some sort happening on the page, but it's lost when your calendar does a postback. Please explain how a lake is displayed and how it's selected. DO you mean a lake, as in a picture of water ?
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Yes a Lake is a Lake as in Body of water or "Event Type" that will limit the results shown in the query to that lake only.
explanation on what the page does: It is a calendar of fishing tournaments. The tournaments happen on many lakes and we would like the user to be able to show just one lake's events and then be able to advance month by month looking at all the tournaments only on that lake. . It does work to show the current month only for the selected lake but, when you click < or > to get to the next month - it loses it's lake setting and you have to start over by choosing that lake again.
Would you like me to email you the .asp page?
As I mentioned I am willing to pay for this small modification.
Thanks for your help.
|
|
|
|
|
No need to pay me, helping folks is what we do here.
How is the list of lakes shown ? Where does the list come from ? One common mistake is, if you have a control that is databound and your code sets the data source and databinds every time the page loads, then any selection will be lost. You should set the datasource in a block like this
if (!IsPostback)
{
// set the datasource and databind.
}
If that's not the issue, then perhaps post some of the aspx, so we can see how the calendar and list of lakes are created.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
It is databound.
Looks like this
;
All Lakes
<% IF ISARRAY(aryreg2) THEN%>
<% for j=0 to ubound(aryreg2,2)%>
]]>
<%next%>
<%END IF%>
I think I understand what you are saying about the dynamic building of the select page.
Hmmmmm Sounds like it may not be possible with the databound select list.
|
|
|
|
|
Is this ASP.NET, or ASP ? It looks like ASP to me. You are indeed building a list, and doing it the hard way, if this is ASP.NET, which I doubt. You're going to lose your selections, because you're rebuilding your list.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
|
OK. I would heartily recommend you abandon ASP if you can. You can get free dev tools for ASP.NET and it's a whole different world. It's actually nice to work with. I'm sorry, I hated ASP when forced to use it and I've not used it since it became obsolete, in 2002. I would recommend you try the web development forum, that's where ASP questions belong. Even then, there's not many people who still use it. Broadly speaking, you need some way of setting which objects are selected as you write them into the list ( that part is easy, it's knowing which parts are selected that is hard ). I suspect you'd write javascript to store the ids of selected lakes into a hidden field and then you'd pull that value out of the post data when the form reloads. I do recall having to do that with ASP.
Sorry I can't help more. Why are you stuck with ASP ? Is it a legacy project ?
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Thank you so much for your help.
I will see about switching to .net. Unfortunately, I am neck deep in other stuff right now so I won't be able to get to it for a while.
thanks again - your help is very much appreciated!
|
|
|
|
|
hello ,
I want to know that how to createa log file of soap reueat and soap response in web service.
i make a dll which s mentionin msdn(SoapExtension Class)
but i am not able to understand how it's use in our web method?
how ProcessMessage invoke ?
how we will pass a soapmessage in ProcessMessage?
if you have any idea or having any code so please sent me on my id rohitnegi09@gmail.com
Thanks
|
|
|
|
|
I developed on my PC a Website on .Net 2.0 and i am using SQL 2000.
After putting the files on the Host and trying to open the page i am getting:
When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)
If i am putting in my pc connectionstring the IP of the SQL Server 2000 prodcution then its working fine with my DB that i have uploaded.
this is my connectionstring:
connectionString="Data Source=XX.XXX.XXX.XX;Initial Catalog=MYDB;User id=MyUser;Password=MyPWD;
1.Why while running it from the production i am getting this error?
2.I have under App_Code the file Dal.cs. while this file holding my connection to the DB. when i am doing a temp Website without the DAL and connecting to the SQL Server Production directly then its working fine. do i need special treatment when its under Dal.cs?
3.Any other ideas????
Thanks,
Roy
|
|
|
|
|
Very common SQL 2005 error - has it been configured to allow remote connections (like the error says). google this error for loads of info...
|
|
|
|
|
this is my coding (in VB)
<code><%
Dim i
Dim j = 10
for i = 0 to j
%>
<asp:TextBox ID="txt<%= i %>" runat="server"></asp>
<%
Next
%></code>
it not working
can any one tell me why?
and how to make it work ?
|
|
|
|
|
I bet the code is doing exactly what it says. I expect you are trying to add textboxes. Try doing it in the code behind and adding the controls to the page.
Bob
Ashfield Consultants Ltd
|
|
|
|