|
|
Hi, I am a beginner, Can you please suggest me tutorials with neat examples which explain different events in a GridView, and also how to add check boxes, radiobuttons, ddlist, inside a GridView.
I came across few tutorials but they don't explain step by step, please help me in this matter.
|
|
|
|
|
|
Check the links are proper .. ?
|
|
|
|
|
click on the ^ symbol plz
Padmanabhan
|
|
|
|
|
First let me preface by saying I am a LAMP developer for 12yrs. I am new to .NET, I work in a LAMP shop but we need to use .NET to get this project working.
Heres the situation, we have a windows program that can take a street address and return long/lat coordinates from it (geocode). It has an API in C. We wanted to take these methods and expose them as a webservice so our LAMP based applications can access them and we can access them in javascript. I've managed to import the unmanaged C functions into C# already and have a basic running ver of it.
The problem is this.. the software limits you to only 8 concurrent API instances at one time. However, each API instance allows you to perform 32 concurrent geocode within that instance at once.
So right now, I have it set up so each instance of the web service controls an API instance. It uses the threading.semaphore class so that if you call more than 8 instances at once, they have to wait until others finish ( or return a too busy error if timeout).
My question is there a way to set it up so that we can use the full power of 256 concurrent searches (8 instance * 32 search threads) ?
In case you are wondering, the software we're talking to through the API is designed for batch querying , we want to use it to just do 1 address at a time.
Any help would be GREATLY appreciated.
|
|
|
|
|
Hello,
I have website with files and direcotires (with files and other directories and files.....in each).
I need to find a particular file in this site (i will provide the main site and it will search recursively inside it and inside the folders to find the file i need). How can i do it?
|
|
|
|
|
Already posted in C# forum
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
|
I am binding value with a listbox.when an item is selected and then a button is clicked then i want to display a label with text as value bounded with that item.
here is code..
query = "select CustId,FirstName+' '+LastName as Name from custdetails where BrokerId='" + Session["broker"] + "'";
dt = obj.select(query);
ListBox1.DataSource = dt;
ListBox1.DataTextField = "Name";
ListBox1.DataValueField = "CustId";
this.DataBind();
protected void Button1_Click(object sender, EventArgs e)
{
//String value = .ToString();
Label2.Text = ListBox1.SelectedValue;
}
but problem is label becomes invisible i.e. it is not taking any value.
|
|
|
|
|
Have you done it yet?
I can't help you ,I am new here ,if you get the answer,please let me konw ,thank you.
I can do!
|
|
|
|
|
Hi jain
declare one variable in your code and use OnSelectedIndexChanged event of list box
grape that item using str=listbox.selecteditem.text
where str is a string variable and listbox is ur listbox id
use this str variable in ur button
i hope this will help you
|
|
|
|
|
on writing
protected void Button1_Click(object sender, EventArgs e)
{
String value = ListBox1.SelectedItem.Value;
Label2.text=value;
}
It is giving an exception
System.NullReferenceException: Object reference not set to an instance of an object.
plz help...
|
|
|
|
|
Your listbox biding is correct but you should place it under Page Load event delegate and "Not Page.IsPostBack" condition to retain your listbox state.
<br />
protected void Page_Load(object sender, EventArgs e)<br />
{<br />
if(!Page.IsPostBack)<br />
{<br />
query = "select CustId,FirstName+' '+LastName as Name from custdetails where BrokerId='" + Session["broker"] + "'";<br />
dt = obj.select(query);<br />
ListBox1.DataSource = dt;<br />
ListBox1.DataTextField = "Name";<br />
ListBox1.DataValueField = "CustId";<br />
ListBox1.DataBind();
}<br />
}<br />
<br />
protected void Button1_Click(object sender, EventArgs e)<br />
{<br />
Label2.Text = ListBox1.SelectedValue;<br />
}<br />
<br />
|
|
|
|
|
Thanks a lot....
But why did it not work before...
|
|
|
|
|
You have a typo error from your first post. See the bold font below.
query = "select CustId,FirstName+' '+LastName as Name from custdetails where BrokerId='" + Session["broker"] + "'";
dt = obj.select(query);
ListBox1.DataSource = dt;
ListBox1.DataTextField = "Name";
ListBox1.DataValueField = "CustId";
this.DataBind(); //"this" must be replaced by ListBox1.
|
|
|
|
|
I am having 4 user controls in four Tab Control.. each in one tab panel. If i click button in any one of User control.. all the user controls get post_back and Page_load Method of each control get called... how to avoid this....
|
|
|
|
|
|
I have 3 content pages Result1.aspx. Result2.aspx and Result3.aspx with Result.master. I want to display them in a tabular format. If the user wants to see Result1, he can see it is in the first tab or Result2 in the second and so on.
Code Please
shahdat
|
|
|
|
|
May be he/she can see the differences from the URL in the ie.
why not add something different to the result1.aspx/result2.aspx/result3.aspx?
I can do!
|
|
|
|
|
Hi
i am using menu in my website but i am unable to handle it
my menu look like same as code project menu if i open my side in desktop monitor means CRT monitor its fit according to the data present in my site
but when i open same site in laptop its not working properly means menu is starching towards left side as the width of the screen increasing
my question is how to maintain the menu width according to data its does not starch as the screen of laptop increases
i think i put my question correctly
please help its very important
thanks in advance
|
|
|
|
|
Suppose, if I want to create menu from dynamic data sources; I have three options.
1. Use XML
2. SiteMap
3. Database
A DATAPOST COMPUTER CENTRE
(K.V Prajapati)
|
|
|
|
|
Thanks brother for your support
bother i used cascading style sheet(css) but i unable to handle the width i used same menu as this site have
please help me regarding this
|
|
|
|
|
hi brother
i am developing one application in which
1) i need to fetch the user name from the computer how currently log in
2) i need to fetch the all application which is install on the computer for example in the computer they install Ms.Net,Ms Office etc
3) i need to restric the for accessing some install software in the computer for example if developer user sign in i will give all permission if suppose any network people or some guest user loggin i want restric them to accessing Ms.Net software or some other software
The above three are my question out of 3 i have done first 2 that is fetching the user name from the computer and fetching the software install on the system but i am unable to do the thired one
can anyone help me for doing the thired question
please please please help me
thanks in advance
|
|
|
|
|
Use windows authentication in your web application.
A DATAPOST COMPUTER CENTRE
(K.V Prajapati)
|
|
|
|