|
Thanks for the reply.
Well I am using windows application for getting cache data.
Update Cache data and then want to store that table on servers database which is updated locally.
Thanks
sjs4u
|
|
|
|
|
This question STILL has nothing to do with ASP.NET. You have a windows program, and I expect you will have a webservice which will upload it's data to a server. There's no ASP.NET involved here, even if there's an ASP.NET website on the other end of all this code.
I would just write a webservice which takes data and runs it into the database, I wouldn't be passing a whole database through the web, I'd just do an update as needed.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
With Javascript how do I set the focus to Text2 in ctl00_ContentPlaceHolder1_TimeEntryBox2_Panel1?
<div id="ctl00_ContentPlaceHolder1_TimeEntryBox1_Panel1" style="border-color:#7F9DB9;border-width:1px;border-style:Solid;width:89px;">
<input id="Text2" name="Text2" type="text" onkeyup="TimeEntryMinutesOnClick(this)" onblur="TimeEntryMinutesOnBlur(this)" style="border: 0px none #FFFFFF; width: 12px" maxlength="2" />
<input type="hidden" id="ctrlPrefix" name="ctrlPrefix" value='ctl00_ContentPlaceHolder1_TimeEntryBox1_'>
</div>
<div id="ctl00_ContentPlaceHolder1_TimeEntryBox2_Panel1" style="border-color:#7F9DB9;border-width:1px;border-style:Solid;width:89px;">
<input id="Text2" name="Text2" type="text" onkeyup="TimeEntryMinutesOnClick(this)" onblur="TimeEntryMinutesOnBlur(this)" style="border: 0px none #FFFFFF; width: 12px" maxlength="2" />
<input type="hidden" id="ctrlPrefix" name="ctrlPrefix" value='ctl00_ContentPlaceHolder1_TimeEntryBox2_'>
</div>
|
|
|
|
|
I am the voice of inexperience but I'm pretty sure it's bad practice to have more than 1 control on the page with the same ID. Can't you give each control a unique ID and use Javascript's .Focus method?
|
|
|
|
|
The HTML is coming from a User Control. Two of the same User Control are on the page. When viewing the source from the browser this is what it looks like.
|
|
|
|
|
If you have the source code you can chaneg the ID with meaning full name or use the ID that you are getting from ViewSource for focusing.
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
|
Just find the ID of the control using GetElementByID method and use ControlObject.Focus() method to set the foucs.
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
But he has 2 controls with the same ID. Will this approach still work?
|
|
|
|
|
Liqz wrote: But he has 2 controls with the same ID.
Why ? It should not be.
Or you can first run the application, from view Source what exact ID is generating for that page control then use Control.Focus(). This will work.
But this is not a good approch.
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
In his markup he has 2 HTML input controls both with the ID of "Text2". I was under the impression that this was not good. If he calls 'Text2.Focus' from his Javascript, which input control will get the focus?
|
|
|
|
|
I guess it would the first one. but he need to find out the id using GetElementbyID, Text2.Focus(), will not work.
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
When I use GetElementById("Text2") it always gets the one in within ctl00_ContentPlaceHolder1_TimeEntryBox1_Panel1. How do I get the one that is within ctl00_ContentPlaceHolder1_TimeEntryBox2_Panel1?
|
|
|
|
|
hi,
in my gridview i have some bound columns,and some template columns.and three columns dynamically added to the same gridview on the button click event.
code for dynamic created columns like this
For Each col As DataColumn In dtttt.Columns
For Each row As DataRow In dtt.Rows
If col.ColumnName = row.Item("CODE") Then
Dim customField1 As New TemplateField()
customField1.ShowHeader = True
customField1.HeaderTemplate = New Gridviewtemplate(DataControlRowType.Header, col.ColumnName, "", "label")
customField1.ItemTemplate = New Gridviewtemplate(DataControlRowType.DataRow, "", col.ColumnName, "Textbox")
DGV1.Columns.Add(customField1)
End If
Next
Next
DGV1.DataSource = dtttt
DGV1.DataBind()
but when the time of accessing the values of gridview except dynamically created template column values are not working
For i As Integer = 0 To DGV1.Rows.Count - 1
For count As Integer = 9 To DGV1.Columns.Count - 1
Try
dggrow = DGV1.Rows(i)
Select Case Incomes(Index)
Case 1
Earnings += CInt(dggrow.Cells(count).Text * Days)
Case 2
Earnings += CInt(dggrow.Cells(count).Text)
Case 3
Earnings -= CInt(dggrow.Cells(count).Text)
End Select
Catch ex As Exception
dggrow.Cells(count).Text = 0
End Try
Index += 1
Next
Next
dggrow.Cells(count).Text- here its not getting the value of dynamic created template column value.
how to access this value.anyone help me with this.this is very urgent.
|
|
|
|
|
Hi
As iam new to asp.net3.5 so i have some basic doubt please clarify my doubt with some example if possible,my question is WHAT IS THE USE OF DATA SOURCE,DATA BIND(),FILL(),DTATSET,DATAADPTER IN datagridview and how to use it.
|
|
|
|
|
Here's some advice.
1 - buy a book and read it
2 - learn to use google, especially when you have no idea what you're doing, because your questions right now are so basic and lacking in any sort of understanding, that you need to read articles, not forum replies
3 - before you post in a forum, read the guidelines.
your question tells me that you really have no idea about anything you're looking at. I'd assume that you're teaching yourself to be this lacking in resources, but experience tells me that the odds are good that someone is actually paying you to not know anything about ASP.NET. I hope that is not true. Either way, if you don't have a teacher, you need to buy a good book and work through it. I don't know if you know anything about programming, if you do not know C# or VB.NET, you should learn that first, because ASP.NET is a framework on top of .NET, and you should not learn both at the same time. Plenty of people try to do that, they end up asking clueless questions for hapless and eventually furious clients, whose projects never quite work, and are poorly written and unmaintainable.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
If you google it, you'll get many good articles about all these stuff.
|
|
|
|
|
This commands are used to get data from database and bind it to gridview or other list controls.
|
|
|
|
|
lipun wrote: WHAT IS THE USE OF DATA SOURCE,DATA BIND(),FILL(),DTATSET,DATAADPTER IN datagridview and how to use it.
Using ADO.NET for beginners[^]
This will help you
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
Hi,
I am able to place the sharpmap on Google map in .net environment. But when i am porting it to the sharepoint environment it is not working(sharp map is not getting rendered). Any help?
|
|
|
|
|
i m taking three fields in database.like id,name,degination and .....etc others
but we want that when we show data according to these fields then allthree filds come in single dropdown
as 0111-vivek-developer.
how it is possible,plx help me soon.
thanks and regards
vivek
|
|
|
|
|
Why don't you use Grid instead? It doesn't look good in DropDownList.
|
|
|
|
|
The neatest way I can see is if you have a list of a struct, and the struct has a property which returns the three properties in the format you want.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
U can Do it in two ways u can directly retrive the data from the database in the form of store procedure
or
U can take the three fields i.e. id,name,degination from the database and while displaying u can combine them .
DropDownDrivers.DataSource = Reservation.GetDriver();
DropDownDrivers.DataTextField = "id"+"-"+"name"+"-"+"name";
DropDownDrivers.DataBind();
DropDownDrivers.Items.Insert(0, "Select");
and if u Insert the above data again u can use separotor operator as "-"
and u can take the value
string[] data1 = transkey1.Split('-');
string Id = data1[0].ToString();
string name = data1[1].ToString();
string delegation = data1[2].ToString();
If It Helps Let Me Know
|
|
|
|
|
Hi
I have implemented some drag n drop functionality using the example by WickedCode with their colour dragger, the dragging and dropping works perfectly however....
I have implemented a callback facility using so that when the user drops the object on its target I can perform the relevant update on the server refresh the screen and continue and this is where the problem lies. After the callback has completed my drag and drop no longer works!
I'm guessing it something to do with the Javascript code gaining a reference initially to the drag and drop objects but then when I perform the callback those objects get recreated within the updatepanel and although they have the same id the reference is obviously lost??
Has anybody got any references, links to helpful documentation on this subject as it seems quite sparse!
Thanks in advance
Andy
|
|
|
|