Groups | Blog | Home


Archived Months
June 2003
July 2003
August 2003
September 2003
October 2003
November 2003
December 2003
January 2004
February 2004
March 2004
April 2004
May 2004
June 2004
July 2004
August 2004
September 2004
October 2004
November 2004
December 2004
January 2005
February 2005
March 2005
April 2005
May 2005
June 2005
July 2005
August 2005
September 2005
October 2005
November 2005
December 2005
January 2006
February 2006
March 2006
April 2006
May 2006
June 2006
July 2006
August 2006
September 2006
October 2006
November 2006
December 2006
February 2007
March 2007
April 2007
May 2007
June 2007
July 2007
August 2007
September 2007
October 2007
November 2007
December 2007
January 2008
February 2008
March 2008
April 2008
May 2008
June 2008
all groups > asp.net > december 2004 > threads for monday december 13

Filter by Day: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31

Two object on the same datagrid row
Posted by etantonio NO[at]SPAM libero.it at 12/13/2004 11:58:13 PM
Good Morning, I've used a datagrid to show some web template images that you can see at the address http://www.etantonio.it/IT/Web/TemplateSiti/index.aspx my idea is to put two photo on the same row, I know this is possible with the datalist but how I can achieve the same using a datagrid ?...more >>


asp.net only on IIS?
Posted by Rena at 12/13/2004 11:27:25 PM
Hi all, I would like to know the portablilty of ASP .net is it only work on IIS? which other web-server are also supported and where can i found the document. Thanks a lot. Rena. ...more >>

Saving text to a field in access!
Posted by Lars Netzel at 12/13/2004 10:16:45 PM
Maybe this has more to do with access than anythign else but when I tried to say to a field in Access via ASp.NET I got an error saying that I was trying to insert to many carachters, more than 255. I than went into access and tried to change the fieldsize to more than 255, but it wouldn't let...more >>

Changing style attributes of HTML file upload control
Posted by Charlie NO[at]SPAM CBFC at 12/13/2004 10:11:50 PM
Using the HTML file upload control gives you input textbox and a command button. How do you change appearance and caption of button? Setting style attributes doesn't appear to work completely. Is there a javascript function that will open a file browser window? This way I could fully custom...more >>

How to expire a login
Posted by Alfred Tascon at 12/13/2004 9:58:50 PM
I want to eliminate multiple logins by expiring an existing login whenever a user logs in. This, I was thinking, will eliminate multiple logins as well as cater for browser crashes. So to put this into effect I have to find any current sessions(authcookies?), if they exist, that user id migh...more >>

Nested Forms in ASP.NET
Posted by ~~~ .NET Ed ~~~ at 12/13/2004 9:57:49 PM
Hi, As you all know when an ASP.NET web form is created that will include web controls and such, it contains a FORM that that identifies the web form and its containing controls. Well, I have a web form who has several other (user & custom) controls, these are enclosed within the standa...more >>

How to make this change in a dataSet? Thanks.
Posted by Miguel Dias Moura at 12/13/2004 8:54:02 PM
Hello, I have this dataSet created in Dreamweaver: <MM:DataSet id="dsDocuments" runat="Server" IsStoredProcedure="false" ConnectionString='<%# System.Configuration.ConfigurationSettings.AppSettings("MM_CONNECTION_STRING_conBonsAlunos") %>' DatabaseType='<%# System.Configuration.Conf...more >>

Changing Domain broke IIS!
Posted by Carl Howarth at 12/13/2004 8:36:36 PM
Hello there, Hopefully someone can help! We have recently moved onto a different internal domain server at work and since then IIS has packed-up on our development machines. We get a 'Server Application Unavailable' error, and in the error log have the following message: aspnet_wp.exe ...more >>



SQLConnection asp.net Best Practices?
Posted by mid at 12/13/2004 7:51:28 PM
Hello!, What is the Best Practice about dealing with a sqlconnection while page executes? Let me explain: Supose you have several dropdownlists, datagrids, etc, in the same page, that need to retreive data from sql server. Right now I open/close a sql connection for each object that I want t...more >>

Closing child window when opening a new Window
Posted by Patrick Olurotimi Ige at 12/13/2004 7:09:05 PM
Is there a possibility to close a Window after pressing a button to open a new window? Thx *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it!...more >>

