|
Colin Angus Mackay wrote: I suspect many people either don't speak English all that well
Given English is not first language for many people, I don't think any one would hold that against them. What is annoying is the arrogance we see frequently. It is one thing to see broken English sentence, but completely different some one pushing his broken English to get away with unacceptable behaviour.
cheers
Yusuf
Oh didn't you notice, analogous to square roots, they recently introduced rectangular, circular, and diamond roots to determine the size of the corresponding shapes when given the area. Luc Pattyn[^]
|
|
|
|
|
Yusuf.A wrote: Given English is not first language for many people, I don't think any one would hold that against them.
I do try to take that into account. The grammarian in me wants to correct missing definite articles, incorrect verb congugations and so on. My main weakness is SMS/TextSpeak. I just can't let that one go.
|
|
|
|
|
As an additional follow up:
Yusuf.A wrote: some one pushing his broken English to get away with unacceptable behaviour
I'm not so sure about that. In some languages what is perfectly innocent to them seems aggressive to us. Take differences between Spanish and English for example.
In English I would walk in to a pharmacy and say "I would like a big packet of Enalapril 5mg, please". I tried that in Spanish once and I got looked at as if I was mad. In Spanish you would say "Give me a big packet of Enalapril 5mg". There is even the imperative verb tense for it - A set of verb congugations specifically for issuing commands. Its closest equivalent in English would be the drill seargent barking commands at the troops. To me it is very impolite. But if I translate what I think is polite into Spanish it turns out that level is reserved for addressing the monarchy.
I've also made an attempt at learning Dutch. What is interesting there is the definiteness of some phrases that turn out to be optional. For example, asking directions. The response you might get back is "You must turn left at the second traffic lights". In reality there may be many routes to your destination and you don't have to turn at that particular junction. It is just the structure of the language.
|
|
|
|
|
Colin Angus Mackay wrote: I'm not so sure about that. In some languages what is perfectly innocent to them seems aggressive to us. Take differences between Spanish and English for example.
that is true. I have been to many parts of the world and have seen/interacted with different cultures and languages. I have heard people talking their native languages which sounds like two drill sergeants going after each other.
But, what strike me is, most of that is in verbal only. In most cases, if not all times, written is quite different. There is less harsh tone. In addition, the same people when talking to outsider, specially using different language would tend to tone it down.
just my 2 cents
Yusuf
Oh didn't you notice, analogous to square roots, they recently introduced rectangular, circular, and diamond roots to determine the size of the corresponding shapes when given the area. Luc Pattyn[^]
|
|
|
|
|
try dr(0).getsqlstring();
and not try to use cid on multiple places in like this
and yes try the session value type casting to string maybe its a enough answer for your questions.
whats this means???:
<pre></pre>cid = dr(0)
cpass = dr(1)
con.Close()
Session("cid") = cid
|
|
|
|
|
is this correct syntax request.querystring("cid")????
is this enough to retrieve the value of session from other page!!!
or some other function is also required!!!
thanku
|
|
|
|
|
The code Request.QueryString("cid") is correct.
what i feel after reading ur posts is that u r not sure of what is a session, query string....
The statment Request.QueryString("cid") doesn't read value from session but it reads values from
Response.Redirect("details.aspx?cid=" &cid, False) that what u specified in the previous page.
If u r sure that cid has valuses frm previous page,then it is sure that u can retrieve that value using Request.QueryString("cid").
To read value frm session, use some variable var=Session("cid")
then the variable var wil contain the value wat u assigned in the previous page.
Moreover viewstate is used hold values pertaining to a single page.The value stored in viewstate can't be retrieved in next page.
Before using al these things, first go through basics like what is viestate,session,application variables, query string and so on. its helps u a lot..
Happy Coding...
|
|
|
|
|
Why didn't you explicitly declare this variable ?
Like: Dim ValueFromDB as Integer
Just my preference.
|
|
|
|
|
Why would I be programming in VB is the more pertinent question?!
|
|
|
|
|
because this is asp.net forum
Yusuf
Oh didn't you notice, analogous to square roots, they recently introduced rectangular, circular, and diamond roots to determine the size of the corresponding shapes when given the area. Luc Pattyn[^]
|
|
|
|
|
i have a filed saved in sql sever db and its data type is int.
i fetch that field from db using this code and assign it to a variable called 'ValueFromDB'
<br />
Private Sub GetMyIntDataTypeField()<br />
<br />
Dim Get_ MyIntDataTypeField_StrSQL As String<br />
Dim Get_ MyIntDataTypeField_ObjCmd As SqlCommand<br />
<br />
Dim strConn As String = ConfigurationManager.ConnectionStrings("MyConnString").ToString()<br />
<br />
<br />
Dim MyCon As SqlConnection<br />
MyCon = New SqlConnection(strConn)<br />
<br />
Get_ MyIntDataTypeField_StrSQL = "Select MyIntField from MyTable"<br />
<br />
MyCon.Open()<br />
<br />
Get_ MyIntDataTypeField_ObjCmd = New SqlCommand(Get_ MyIntDataTypeField_StrSQL, MyCon)<br />
<br />
ValueFromDB = Get_ MyIntDataTypeField_StrSQL_ObjCmd.ExecuteScalar<br />
<br />
MyCon.Close()<br />
<br />
End Sub<br />
after obtaining this value i need to perform a simple subtraction, like
a = ValueFromDB - 17.
after subtraction i am getting, a = -17.
is this because "ValueFromDB" from DB in string format?
|
|
|
|
|
Meax wrote: after obtaining this value i need to perform a simple subtraction, like
a = ValueFromDB - 17.
after subtraction i am getting, a = -17.
is this because "ValueFromDB" from DB in string format?
I think execute scalar returns the type of object.
Set a break point on the line of code to check. If you must use VB.Net I suggest setting option strict and option explicit to true.
Just cast the result as an integer.
I didn't get any requirements for the signature
|
|
|
|
|
I am using an Ajax ModalPopUp Extender where it shows on a button click. On button click,
it shows the popup modal extender and opens a Windows dialog box with Open Save and Cancel on top.
On click of Open or Save or Cancel, I want to hide the popup modal extender.
How can i achieve this.
SAJAN A PILLAI
ASP.NET,C#.NET Programmer
BANGALORE
"Winners don't do different things. They do things differently. ...
|
|
|
|
|
|
Here is the simple code
<%@ Page Language="VB" AutoEventWireup="true" CodeFile="Default.aspx.vb" Inherits="_Default" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Untitled Page</title>
</head>
<body>
<form id="form1" runat="server">
<br />
<asp:ScriptManager ID="ScriptManager1" runat="server" />
<asp:Timer ID="Timer1" runat="server" Interval="5000" OnTick="Timer1_Tick">
</asp:Timer>
<br />
<asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
<Triggers>
<asp:AsyncPostBackTrigger ControlID="Timer1" />
</Triggers>
<ContentTemplate>
<asp:Image ID="BannerImage" runat="server" ImageUrl="~/Banners/Banner_1.gif" />
</ContentTemplate>
</asp:UpdatePanel>
</form>
</body>
</html>
Here is the code behind
Partial Class _Default
Inherits System.Web.UI.Page
Protected Sub Timer1_Tick(ByVal sender As Object, ByVal e As System.EventArgs)
Dim n As Integer = New Random().Next(1, 2)
BannerImage.ImageUrl() = "banners/Banner_" + n.ToString + ".gif"
End Sub
End Class
Its line for line code microsoft ajax video # 24 theirs works mine doent
|
|
|
|
|
learningman wrote: Its line for line code microsoft ajax video # 24 theirs works mine doent
what do you meant does not work? what error(s) do you get? be specific
Yusuf
Oh didn't you notice, analogous to square roots, they recently introduced rectangular, circular, and diamond roots to determine the size of the corresponding shapes when given the area. Luc Pattyn[^]
|
|
|
|
|
i have 2 banner ads only the 1st one comes up!
|
|
|
|
|
|
Well, it seems you need some *cookies*, would you like milk with that?
Joking aside, you need to read a bit more about cookies. Here is an overview of asp.net cookies[^]
Yusuf
Oh didn't you notice, analogous to square roots, they recently introduced rectangular, circular, and diamond roots to determine the size of the corresponding shapes when given the area. Luc Pattyn[^]
|
|
|
|
|
hi
i am getting one problem when i am running asp.net 2.0 project it is taking lot of resources at iis. any settings i want to change in web.config. if i want to change which i want to write.
tell me in which scenorious it will take .
Please tell as early as possible.
bye....
|
|
|
|
|
guptha19sept wrote: it is taking lot of resources at iis
what do you mean by that. Be specifc. Is it taken more memory? CPU cycle? and how did you found it is IIS?
Yusuf
Oh didn't you notice, analogous to square roots, they recently introduced rectangular, circular, and diamond roots to determine the size of the corresponding shapes when given the area. Luc Pattyn[^]
|
|
|
|
|
there is a question...
that i ues the Controls - ActiveReport 2.0 to print
but when i use Adobe Reader 9.0 to view, the page is exactly.
there are 24 details on every page.
and when i use Adobe Reader 8.0 to view ,the page is not right.
and there are 26 details on every page.
i don't what shall i do.it make me so comfused..
can somebody help me,
thanks you so much!!!!!!!!
Study...
|
|
|
|
|
I have tried but I don't whether I am right or wrong.
Following is my coding :
Page Load
If Not (Page.IsPostBack) Then
Dim dataSource As DataView
'Retrieve item from cache if anything is not there then we have to add to the cache
dataSource = Cache("CheDataSet")
If dataSource Is Nothing Then
Dim Conn As SqlConnection
Dim Cmd As SqlDataAdapter
'Dim myConnection As New SqlConnection(ConfigurationSettings.AppSettings("con2"))
Cmd = New SqlDataAdapter("select * from tblcutomer2", myConnection)
Dim ds As New DataSet
Cmd.Fill(ds, "clientadd")
dataSource = New DataView(ds.Tables("clientadd"))
Cache("CheDataSet") = dataSource
CacheMsg.Text = "Dataset was Created directly from the Datebase. Here the Cache was not used but the Cache was Created,so check for the performence next time."
Else
cacheMsg.Text = "Dataset was Retrieved from cache which was created earlier."
End If
ddlcus.DataSource = dataSource
ddlcus.DataTextField = "clientname"
ddlcus.DataValueField = "intcustid"
ddlcus.DataBind()
ddlcus.Items.Insert(0, "-Select-")
End If
-----------------------------------------------------------------------------------
Selected Index event:
---------------------
Dim cmd As New SqlCommand("select intcustid,clientadd as address from tblcutomer2 where intcustid='" & ddlcus.SelectedItem.Value & "' ", myConnection)
myConnection.Open()
Dim myDataReader As SqlDataReader
myDataReader = cmd.ExecuteReader()
While (myDataReader.Read()) = True
txtcusadd.Text = myDataReader("address")
End While
myDataReader.Close()
myConnection.Close()
But it takes more time to display address of the selected customer.Can you plz suggest me to reduce the time
|
|
|
|
|
First: this seems a fellow up post. Please don't start new post. This will not make your issue clear to people.
I have to dig out to find what what your first post, here[^] I found it.
indian22 wrote: But it takes more time to display address of the selected customer
Look, you are trying to load 10000 into drop down. Of course it will take time.
indian22 wrote: Can you plz suggest me to reduce the time
What is the need to show that much data into a drop down. Can you reduce the amount to show. Even if you could load all, imagine scrolling through all that data.
Yusuf
Oh didn't you notice, analogous to square roots, they recently introduced rectangular, circular, and diamond roots to determine the size of the corresponding shapes when given the area. Luc Pattyn[^]
|
|
|
|
|
Hi,
I'm having a problem with JavaScript.
When I use javascript locally everything works fine.
But on the server it does not even come to JavaScript function?
Is there anyone who faced this problem before?
Regards,
codddy
|
|
|
|