|
Hello,
Firstly, I am sorry if it is dumb question.as I am practicing, in SQL server 2008 I create a database.then in VS2008, I right click in the node of Server Explorer and add the database to the project.
1) My question is, do I need to add the address in Web.config;
2) Do I have to add the database file in App_Data folder?
thanks for your help, in advance.
|
|
|
|
|
|
cld u please give me some link
|
|
|
|
|
with which language are you trying to connect the database ? are you using sql server ?
|
|
|
|
|
Before I forget, using vb 2005 and running IIS on my XP Pro pc...
Ok I'm working on a new intranet site for my company and running into a problem with the calendar. I have some info in a SQL Server 2008 Express database and I'm using that to "list" what days a location is working late. The problem is when going from December to January.
objConnection.OpenConnection()
'sql = "Select * From brewerLate Where month = 10"
sql = "Select * From brewerLate Where (month) = '" & intCurMonth & "'"
da = New SqlDataAdapter(sql, objConnection.cnn)
da.Fill(ds, "brewerLate")
sql = "Select * From portlandLate Where (month) = '" & intCurMonth & "'"
da = New SqlDataAdapter(sql, objConnection.cnn)
da.Fill(ds, "portlandLate")
objConnection.CloseConnection()
'Dim brewer As String = "October 01,October 15,October 29"
brewer = ds.Tables("brewerLate").Rows(0).Item(1)
days = brewer.Split(","c)
For Each strDay In days
If e.Day.Date = strDay Then
e.Cell.Controls.Add(New LiteralControl("<p>Brewer Working!</p>"))
e.Cell.BorderColor = Drawing.Color.Black
e.Cell.BorderWidth = 1
e.Cell.BorderStyle = BorderStyle.Solid
e.Cell.BackColor = Drawing.Color.LightCyan
End If
Next
intCurrentMonth is retreived from the Calendar1_VisibleMonthChanged event and for the initial load (Dim intCurMonth As Integer = Now.Month). All the data in the database is in the same format, the only difference is the month name. I was able to step through the code and it is retreiving the right data, For example strDay would equal January 07 but it will blow right past it.
This is in Calendar1_DayRender, almost forgot to mention that...
Thanks in advance!
modified on Thursday, October 7, 2010 2:45 PM
|
|
|
|
|
Hi All, I am winform developer for my entire 2 and half years of my working life. Now I want to do some web development. I don't know where to start.
any help will be helful.
thanks.
modified on Friday, October 8, 2010 8:16 AM
|
|
|
|
|
You could start by reading the forum guidelines at the top of this list. "New" is not appropriate or informative subject line. Probably why you have been ignored until now.
As for ASP.NET, how did you start with WinForms?
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
Sorry for the comfusion. I hope I remember it.
This is a learning site for developer but it does not teach only technology but also
other things as well.
thanks
|
|
|
|
|
|
how we create new folder on runtime web site.
|
|
|
|
|
System.IO.Directory.CreateDirectory(path)
You now have plenty of rope. Try not to hang yourself with it.
|
|
|
|
|
hi
how to get the functionality of tracking users page tracking and giving users to select which page they need to back track.
for example:
Home-> Page 1->Page 2->Current Page
|
|
|
|
|
Are you looking for Sitemap?
|
|
|
|
|
Yes i am looking for it but will the sitemap will have the user page traversing history.
|
|
|
|
|
I have a gridview in my application. I want to give underline in all the rows that i have i dont want the border in the grid.
|
|
|
|
|
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="false">
<Columns>
<asp:TemplateField ItemStyle-Font-Underline="true">
<ItemTemplate><%# Eval("country") %></ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
Regards
madhu k
|
|
|
|
|
Sup guys.
I'm 99% sure this is impossible but my boss keeps asking me about it so I've been researching but to no avail. I really need to verify whether it's possible or not so here goes: I have a webservice which returns a LOT of data in a list of a complex object. Is it even possible to have the webservice push returns?
For example: The webservice loops all objects and does something awesome with each. When it finishes with each object it adds it to the final list. How possible is it to push the objects to the front one at a time?
Thanks guys.
In life truth does not matter. What really matters is what others believe to be the truth. (The Up and Comer - Book)
|
|
|
|
|
I don’t know whether it will solve your purpose but think about a reverse way.
Like suppose you have a large dataset to be returned from webservice. Use a thread in your class to fetch data page by page. Ask your webservice to return the first page. After the first page returned raise a event to your UI to represent the data and then ask your web service to fetch the next data page.
However it all depends your requirement.
|
|
|
|
|
Thanks a lot for your reply. I understand what you mean and will try to suggest it
Thanks.
In life truth does not matter. What really matters is what others believe to be the truth. (The Up and Comer - Book)
|
|
|
|
|
I don't think it's possible through webserice.Connecting through webservice is stateless, ie you can not get multiple response from single request.
So why dont you make multiple request to service ie for every object, there is one request. But obiously this is not good approach.
|
|
|
|
|
Hi,
I have to validate the control in server side and have to find which control value is wrong. Ex: im passing user name and password. if password is wrong it should find only the password is wrong, (normally it shows Username or Password is wrong).. Please help me..
|
|
|
|
|
U should 1st check if UserName exists in DB if no then return error accordingly.
If UserName exists then check for the authenticity of the password for that particular user.
U can write a stored proc to check for these conditions
Tej Aj,
http://opexsolution.com/forum/
Fan of:
http://www.abtstudioz.com/
|
|
|
|
|
Gobi.madura wrote: im passing user name and password. if password is wrong it should find only the password is wrong, (normally it shows Username or Password is wrong)..
Normally, most of the sites doesn't say whether any specific (username/ password is wrong. They show one of it wrong, might be for hiding the identity. if some hacker try to login with the credential, s/he would not come to know, what is wrong Username or Password.
But if you want to implement, then you can implement as Tej suggested.
|
|
|
|
|
Ya Thank you. I understood the security problem but the requirement is the following :
Tej said checking username and then password, I hope it makes 2 round trip to verify the username and password.
So that i created a array list and added the username and password in it
And concadinated those two values seperated by comma and stored in a string vriable and passed the string to the DB(For avoiding multiple round trip). It works perfectly for the username and password verfication.
But the requirement is to validate multiple text box in server side, When i go for the same approach for this DB doesn't know Which control holds what value and while returning back am facing control mapping problems.
Please do the needful
|
|
|
|
|
Gobi.madura wrote: But the requirement is to validate multiple text box in server side, When i go for the same approach for this DB doesn't know Which control holds what value and while returning back am facing control mapping problems.
See, you have to validate the multiple textboxes, So you have to have some mapping between the textboxes and the data in DB. I didn't get without this mapping how are you validating it( Might be I didn't get your requirement fully).
Just have some data in some pair ( like tb1,tb1data) to map the textbox and data and according validate and populate.
|
|
|
|