Full Site Walkthrough Books
Posted by NathanV at 12/13/2004 7:03:01 PM
Does anyone know of books that contain the full solution for an asp.net site? I have both the Wrox "ASP.NET Website Programming" books by Kevin Hoffman but I'm not a huge fan so far. I've read a fair share of asp.net books but I'm looking for something that documents an entire solution. ...more >>

Saving textbox data as .txt file?
Posted by Paul Evans at 12/13/2004 6:47:23 PM
Hi, Can anyone help me? I have two text boxes, one single-line and one multiline. I wish to save the text within the multiline textbox as a txt file, with a file name by the text in the single-line textbox. Does that make sense? If the single-line textbox is 'helpme', I wish to create a ...more >>

Java Script.....
Posted by Jonathan Smith at 12/13/2004 6:38:20 PM
Is there any equivalent function in Java script similar to Select Case in Vb.Net? I usung IE%+. Thanks, Jonathan ...more >>

Relationship of "Requests in Application Queue" and ASP.NET application performance / stability
Posted by domtam NO[at]SPAM hotmail.com at 12/13/2004 5:46:00 PM
Hi all, We've just migrated to IIS 6.0 / Windows Server 2003. We are now experiencing some stability problem what we did not experience in IIS 5.0 / Windows 2000 Server. Our ASP.NET application is running in a web-farm environment of multiple web servers. We have been using "Performance Monit...more >>

Using FindControl() to access controls created by javascript
Posted by Lau Lei Cheong at 12/13/2004 5:39:30 PM
Hello, I'm using javascript's insertAdjacentHtml() to insert images to the webform at runtime. This runs fine(image successfully displayed at the browser) but when I tried to access the control's src using FindControl() function in the code-behind, it seems that the control doesn't even ex...more >>

Hidden validators cause javascript error
Posted by Ian Cox at 12/13/2004 5:31:35 PM
I have a web form that contains a Datagrid. This grid has a number of columns, one of which contains a text box and validator for that text box. Everything works fine, when I press the "Save" button the validator works as expected...however... ....I want to hide certain columns under certain c...more >>

Overloads modifier
Posted by Fabio Negri Cicotti [MCP] at 12/13/2004 4:44:02 PM
Hi all. How could I convert the VB.NET "Overloads" modifier to C#? Public Overloads Property DataSource() As Object End Property Grateful. -- Fabio Negri Cicotti Software Engineer ...more >>

How to create this string? Thank You.
Posted by Miguel Dias Moura at 12/13/2004 4:35:40 PM
Hello, I am calling an ASP.NET / VB as follows: search.aspx?search=asp%20book%20london Then I create a string with the keywords like this: Dim keywords() As String = Request.QueryString("search").Split(CChar("")) It's not working. What am I doing wrong? I also need to create a new st...more >>

How can i validate this?
Posted by Fernando Lopes at 12/13/2004 4:24:46 PM
Hi, I have a combo (DDL1) and a textbox (TXB1). So, if the selecteditem of DDL1 is None (selectedindex =0) the validator don't need to check if there's anything in TXB1. If DDL1 selecteditem has anything different of None, the validator need to check if TXB1 was fill. Someone understand me...more >>

runat="server"
Posted by Lubomir at 12/13/2004 4:15:02 PM
Hi, I have a BoundColumn in a DataGrid: <asp:BoundColumn DataField="lastname" SortExpression="lastname" ReadOnly="True" HeaderText="Last Name"></asp:BoundColumn> Column is sorted. I am wondering why this code is working properly as there is missing the statement runat="server". When...more >>

How to I do a http post from within a webform
Posted by Phillip N Rounds at 12/13/2004 4:11:00 PM
I have a webform, from which I have to submit info to another site. Their instructions are to have a html form, with the following as the submit: <form method="post" action="http://www.theirsite.htm"> <input type=hidden name="field1" value="value1"> <input type=hidden name="field2> value="valu...more >>

Frontpage server extensions required?
Posted by dw at 12/13/2004 3:47:02 PM
Hello, all. We want to develop our ASP.NET apps on our networked test server, but have heard that Frontpage Server Extensions must be installed. Is this true? Thanks. ...more >>

