|
Hi,
How can we get data or characters which is present on image.Actually i have captcha images in .JPEG extension and from that images i have to remove noise, extract the characters and then i have to convert the extracted characters in to string.So please give some idea how to proceed further.
|
|
|
|
|
how can i print the data from datagrid?
i try by using div for datagrid
its shows some error..
plz help me..
thks..
|
|
|
|
|
Hi,
I've a TreeView(IE WebControl and a Grid Controls in my WebForm. I want to Load Grid according to the Tree node selection.
I wrote some Javascript coding to get the selectedNode value(not available directly in treeview events, because I'm using VS.Net 2003).So with respect to selected node, the corresponding child Nodes should be displayed in the DataGrid(which is accessing from Data Table with some conditions, stored procedures).
Pls tell me how can i invoke the C# code behind function LoadGrid(), in my JavaScript function selectNode(), Im very thankful to u If i got an answer.
Satheesh
|
|
|
|
|
Means you want to call the server side code from client by means of javascript
Possibly can't i think you have to write in javascript only
Thanks and Regards
Sandeep
If you want something you never had,
do something you have never done!
|
|
|
|
|
I have one Dropdownlist and one listbox. Dropdownlist contains all doctor names and listbox contains specializations.
I have 3 tables (Doctor,DSpecialization and DSpecializationDetails)
DSpecializationDetails-(DoctorId(PK) and DSpecializationId(PK))
Doctor - (DoctorId(PK),DoctorName)
DSpecialization-(DSpecializationId(PK), specializations)
One Doctor could have many Specializations
I want the user to be able to choose 1 or many specializations,
and insert the selections into a table called DSpecializationDetails.
I didn't get idea how to do this. Ex, I select a doctor from dropdownlist and select two specialization from ListBox.. Now If I click insert button there are 2 records has to be inserted in DSpecializationDetails table. How can I approach to solve this? just give me briefe idea. Its great if you send sample code..
I’m working with Asp.net and C#
Thanks for any help.
|
|
|
|
|
When populating the listbox bind the listbox with dataset with something like
this...
ListBox1.DisplayMember = "specializations"
ListBox1.ValueMember = "DSpecializationId"
Loop through the Listbox to find which Items are selected....take the DSpecializationId And Doctor Name From DropDownList and insert into the DSpecializationDetails Table....
if you cant figure out let me know
Tirtha
"A man can ride on your back only when it is bent....."
|
|
|
|
|
am using typed dataset(xsd). and also I have used Dropdown and Listbox in template field of DetailsView. I looped through the listbox for selected item, but it is inserting only last record.. pls see the following code:
protected void DVDSpecializationDetails_ItemInserting(object sender, DetailsViewInsertEventArgs e)
{
foreach (ListItem li in ((ListBox)((DetailsView)sender).
FindControl ("lbInsSpecialization")).Items)
{
if (li.Selected)
{
string strDoctorId = ((DropDownList)((DetailsView) sender).FindControl("ddlInsDoctor")).SelectedValue;
e.Values["DoctorId"] = Convert.ToInt32(strDoctorId);
e.Values["DSpecializationId"] = li.Value;
e.Cancel = false;
}
}
}
Ex, if I selected two specialization(spe1 and spe2) from listbox, only spe2 is inserted in database....how can I solve this..? were is the problem in above code...
thanks in advance..
|
|
|
|
|
Hi,
We are developing a web application using ASP.NET 2.0 with c#.net, which requires,world date and time calculation based on diffrent countries and cities.Can you plz send the matrials or links or web services regarding the same.
Thanks in advance
Bejoy
|
|
|
|
|
Have you done a search? There are date and timezone classes here on CodeProject, and a quick Google search will provide many, many links to commercial libraries and databases that will also help
cheers,
Chris Maunder
CodeProject.com : C++ MVP
|
|
|
|
|
Hi,
I have a Insert into Table(ColumName1, ColumnName2, ColumnName3, ColumnName4) Values('value1', 'value2', 'value3', 'value4')
If we dont give the Column Names then by default it takes all the columns.
There can be any number of columns so i wanted to know if There is any way in which i can use ColumnNo's instead of ColumnName in the syntax of Insert into Table.
Plz help me in solving this problem.
Riz
|
|
|
|
|
I dont think so.
"A good programmer is someone who looks both ways before crossing a one-way street." -- Doug Linder
coolestCoder
|
|
|
|
|
Hi Folks I'm a noob to .Net so I wondered if anyone could help me out?
I'm creating a webservice which receives an XML string as a parameter. One of my requirements is to return an error message if the XML is not valid. I have been given an XSD and some sample XML, what I would like to do is to validate the XML string I receive against an XSD document stored within the project.
I'm not sure how to do this, I dont want to write the XML to a file simply to validate it's content.
Does anyone have any sample code or ideas?
Thanks in advance,
|
|
|
|
|
Hi,
i am assigning my textbox values to a string builder obj and i am sending that as a body of mail.what my problem is if the text box is multiline i am getting in my body of the mail is a single line with spaces.i want to get that in the exact format what i have written in the multiline textbox.
with regards
Anu
|
|
|
|
|
u can format in html also,
format your string in html code. with line breaks and all other tags.it will work fine.
Thanks,
Sun Rays
|
|
|
|
|
I am in need to create a setup file for my web application. I can able to create seup file for web application alone but i want to include the installer for creating database (if the sql server is not exist it has to prompt). How do I create the database and then add a table using C# i have a sql script on my hand?
Thanks
Warm Regards
Prakash-B
|
|
|
|
|
Please reply for this..
Thanks,
Sun Rays
|
|
|
|
|
PrakashBhaskar wrote: I am in need to create a setup file for my web application. I can able to create seup file for web application alone but i want to include the installer for creating database (if the sql server is not exist it has to prompt). How do I create the database and then add a table using C# i have a sql script on my hand?
Use Regex to parse sql script line by line and use ExecuteNonQuery to execute that line.
Knock out 't' from can't,
You can if you think you can
|
|
|
|
|
can you send me the code coz i am new to this deployment project plz.
Thanks
Warm Regards
Prakash-B
|
|
|
|
|
private static void CreateDBAndTables(SqlConnection sqlCon)
{
string[] SqlLine;
Regex regex = new Regex("^GO", RegexOptions.IgnoreCase | RegexOptions.Multiline);
string txtSQL = GetScript("createDB.sql");
SqlLine = regex.Split(txtSQL);
ExecuteSql(sqlCon, SqlLine);
}
private static void ExecuteSql(SqlConnection sqlCon, string[] SqlLine)
{
SqlCommand cmd = sqlCon.CreateCommand();
cmd.Connection = sqlCon;
foreach(string line in SqlLine)
{
if(line.Length>0)
{
cmd.CommandText = line;
cmd.CommandType = CommandType.Text;
try
{
cmd.ExecuteNonQuery();
}
catch(SqlException)
{
break;
}
}
}
}
Knock out 't' from can't,
You can if you think you can
|
|
|
|
|
can you plz send me step by step process to creating this setup file. I want user has to input the database server server name (select from dropdown box), user name and password thru installation shield.
Thanks
Warm Regards
Prakash-B
|
|
|
|
|
Hello
Any one knows how to wrap the text in firefox and IE using stylesheet ? I have independent code that works for firefox but not for IE.
|
|
|
|
|
in your CSS u can write this.
Making {overflow: hidden;} would cut the overflow off, and {overflow: auto;} would cause the overflow to enable scrolling.
Thanks,
Sun Rays
|
|
|
|
|
Hello
Sun Rays wrote: Making {overflow: hidden;} would cut the overflow off, and {overflow: auto;} would cause the overflow to enable scrolling.
This method will work fine in Firefox. But in IE it is not working. I want to wrap the contents inside pre tag.
|
|
|
|
|
we are using pre tag to display data in our format. but as u need word wrap in IE as well as in Firefox then u try for div. and apply CSS to div only.
Thanks,
Sun Rays
|
|
|
|
|
Hi i am if i have the second date then i will use query.....,
But i dont have second date...........,
Just my input is intime and outtime only...........
with that i want to calculate for night shift work hours..........
see my ques is i have intime(19:45) and outtime(8:53)
so if i use time span then i am getting value (10:59)
but exact answer is (13:08)
i need difference between two times.............
Magi
|
|
|
|