Jump to content
Xtreme .Net Talk

kahlua001

Avatar/Signature
  • Posts

    509
  • Joined

  • Last visited

kahlua001's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. What does RetrieveData do? Is the page working while this routine is running? How about a response.write as the first thing in the sub and then quit.
  2. I have a problem I cant figure out. any help is appreciated! I have a datalist whose's datasource is a custom type. In this type is a public member that is a generic list. So in the ItemDataBound event I have. PostType Post = ((PostUserBookmarkType)e.Item.DataItem).Post; lnkName.Text = Post.Name; Now, the problem is that I am taking the datalist's item template and loading from a usercontrol. So now, the ItemDataBound doesnt work becuase its outside of a datalist, so I've read that I need to cast the Dataitem to a DataListItem like so.. <%# DataBinder.Eval(((DataListItem)Container).DataItem, "FirstName") %> I've tried different variations to cast my PostType to a DataListItem but get invalid casting errors. Anybody know the correct way to take my 1st line of code and cast that to a DataListItem which gets casted to my custom type?? Thanks
  3. Hi, I have a datagridview with a combobox column. the gridview is bound to a datatable as a datasource. The combobox display and value members are set to another datatable so it fills on render and is auto selected based on the row's value. The problem I am having is when I add a new row and select a value from the combobox and then click away from the cell, the value of jumps to a different value, I can't really see a pattern for which value it set to, its just different. Any clues what I'm doing wrong? The list is like 40 items. I have another combobox in the same grid with about 5 values and that works fine. THanks exItem.DataSource = globals.dtInventoryItems 'This is teh comboxbox exItem.DataPropertyName = "item_id" exItem.DisplayMember = "description" exItem.ValueMember = "item_id" dgrdvRules.AutoGenerateColumns = False dgrdvRules.DataSource = globals.dtEventInventoryRules 'This is the datagridview Its pretty simple, not sure what I'm doing wrong.
  4. Try adding this attribute to the input field... Autocomplete="Off" This is for IE, not sure for other browsers.
  5. Loop thru your dataset and build a tab delilimted string, then write it to your stream with the .xls file extension. I have never figured out how to write a xls from a datagrid without all the formatting junk that gets carried over from the html.
  6. JS has isNaN() function, Is Not a Number, you can use this on a blur of the textbox or keydown. if (isNaN('test')) { alert('This is not a number!'); }
  7. Lets see some code.
  8. the Stored Procedure needs to be modified so it takes int a @Quarterly parameter and the insert statment needs to insert this value. Then you need to add this paramter into your command object. Also, your if statment should look something like this.. If Quartherly.Checked Then cmd.Parameters.Add("@Quarterly", 1) Else cmd.Parameters.Add("@Quarterly", 0) Enf If
  9. Not sure what the previos page listing is. But, where are you doing your validation? Client or server? If client, you can integrate the input's focus function into the validation.
  10. What I'm doing is trying to use a wsdl from a web service on a Tibco server. The company who owns that Tibco server sent me a wsdl which .Net does not like, all sorts of name space errors and datatype missing errors which I tried to adapt to .Net friendly stuff, but in the end, wasted too much time and not getting it just right. So we dumped the idea and I went straight to constructing the soap message and sending them the data via a HttpWebRequest. On a side note, does anybody know of any differences between Java world wsdl and Microsoft world wsdl? You would think this should be universal...
  11. Write your js on postback <script language="javascript"> window.location = '#Test'; </script> <p><a name="Test"></a>testasdf</p>
  12. You mean in IE? I am using vb.net to send a request, the error that gets returned is a 500 server error, not using IE
  13. Hi, I have a webservice that has one method and takes in a string as a paramter, pretty simple. On my client app, I build the soap envelop and post it using HttpWebRequest but I'm getting a Internal Server 500 Error, any clue to what i'm doing wrong? WSDL is not an option for me here. Dim strSoap As String strSoap = "<?xml version=""1.0"" encoding=""utf-8""?>" & vbCrLf & _ "<soap:Envelope xmlns:xsi=""http://www.w3.org/2001/XMLSchema-instance"" xmlns:xsd=""http://www.w3.org/2001/XMLSchema"" xmlns:soap=""http://schemas.xmlsoap.org/soap/envelope/"">" & vbCrLf & _ " <soap:Body>" & vbCrLf & _ " <submitCarriersStatus xmlns=""http://beta.webservices.netcour.com/fedex"">" & vbCrLf & _ " <strXML>" & str214 & "</strXML>" & vbCrLf & _ " </submitCarriersStatus>" & vbCrLf & _ " </soap:Body>" & vbCrLf & _ "</soap:Envelope>" Dim req As HttpWebRequest = WebRequest.Create("http://tempuri/fedex/FedExStatusTest.asmx") req.Headers.Add("SOAPAction", "http://tempuri/fedex/submitCarriersStatus") req.Method = "POST" req.Accept = "text/xml" req.ContentLength = strSoap.Length req.ContentType = "text/xml" Dim sw As New StreamWriter(req.GetRequestStream) sw.Write(strSoap) sw.Close() Dim resp As HttpWebResponse = req.GetResponse Dim strResp As String = "" Dim sr As New StreamReader(resp.GetResponseStream) strResp = sr.ReadToEnd sr.Close()
  14. I have a wsdl that includes 2 .xsd files. When i attempt to add this wsdl as a web reference, i get error that says Igonoring duplicate schema document with targetNamespace "". I assume that becuase in each of these two .xsd files, there are no targetNamespace specified. So i give them each a unqiue namespace, then I get the error that failed to importing binding of a method becuase a dependant dataype is missing. Any clues on what I'm missing? Attached below are my files. Thanks in advance.FDXLMD.zip
  15. Sounds like each user needs their own User ID, which you track to see if they have filled out the page or not.
×
×
  • Create New...