Dynamic Display help
Posted by Kiran B. at 12/13/2004 3:38:22 PM
hi, i have a search.aspx page and from there it displays and go to searchresualt.aspx... Is there a way I can display an animation ..or something else while it's searching...coz; my search takes a long time about 55 sec or so because of the data.... Thanks ...more >>

Date Convert
Posted by Islam Elkhayat at 12/13/2004 3:31:52 PM
In my C# Webapplication.. I enter the date in a textbox using popup Calender in the format MM/dd/yyyy.. when i retrieve date from Sql server for updating using datarow to fill the textbox the date format dd/MM/yyyy hh-mm-ss i want to convert it back to the original format & ommit the time.. ...more >>

Session Question
Posted by Patrick Olurotimi Ige at 12/13/2004 3:29:05 PM
I'm tracking usersOnline by adding this code below in my Global.asax file.But i noticed that when a user logs in it keeps adding a new user which thats fine..but when a user logs of it still retains the user(session) for sometime instead of reducing it by one! I'm thinking of maybe i should ch...more >>

AutoPostBack erases Validator's error message
Posted by ChInKPoInt CumPeeWaRe [No MCSD] at 12/13/2004 3:16:55 PM
I have a (1) Textbox and (2) Dropdownlist (1) is using RequiredFieldValidator (2) is using AutoPostBack Now, the problem is: when (2) is fired up and it reloads the page which erases the error message displayed in (1). Any solutions or tips to solve this problem? C.P. [No MCSD] ...more >>

Adding Attributes to buttons within datagrid
Posted by Craig G at 12/13/2004 3:07:18 PM
i was using the following on a serverside button on a form If (Not Page.IsPostBack) Then Me.BtnDelete.Attributes.Add("onclick","return confirm('Are you sure you want to delete?');") End If but was wondering how i would go about doing the same for a button within a column? i cannot see bt...more >>

Obfuscation
Posted by Yama at 12/13/2004 3:05:41 PM
This is a multi-part message in MIME format. ------=_NextPart_000_0006_01C4E125.36494EB0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi ALL, VS.NET 2003 comes with standard version of PreEmptive's Dotfuscator. I = have used it but I wanted...more >>

About ThreadPool.QueueUserWorkItem and ThreadPool.RegisterWaitForSingleObject
Posted by Henri at 12/13/2004 2:34:16 PM
Might sound a stupid question but need to be sure: When you call ThreadPool.QueueUserWorkItem and ThreadPool.RegisterWaitForSingleObject passing a New object as state e.g.: ThreadPool.QueueUserWorkItem(AddressOf MyCallBack, New MyObject(myArg1, myArg2)) the new object MyObject is instanti...more >>

Session stuff in app_xxx events
Posted by Jon at 12/13/2004 2:21:01 PM
I think I've found my problem, but not sure what to do about it. In the application_start, I have an operation that is erroring (on purpose for my testing procedures). In the Application_error event, I am trying to set a session var equal to the error message. However, this causes the appl...more >>

Multiple primary keys with a datagrid?
Posted by Dave at 12/13/2004 2:07:05 PM
Hi, Maybe I'm missing something with the DataKeyField attribute of a datagrid but it seems that it's somewhat limiting since this only allows you to specify one field as the key. I have a table that has two keys and it seems you need this value to find the corresponding record in the Da...more >>

