I am Developing a online test(Multiple choice) in C# asp.net. I have to show only one Question per page. I am using radiobuttons to select one of the options.
When i click the next button, options respective to the next Question bind to the radiobuttons.
The origin of Problem:
I select a radiobutton for one Question and the same radio...
Hello i want to appreciate u guys for answering my technical questions.
I am working on a photo project and i want users to be able to upload jpg, gif, bmp,png format. Right now, the project allows only jpg image format. Can someone help me with that? My code is below:
Imports System.Data
Imports System.IO
Imports System.Data.SqlClient
...
Hi, I have a HTML.BeginForm() to change user's data (email, password etc) but I want to separate the contents at the same page, I mean that there will be:
MainContent with submit button and also
- a HTML.BeginForm() with fields to change password + submit button
- a HTML.BeginForm() with fields to change email + submit button
th...
Hi there!
What i want to do is something similar to this:
http://sig.cm-olb.pt/develop.aspx?Layer=Cemit%C3%A9rio&Field=n_sepultur
(Zoom, Drag, info, etc)
Whats the best way to do it?
Is there any component to help me?
Thanks
...
I have a gridview with an enormous viewstate that I am attempting to shrink. I have turned the viewstate off in the control(which the gridview is in) but this seems to have done next to nothing in terms of the page size.
Now the gridview has buttons and dropdowns in it, which I know add to the size. But cannot be helped. Now short or r...
Not really sure how to do this but i can cache the dictionary like this:
Cache.Insert("CacheName", Dictionary)
need some direction. the dictionary is two string values taken from a database. The user will input a string and i need to compare it against the values in the cached dictionary.
...
Does anyone know (or tried successfully) if you can write a .net page/script that will automatically post to a "corporate" facebook or twitter account behind the scenes. In other words the twitter and fb accounts are the website owner's who's a realtor. When an update comes in via an XML feed and updates the listing, the code should th...
Hey i am using a 3rd Party Newsletter Tool which at the end gives me the html for the form to place on my site.
Basically looks like this
<form action="http://link/subscriber/subscribe.html" method="post">
<input name="subscribeBoxId" type="hidden" value="XXXX"/>
<input name="subscribeBoxTitle" type="hidden" value="Subscribe Bo...
I'm writing a small asp app to query a server. In order to query the script posts 2 values. One is an identifier of the user, and the second contains encrypted data.
I don't need to decrypt the data, but the user has to be able to paste a string thats 96,004 characters long (or upload a txt file containing it).
I standard html textar...
I got some help on here last night about getting an the index of a collection. Here is the code I'm using.
System.Text.StringBuilder sb = new System.Text.StringBuilder();
for (int i = 1; i < _prod.ActiveProductItemCollection.Count; i++)
{
sb.Append("<script type='text/javascript'>")...
I have populated a list box using a Data-table.
In another method, I have to retrieve the data table from the list box.
Datatable dt = (DataTable)lstExample.DataSource;
Throws an error, that the Datatable dt is null
I am working on c# ASP.Net
...
I have existing web application project in which i need to add new subdirectory. In this subdirectory i need to add WCF service.
Question is: Can i use different AppDomain then services from root directory? Also, can i add new global.asax just for this subdirectory?
...
Hello,
I'm using WEB Application as a Server in my solution. I have in this project web services which I use to download data to local database ( in client project). Now I'm swithing to sync framework but during wizard steps I have problem in choosing Server Project Location because my Web Application Project isnt visible there. How can...
I have an html checkbox that controls a list of checkboxes. I want this checkbox to display in a sorta "null" state where it is neither true nor false. Is this possible?
<HeaderTemplate>
<div style="width:90px">
Toggle:
<input id="chkAll"
onclick="javascript:SelectAllCheckboxes(this);"
runat="server" type="...
I have a httpmodule that contains a property.
The httpmodule is used in my web application. I want to set the property in the httpmodule when my application starts and not have the overhead of setting it everytime the module is called.
The value for the application is read from my app settings in the web.config.
The httpmodule reside...
Given the following code:
var myList = new List<string> { "red shirt", "blue", "green", "red" };
Regex r = new Regex("\\b(" + string.Join("|", myList.ToArray()) + ")\\b");
MatchCollection m = r.Matches("Alfred has a red shirt and blue tie");
I want the result of m to include "red shirt", "blue", "red" since all those are in the string...
Hi,
I have a label in a footertemplate of a gridviewcolumn. I want to put a calculated value (total of the rowvalues) in this label in javascript. I can access all the textboxes in my Itemtemplates, but I don't know how to find my label in my foortertemplates.
.aspx: column in gridview
<asp:TemplateField HeaderText="Prijs excl. BTW"...
I'm exporting data to a csv file using Asp.net and I need to know from the System.Globalization.CultureInfo.CurrentCulture if I should use "," or ";" as a value separator. For example US needs "," and Europe needs ";". How can I find out which one to use from the CurrentCulture?
Thanks!
...
I've created a custom server control in ASP.NET to render a standard checkbox and a hidden field like this:
public class CheckAllBox : WebControl
{
private string checkboxClientID;
protected override void OnInit(EventArgs e)
{
checkboxClientID = String.Format("{0}{1}chbCheckAll", base.ClientID, base.ClientIDSeparat...
Does anyone have experience with rendering nested HTML tables? I am attempting to render 30 - 40 rows that each have 5 tables in them. This renders very slowly in Internet Explorer 7 and 8. Is there a trick I can use to speed my table rendering up? Is there a different element I can use other than tables?
...