135 Posted Topics

Member Avatar for marta.deathcore

Simply, it ties two table togeather. For example, You have two table ... one called blog, with a column called catId, and another called catagory. Add a business rule that states a blog entry **must** contain a category. If you have a relationship between blog and category, where the reference …

Member Avatar for BMXDad
0
119
Member Avatar for rms095
Member Avatar for annaharris
0
349
Member Avatar for kumar89hitesh

No, it does not connect with database ... just a random response is needed.

Member Avatar for BMXDad
0
159
Member Avatar for NyQii

After selecting from the dropdown, are you rebinding the grid? Should happen on the selectedIndexChange event.

Member Avatar for annaharris
0
163
Member Avatar for chrispitt

Nothing ... both do the same thing. "Classic" ASP is the first rendition of Microsoft’s version of Active Server Pages. ASP.Net is a total overhaul of the original concept allowing a larger separation of content and data. To the end-user, it’s all the same. To the programmer it’s the difference …

Member Avatar for BMXDad
0
344
Member Avatar for de Source

Ummm ... isn't this is a SQL question? You might have better results that way. As for the dropdown stuff, just grab the DropDownList.SelectedValue for each value, add it to a sql attribute then send it to a stored procedure, something like this: private void UpdateStudent() { string ddl1 = …

Member Avatar for annaharris
0
176
Member Avatar for garyjohnson

Couple things I see ... * More contrast between background colors and foreground (text) colors. * You might consider using a frame work ... my suggestion is the Twitter booststrap one: http://twitter.github.io/bootstrap/index.html * Make sure you optimize your pictures ... be sure to re-scale them to the size your using. …

Member Avatar for Lincoln65
1
220
Member Avatar for coder91

The foreach will move throught the list of items i in ddlX.Items, and stop when the last one is read. So that should be fine. Question though ... What is a.XDescription? Is it a string object? If not it'll need to be converted or cast to a string to get …

Member Avatar for |-|x
0
582
Member Avatar for KirstyHunter
Member Avatar for BMXDad
0
304
Member Avatar for divin757
Member Avatar for BMXDad
0
613
Member Avatar for kumar89hitesh

Some of his information is outdated, but it still works ... http://www.ironspider.ca/graphics/alignment.htm

Member Avatar for annaharris
0
191
Member Avatar for wnmichaud

You might want to rethink the Database layout that your thinking of using ... the masterpage switching is the easy part ... good luck.

Member Avatar for BMXDad
0
258
Member Avatar for marykate02

Easy ... add a text box and button. On button click, take the text box entries and put them in a vairable. Use that variable in a parameter to call a stored procedure. Depending on what your searching for, you might want to restrict what the user is using for …

Member Avatar for geniusvishal
0
620
Member Avatar for GTTravis

Try a jQuery auto-complete dropdown ... easy to setup and works pretty good. Here's an example, but there are many others: [http://blogs.msdn.com/b/josephkiran](http://blogs.msdn.com/b/josephkiran/archive/2011/02/25/jquery-asp-net-server-control-dropdown-autocomplete-sample.aspx)

Member Avatar for geniusvishal
0
213
Member Avatar for Neethaa

If you mean to save them in a database? If so, you'll need to encode them going in and then decode them when populatinging the textbox. string toDatabase = Server.HtmlEncode(text); string fromDatabase = Server.HtmlDecode(htmlEncoded);

Member Avatar for BMXDad
0
81
Member Avatar for Jollyyy100

Make sure your calling you JavaScript after referencing your jQuery. If you simply cut and pasted the code then any JavaScript calls from the top section should be moved to the bottom of the page, under the jQuery reference calls.

Member Avatar for Jollyyy100
0
408
Member Avatar for jiji2663
Member Avatar for JimOfRose

On the databind event, have you tried checking for and converting any null values to an empty string?

Member Avatar for BMXDad
0
223
Member Avatar for thirumalareddy

Create an instance of the Master page, find the control on master page and do what you need to do ... don't make it overy complicated. In the example below I have a label on the master page called "lblMasterPageLabel". In the content page that is referencing the master page …

Member Avatar for BMXDad
0
407
Member Avatar for sametkocak
Member Avatar for BMXDad
0
143
Member Avatar for clausont
Member Avatar for davy_yg
Re: Eval

Line 31 should be at line 74 You closed the repeater, before adding the content.

Member Avatar for BMXDad
0
163
Member Avatar for hookedtocsharp

Request.QueryString["Name"] will get you the query parameter named "Name". If you need the name of the page: string refPage = Request.UrlReferrer.ToString();

Member Avatar for JorgeM
0
189
Member Avatar for davy_yg

This should get you started: http://msdn.microsoft.com/en-us/centrum-asp-net.aspx

Member Avatar for JorgeM
0
204
Member Avatar for davy_yg

KodeBarang is a label so you'll need to make an instance of it first by locating it in the reapeater. Are you trying to find its value?

Member Avatar for BMXDad
0
65
Member Avatar for anisha.silva

If your method is set to public it can write directly when called: `public string MakeText() { string results; // Add code here return results; } This goes in aspx page, and will output what ever MakeText returns on page load. <%= MakeText(); %>`

Member Avatar for BMXDad
0
2K
Member Avatar for sk8ergirl

Your code is showing a GridView, but its named a ListBox? Anyway, if you're using data keys this will get row and a key(s) which can be used to remove the particular selection. This is not like above, where its only removed from the grid, to be shown again on …

Member Avatar for BMXDad
0
288
Member Avatar for korathualex

jQuery can do that for you too ... $(document).ready(function() { $('#txtBoxId').focus(); });

Member Avatar for BMXDad
0
148
Member Avatar for raajsj
Member Avatar for cyberdaemon
0
174
Member Avatar for anisha.silva

It would be easier to do it in jQuery. $(function () { $('#business').toggle( function() { $('#businesslist .subb').prop('checked', true); }, function() { $('#businesslist .sub').prop('checked', false); } ); });

Member Avatar for prashant9928
0
2K
Member Avatar for brenton_77

Just add a value to the "Text" attribute. If you need a dynamic entry you can set it from a public method. <asp:TextBox ID="txtBox" Text="Default Value" runat="server" ></asp:TextBox>

Member Avatar for brenton_77
0
3K
Member Avatar for anisha.silva

In C#, this will loop throuh all controls and get their values ... you need to do something with it them though. private void GetControlValues(Control parent) { foreach (Control c in parent.Controls) { if (c is DropDownList) { string ddlValue = ((DropDownList)(c)).SelectedValue; } if (c is TextBox) { string txtbox …

Member Avatar for BMXDad
0
185
Member Avatar for raajsj

To split the string at the dash, with string **str** being the returned result ... string s = str.Substring(str.IndexOf("-")+1, str.Length - (str.IndexOf("-")+1));

Member Avatar for raajsj
0
290
Member Avatar for ketan1234

Are you talking initial page load or after a post back? You can seperate post back and intial load by: if(!IsPostBack) { First page load; } if(IsPostBack) { Any page postback, but not the intial one; }

Member Avatar for BMXDad
0
203
Member Avatar for nikhil257

The End.