Diagram - Flow Chart type Component?
Posted by Lucas Tam at 12/13/2004 1:56:08 PM
Are there any free diagramming components to build flow chart type graphs for .NET - in particular one that works with ASP.NET? If not, can anyone recommend one of the commerical components over another? Northwood GoDiagram? SyncFusion? etc? Thanks! -- Lucas Tam (REMOVEnntp@rogers.com...more >>

RegularExpressionValidator allows invalid input
Posted by Andy Fish at 12/13/2004 1:52:15 PM
Hi, I have a RegularExpressionValidator with the following regexp ^[0-9]{0,3}$ It mostly works, but allows a value consisting only of spaces to pass right through. Leading and trailing spaces (e.g. " 8" in the input) are correctly rejected. TIA for any ideas Andy ...more >>

New ASP.NET Web Application
Posted by Brian at 12/13/2004 1:29:51 PM
Help! How do I open a new ASP.NET Web application? It seems to want to point to an HTTP site. Is this normal or can I create it locally? If I try to do it locally, it wont let me enter a project name. Thanks, Brian ...more >>

Q: ODBC connection
Posted by JIM.H. at 12/13/2004 1:25:05 PM
Hello, Here is my function: Private Sub myLiveConn() Dim strConn As String = "Driver={Microsoft Visual FoxPro Driver};UID=;SourceType=DBF;SourceDB=F:\Report Data\appt.dbf;Null=No;Deleted=Yes;Exclusive=No;Connect Timeout=10" Dim Conn As OdbcConnection = New OdbcConnect...more >>

HTMLInputFile (Posted) file: Object reference not set Error
Posted by mravichandran NO[at]SPAM gmail.com at 12/13/2004 1:18:55 PM
Dear Readers, I am trying to take image files and store them in SQL server. as a 1st step, I am trying to read them from a directory on the network. in the declaration section (below the class declaration) I have: protected System.Web.UI.HtmlControls.HtmlInputFile ImageFile; inside the...more >>

dynamically calc edit field in datagrid
Posted by hansiman at 12/13/2004 1:16:27 PM
In edit mode in a datagrid I have three textboxes. The third textbox is the product of the first and second textbox. onkeyup event on first and second textbox pass values of first and second textbox to javascript. How do I pass the third textbox as an object so I can multiply first and second...more >>

Can you use .Net to produce dynamically created static websites.
Posted by Joel Barsotti at 12/13/2004 1:13:58 PM
What I mean here is that I have to build an HTML interface for a CD catalouge. All the contents for this catalouge are in a DB right now for the current ..net website. Since the CD catalouge will contain 200 plus elements I'd like to leverage the DB to help create the content for the CD, bu...more >>

Displaying Euro Symbol
Posted by SalamElias at 12/13/2004 1:13:05 PM
I followed instructions in MSDN help articles and wrotethe folowing code in order to display numeric numbers with Euro symbol as follows : ---------------------------- Dim OutString As [String] = "" Dim frCulture As New CultureInfo("fr-FR", False) Thread.CurrentThread.Current...more >>

ASP.NET AutoPostBack
Posted by ChInKPoInt [No MCSD] at 12/13/2004 12:54:26 PM
I am using AutoPostBack for my forms, but when the form gets longers (needs to scroll down) every time AutoPostBack makes the page go back to the TOP. Is there any trick to make the form jump to the last position? like using Anchor <a name="xxx"> and "#" in Href.. something like that? C.P. ...more >>

variables in Server Controls
Posted by dinodod NO[at]SPAM gmail.com at 12/13/2004 12:45:01 PM
Instead of using <asp:sqldatasource selectcommand="select * from Table1">, how can I use a variable in place of the 'Select * from Table1' ? ...more >>

Searching a Table Column
Posted by Justin at 12/13/2004 12:41:02 PM
Using an SqlDataReader what is the best way to determine if a table column has specified value? Thanks, Justin....more >>

Session State Question?
Posted by Leon at 12/13/2004 12:04:13 PM
Is it a good idea to load a user username/email and password into session state if you will be validating information against those credential through-out the use of the web application? or is it best or more secure to just get that information from the database when needed? ...more >>

Using font not installed on server
Posted by ryan.mclean NO[at]SPAM gmail.com at 12/13/2004 12:04:07 PM
Hi all! I was hoping someone could help me out. What I would like to do is use a font that is not installed on the server, but does reside in my local web. Does that make sense? I would like to take the responsibility off the server administrator and put it back on the developers. I realize...more >>

How do I postback values to another page?
Posted by Harold at 12/13/2004 11:33:39 AM
I want to click a button on page 1 and have a page 2 open. Page 2 is a lookup and should return the value and text back to the page 1 and close. On page 2 I set the postbackURL to page1 and when I click the close button the current page (which should close) loads page1. How do I send the valu...more >>

ASP.Net and online payment processing
Posted by excelleinc.com at 12/13/2004 11:28:55 AM
Hello, One of our clients wants from us to implement online payment option trough his web-site which we developed and we're hosting it. I'm not sure if this is right newsgroup but would like to have few more information on how-to, maybe some useful links and your experiences. We're usin...more >>

get image with httpwebrequest to stream to byte array to base64
Posted by Esref DURNA at 12/13/2004 11:07:03 AM
I was make an function which reads file from windows path and read that image with bytereader I able to make it, Then I try to get that image from httpwebrequest but I get convert'ing problems stream to string to byte[] to base64? HttpWebRequest myRequest = (HttpWebRequest)WebRequest.Creat...more >>

2 validation groups problem
Posted by john morales at 12/13/2004 11:05:10 AM
Hi guys, I have a problem and i know there must be a solution for this as it is such a basic common practice in asp.net development. Scenario: i have many webforms in a site, most with two different custom controls, one is a login module, the other is a generic data entry module. When th...more >>

Client-side Error - How To Determine What Went Wrong
Posted by Kenny at 12/13/2004 11:03:59 AM
I have an aspx page (containing a framesets) that appears just fine in the browser (IE6). But there is a little yellow "caution" icon that shows up at the bottom of the browser window with a message, "Done, but with errors on the page". How can I figure out what went wrong? Thanks! ...more >>

Connecting to LDAP
Posted by Ganesh Ramamurthy at 12/13/2004 11:03:47 AM
Hi Experts, I am using windows Authenication in my ASP.Net application. I have different LDAP's configured in my network and my applicaiton uses one of these LDAP users. How can I specify IIS to use one of these LDAP for user authentication. Is there any way of instructing the IIS to do so? ...more >>

UIP 2.0 with Whidbey ( User Interface Processing Block )
Posted by santanbo at 12/13/2004 10:59:04 AM
I am having trouble using UIP 2.0 in Whidbey beta 1. I get an exception in Assembly.Load function in UIP's GenericFactory.Create method and UIP doesn't start any task. Does anybody know how to resolve this? ...more >>

Required Validation Error in IE.
Posted by Ryan Ternier at 12/13/2004 10:48:43 AM
We're running a site that has required field validation on the login page. It works fine on our development / test machines. However, when I upload this site to our live server i get this error. In IE, the validation works, but no form ever gets submited. It doesn't even process the click ev...more >>

Popup Window Size - to Match Photo Dimensions
Posted by Kenny at 12/13/2004 10:43:40 AM
The following link will take you to menu of photo galleries. If you open any of the photo galleries you will see that each contains thumbnails. When a thumbnail is clicked, the full-sized version of the photo is displayed in its own popup window - AND the popup window size matches the photo size ...more >>

Only a small number of users were able to access our ASP.NET application during a demonstration - why?
Posted by Rod at 12/13/2004 10:18:54 AM
Today and tomorrow we're demonstrating our ASP.NET application to the external business customers who will be using it (this is what would best be called a B2B application). I've set things up so that the users automatically go against our test server for the database. We'll "go live" next wee...more >>

TreeView postback to calling page?
Posted by Harold at 12/13/2004 10:12:27 AM
I have page A with form field and a button and when button is clicked it opens page B in another window. Page B has a treeview control and that is all. When something is selected I want the page B item to pouplate a form field on page A. Can this be done and how? ...more >>

Page Processing Speed
Posted by Joe Reazor at 12/13/2004 9:50:38 AM
I've got an asp.net page that has approximately 1,440 controls on it. You must think I'm crazy, but we need to have the page organized in this fashion. As you can imagine, the page takes a very long to to process, on the order of 20-30 seconds, even though only a small number of the controls a...more >>

Changing Body attribute
Posted by tshad at 12/13/2004 9:47:41 AM
Is there a way during Page_Load to change or add an attribute to the Body tag? I want to be able to change the onLoad body attribute to do a focus on one of my text boxes, such as: onLoad="document.forms[0].txtLogon.focus();" The problem is I have my <body> in an include file and want t...more >>

Outputting an Array of Images - photo gallery scenario
Posted by dan at 12/13/2004 9:44:06 AM
I have written a class that scans a directory then builds a series of images (thumbnails) and returns an array of Image objects to the caller. When the call is made from a client aspx page it all looks fine but when I do a Response.BinaryWrite when in the loop which is itereating thru' the array...more >>

Cannot access data row in Repeater ItemCommand event
Posted by Joel Daniels at 12/13/2004 9:39:17 AM
Hello, I am trying to determine the proper way to access the underlying data row for a Repeater item in the ItemCommand event. In the page load event, I bind the Repeater data source to a SqlDataReader. I check for !IsPostBack so the data binding only happens the first time. In the Item...more >>

WebHost4Life and Invalid Viewstate
Posted by Chris Becker at 12/13/2004 9:30:09 AM
I am currently hosting my site with webhost4life.com and my visitors (well, just the visitors that are admins and try to do data entry, modification and removale) are constantly getting "Invalid Viewstate" errors. It seems that the problem could be that the asp.net worker process is constantly r...more >>

<asp:label> with the same text value....
Posted by Johnb41 at 12/13/2004 9:21:24 AM
I want an "order number" to be displayed more than once on my page. <script language="vb" runat="server"> ... dim ordernumber as string = "123456" page.databind() ... </script> <p>text text text</p> <asp:label runat="server" text='<%# ordernumber %>' /> <p>more text more...more >>

Dynamic Array in ASP.net
Posted by Sunil Sabir at 12/13/2004 9:03:08 AM
Dear All, Actually I am want to make a function which will take a list of ID numbers retrieved from the database and diplayed their details on the web page.On the Web Page I have a textbox and a button. So in the textbox i should be able to type ID numbers like 1,2,3,4,5... and when I pres...more >>

Help with Javascript
Posted by Chris at 12/13/2004 8:31:08 AM
Hi, I have a Javascript function that loads a page with a progress bar for long process. The progress bar is a gif animation and for some reason it the animation is stuck when the function is called so it looks like an image and not an animation. I have decided to put a wait function that wil...more >>

ASP.Net site timing out
Posted by vbwig(UNSUBSCRIBE) NO[at]SPAM hotmail.com at 12/13/2004 8:17:02 AM
I've got an asp.net site which runs from IIS 5. On 4 customers sites, this site runs ok. On our main customers site, one of the pages takes a little while to process a request & times out - giving the user a "The page cannot be displayed" error message. These are the settings I've put in th...more >>

Can someone explain this?
Posted by klj_mcsd NO[at]SPAM hotmail.com at 12/13/2004 8:14:40 AM
Let's say you set txtlastname1.visible = true Then DirectCast(Page.FindControl("txtLastName1"), TextBox).Visible = False Why when you check txtlastname1.visible it is equal to True? Can someone please explain? Thanks ...more >>

q: filter datagrid
Posted by JIM.H. at 12/13/2004 8:09:09 AM
Hello, I have a datagrid in my page and gets data through a dataset. Now, what I need to convert one of the column to a dropdown list and let user select only certain rows. Is this possible? Thanks, Jim. ...more >>

Wrong Form Submit
Posted by P1ayboy at 12/13/2004 7:45:06 AM
I have two forms on a page, one for logging in a user and a second one to search thesite. The problem is, when i enter data into the search and hit enter, it activates the login button. I need to know how to associate a textbox with a particular button. <asp:TextBox ID="keyword" Runat=ser...more >>

Session object
Posted by jsale at 12/13/2004 7:27:03 AM
I have an asp.net application that uses classes to store data between the user interface and the SQL Server database. Each user needs to see only their data at any time, therefore I am using session to hold the classes. Currently I use this on page load: XProject = Session("XProject") where ...more >>

Date conversion problem *URGENT*
Posted by Vishal at 12/13/2004 6:36:28 AM
Hey, I have differnt kind of dates. They can be in this format: Thur, 23 Sept 2004 14:24:15 GMT Thur, 23 Sept 2004 14:24:15 PST Thur, 23 Sept 2004 14:24:15 CST and so on.... Now when I try to convert this string to a date then I get the error: The string was not recognized ...more >>

How can i run my project after copied from one machine.
Posted by Raghu Raman at 12/13/2004 5:39:13 AM
Hi, How can i run my project after copied from one machine. After Coping the project folder from one machine to other machine, i simply create the virtual directory with the same name as it was in the other machine.Eventhough i create the same name for the virtual directory , my projec...more >>

refresh
Posted by sara at 12/13/2004 3:49:03 AM
Hi to all I have a main aspx page with a frame i load other aspx page on that frame but i want to do resfresh for those page by code how?? any ideas?? thanks ...more >>


DevelopmentNow Blog