|
I've templated out the field, and the combobox properly loads the value, but when the insert query runs unlike the various textbox parameters in other columns the user selection isn't passed to the query. Instead a null is. Is there something wrong with my asp, or do I need to write code elsewhere to explicitly get the value of out the combobox for the query?
<pre> <asp:templatefield headertext="BatteryTypeID" sortexpression="BatteryTypeID" xmlns:asp="#unknown">
<edititemtemplate>
<gary:extendeddropdownlist id="DropDownList1" runat="server" xmlns:gary="#unknown">
DataSourceID="dslist_BatteryType" DataTextField="BatteryTypeID" DataValueField="BatteryTypeID"
Text='<%# Bind("BatteryTypeID") %>'>
<asp:listitem text="None" value=""></asp:listitem>
</gary:extendeddropdownlist>
</edititemtemplate>
<itemtemplate>
<asp:label id="Label1" runat="server" text="<%# Bind("BatteryTypeID") %>"></asp:label>
</itemtemplate>
</asp:templatefield>
</pre>
Today's lesson is brought to you by the word "niggardly". Remember kids, don't attribute to racism what can be explained by Scandinavian language roots.
-- Robert Royall
|
|
|
|
|
hi friends
I have a problem in uploading images in server side. when i upload the image in localhost i will get the filename and it's uploaded fine. when i setup the file and run , i didn't get the filename from fileupload control. it's hide when i click the button. how can i get the filename??
if anybody knows kindly reply ....
Thanks in Advance!!!
Sabarees
|
|
|
|
|
Can you show us your code and any error messages that might accompany it?
Don't you just hate coming up with something to put here?
|
|
|
|
|
hi friends,
I have a problem with web user control with firing events using AjaxPopupcontrol.
my need is, when I mouse hover the text - some other text will display as a
popuptext from database. this is working well in normal aspx pages.
but when I place the popupextenwer and other controls to the Web User Control and
place the web user control to one aspx page. it doesn't work. mouse hover worked but not getting values from database. it returns the following error message!!!
Web Service Call Failed : 500
can any one explain how to do this. giv me a code for this.
Thanks in Advance!!!
Sabarees
|
|
|
|
|
Have you tried making sure there is an ajax script control object within your user control?
Don't you just hate coming up with something to put here?
|
|
|
|
|
Hi
Over the past few months I've been developing a clan CMS (Oh, how common) in ASP.NET as a pet project.
In this I've made the data access layer into a dll. This works absolutely perfectly when I'm testing it locally. However, I recently moved a copy of the whole project to my windows server. When attempting to view the project on the server, the dll and it's content is not registering properly and is resulting in exceptions being thrown. You can see one here: http://www.dailytip.net/cms/admin/games.aspx
I have tried opening the whole thing in Visual Studio '08 through FTP and making sure that it is referencing the dll at all and from the right place. This did not work.
I have tried opening the class library project in Visual Studio through FTP and building it from there straight on to the server. This did not work.
I have tried building a new version (with the correct connection string) on my local system and uploading it through FTP. This hasn't worked.
Has anybody got any idea as to how I can fix this? I'd like to get it fixed before I continue.
P.S: I have changed the connection strings in the config files to the server based database (as opposed to my local). I have tried to give you as much detail as I can as to the problem. If you need anything more, just ask and I'll see what I can do.
Don't you just hate coming up with something to put here?
|
|
|
|
|
I have a menu control, when I apply this class to the StaticHoverStyle it gets applied to the area behind the text and the area of Height:30px and width:100% so the effect is doble , any help on that?
.nav_hovermenu
{
height:30px;
Width: 100%;
cursor:pointer;
background-position: left top;
background-image: url(images/nav_hoover.gif);
background-repeat:repeat-x;
color:Blue;
}
|
|
|
|
|
Hi,
I have an asp.net 3.5 app, and it calls an external web service and passes it a callback url. This works fine except when the webservice has an error and messes up the callback url, so that the response they should send to the callback url is sent to a faluty url as they've messed up the callback url we gave them.
How should I handle this error? In 1.1, I have handled similar problems using webhandlers so that when the response comes in comes to our server with a faulty url, the webhandler redirects it to some place that makes sense. Is this still the way to handle this in asp.net 3.5. Or is there a better way?
Also, I need to save the callback url somewhere so that after we get the response with the faulty url, we redirect to the correct callback url. But where should I store this? If I use a webhandler and store the callback url in the session, can the webhandler access it?
Thanks.
Shefali
|
|
|
|
|
Hi ,
i am trying to retreive an xml doc from another server on the same domain where my computer resides
i am using HttpWebRequest from c# code but i am getting the below error
how can i solve this problem without hardcoding a user name and password in the code ?
thanks
<small>
The remote server returned an error: (401) Unauthorized.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Net.WebException: The remote server returned an error: (401) Unauthorized.
Source Error:
Line 41:
Line 42:
Line 43: HttpWebResponse WebResp = (HttpWebResponse)WebReq.GetResponse();
Line 44:
Line 45: Console.WriteLine(WebResp.StatusCode);
</small>
|
|
|
|
|
Allow anonymous to the page you are requesting...
I didn't get any requirements for the signature
|
|
|
|
|
How to get colors from image. Ex. If one Image contain some Red,Green & Blue portion then I need these three colors name/hex code/rgb code.
|
|
|
|
|
I can't tell you how to do that in code. But there is a firefox addOn called ColorZilla that will display the hex and rgb when you put the cursor over something displayed in the browser.
I didn't get any requirements for the signature
|
|
|
|
|
Thanks For Reply But I have to do in asp.net 2.0 c# in code behind only.
|
|
|
|
|
Good luck with that, I did find this on google. http://www.developerfusion.co.uk/show/5377/2/[^]
Yeah, I'm bored at the moment. If you find a solution could you post it. I'd be interested to see how to do that...
I didn't get any requirements for the signature
|
|
|
|
|
The GetPixel method returns a Color structure, which has the R , G and B properties.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
Hi All,
I have a repeater that uses an XML file as its datasource.
I want to add 2 of the retrieved values.
How would i do this without messing with the DataSet in code behind?
<ItemTemplate>
<td>
<%# DataBinder.Eval(Container.DataItem, "ISLTournamentBuyIn")%> + <%# DataBinder.Eval(Container.DataItem, "ISLTournamentFee")%>
</td>
</ItemTemplate>
Thanks.
|
|
|
|
|
The easiest way to do this would be to get a data table from the dataset, add two new rows and bind the repeater. That way you aren't changing the dataset but you are getting the results you want.
I didn't get any requirements for the signature
|
|
|
|
|
Hi Todd,
Thanks for your response.
While your solution is one that will work i eventually found a way to do it all front end
<ItemTemplate>
<td><%#(Convert.ToInt32(Eval("Column1")) +Convert.ToInt32(Eval("Column2"))/100)%></td>
</ItemTemplate>
Thanks again.
|
|
|
|
|
Hi, I'm using ASP.NET cache in my web application, I cache objects with sliding expiration, is there anyway I could access an object without causing the sliding expiration to be reset? (something like peek instead of get), I need to do this in some parts of my application, it's really annoying that there's no something like peek!
|
|
|
|
|
I am writing a Survey that is going to be sent out to users Via Email that is being Generated from my ASP.Net 2.0 application.
I want to have the link that the user opens up be the equivalent of a PopupWindow in the respect to the fact that they can do nothing related to the browser because everything but the content of the page is hidden.
I am not figuring out how to accomplish this and would like some input please.
Thank you.
MrsLeigh
|
|
|
|
|
|
I have hex color string and I want rgb color code in code behind.
ex. #ffe7e7 -> R:255 G:231 B:231
|
|
|
|
|
System.Drawing.Color c = System.Drawing.ColorTranslator.FromHtml("#ffe7e7 ");
c.ToArgb()
I didn't get any requirements for the signature
|
|
|
|
|
Thanks Alot. Its working fine.
|
|
|
|
|
Hi,
I have two images, now i need to place a blue line between two images which joins the two images without gap.
any body is having an idea please share to me.
Thanks and Regards
Dayakar
|
|
|
|