|
i have a lookup in sharepoint and it fill with number for example the content of that is 1 2 3 4 5 ...
now i want it contain some time 1 sometime 2 and ..
i want filter it.
can i do this in sharepoint designer with javascript and how?
|
|
|
|
|
when i run a query like
Select id, documenttitle, filepath from testdocuments where documenttitle like + "*" + filename + "*" + "' ";
then it does not fetch rows.
IF in access database i run same query it fetches rows.
I could not figure it out what can be the cause.
Can anyone please let me know .
Thanks.
|
|
|
|
|
hi ritu4321,
I think you need to check your database connectivity and SQL statement's execution. If everything is fine then please check your query contains '*' instead of '%'
string command = "Select id, documenttitle, filepath from testdocuments where documenttitle like '%" + filename + "%'";
Hope this will help you.
Thanks & Regards
Dilip Kumar Vishwakarma
|
|
|
|
|
I set up app on IIS 7 on vista 64 bit.
all work fine, I can get into data base see table button and all things...
but when I put Img control I can see him on VS but when he on the IIS
I cant go or see him... when the page go up I see X .
i try all securty...
what can I do...????
|
|
|
|
|
Friends...
I thank all of my friends who helped me to resolve erlier issues...
Today I have following problem. I have two separate scearios one is without master page and another with master page
In first scenario without masterpage I have follwoing code in default.aspx file
script block in
function Change()
{
alert(document.getElementById('DropDownList1').value)
}
<asp:dropdownlist id="DropDownList1" onchange="return Change();" runat="server"><asp:listitem>Item1<asp:listitem>Item1
<asp:textbox id="txtId1" runat="server">
And in code behind
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Dim txtVal as String = CType(Page.FindControl,TextBox).Text
End Sub
This one works perfect, I mean to say Javascript block works perfect and I can get a value in txtVal variable of Page_Load event
Now in second scenario where I am using MasterPage(TestMaster.master) which has following code.
<asp:contentplaceholder id="MainContent" runat="server">
And I have code in <asp:content> in default.aspx as below
]]>
<asp:content id="Content1" contentplaceholderid="MainContent" runat="Server">
--Same javascript block as above
--Same <asp:dropdownlist> and <asp:textbox> as above
And same page load event as above of default.aspx
So in this case none of the code is working correctly neither JAvascript code(null object javascript error is coming) nor page_load event(object reference not set to instance of an object erro) is working fine
I hope this helps in order to identify the issue
Thanks
You get the best out of others when you give the best of yourself.
|
|
|
|
|
trilokharry wrote: page_load event(object reference not set to instance of an object erro)
Try Page.Master.FindControl() as the control is in Master page.
trilokharry wrote: alert(document.getElementById('DropDownList1').value)
When you use Master/Content pages, ASP.NET adds the place holder id with the control id. So when you page is rendered, id of DropDownList1 might be something else. You need to write it like this
document.getElementById(<%=DropDownList1.ClientId %> ).value
|
|
|
|
|
Hi;
The same problem arised to me last week. But none answered me properly. U can check it out in the name 'RAAM'. I tried it on my own n finded the solution. The solution is, U write the java script coding in the Masterpage.Master. Then in ur content page, with the script = "javascript" use src = "Masterpage.Master". In ur button event or something in the content page call the java script function. it works properly.
With Regards
Raamkumar.T.T
The most difficult phase of life is not when no one understands you ; It is when you don’t understand yourself.
|
|
|
|
|
Can anybody help me to use xquery in my application . For that what namespace should i import?
I found the component Microsoft.Xml.XQuery.dll and i have added as reference also. But also i can feel that something else is required to work xquery. Also the functions of xquery ( Ex : Doc() ) is not present in my instantiation. Where am i wrong ?
Is there any other way to use xqyery in my asp.net application with Xml as database Or with both xml and sql as database.
VanithaVasu
|
|
|
|
|
I have displayed data using report.rdlc and report viewer in a webform.
There is no print button in report viewer.How to enable print button or How to print the data in the report.rdlc?
|
|
|
|
|
Hi guys
My problem is this . I need to generate a large number of records from SQL server 2000 to and excel spreadsheet. However the durations of time id too long. For about 900 records there's about 50 min.
Any idea or guide to boast up the speed?
Thanks a million guys need it urgently
KaKaShi HaTaKe
|
|
|
|
|
HatakeKaKaShi wrote: I need to generate a large number of records from SQL server 2000 to and excel spreadsheet.
Are you using the Excel COM object (will be slower) or HTML to Excel method to generate the Excel file?
HatakeKaKaShi wrote: However the durations of time id too long. For about 900 records there's about 50 min.
It depends on the business logic used to generate the excel.
SQL Server 2005 has the ability to export to excel directly using OPENROWSET (INSERT INTO OPENROWSET) methodology. Check whether SQL Server 2000 also has that command.
|
|
|
|
|
HI guys
However my SQL Statement alot of inner join conditions will that affect the speed as well? IF yes is there anyway that i can alter it and make it faster?
KaKaShi HaTaKe
|
|
|
|
|
Hai all,
In my project i just want to unload the page after one process.So i request you to give me some idea or code to unload my page.
Thanks in advance
Lijo
|
|
|
|
|
What do you mean by "unloading" a page?
Experience is the sum of all the mistakes you have done.
|
|
|
|
|
For each request, Page will be implicitly Unloaded Once the HTML Contents is rendered to the client. So you don't have to explicitly do that.
- Regards - J O N
A good thing is a bad thing if it keeps you from the best thing. - Dr. Adrian Rogers
|
|
|
|
|
Hai I have Website.If Anyone registered into my website I want to create datbase of that user details.If I have for example 100 users registered into mysite I wnat to be create dtabase for individually and finally from all users databaseshave to savedin another database.
Please if anyone Know abt this please send me a msg
|
|
|
|
|
Use a more meaningful subject line next time. In your database, create a user table that holds all the information you want to gather about the individual user.
"I guess it's what separates the professionals from the drag and drop, girly wirly, namby pamby, wishy washy, can't code for crap types." - Pete O'Hanlon
|
|
|
|
|
Are you serious about creating a separate database for each user? For any other purpose than making it hard to access the data, that's pretty useless.
Experience is the sum of all the mistakes you have done.
|
|
|
|
|
hi there,
There is no point of making database for each user. You should know a database can hold millions of table and records. So, there is no need to create database for each and every user. Rather use single database structure with primary and foreign key concept.
I have a simple advice to you. Make a table name "Users" with (User id as Primary key) and all the necessery information should be stored in another table which hold foreign key reference to User id field of User table. And all the table should be stored in the single database.
Hope this help you.
Dilip Kumar Vishwakarma
|
|
|
|
|
In my site there s a master page.there is a treeview on it.i have 3 kids of products.i gave to treeview 3 nagivateurls. when i click to one of these links so i want to show related pictures.how can i do like this project?is there any asp.net video about this topic?or is there any people who can explain how to do it
|
|
|
|
|
Have the views goto other pages and show the related pictures.
If that is not what you are wanting, try to go into better detail, possibly with better english.
The best way to accelerate a Macintosh is at 9.8m/sec² - Marcus Dolengo
|
|
|
|
|
Hi,
We're trying to set the appearance of an asp:CreateUserWizard control to have a custom background image but without success.
We tried to work with this object's style->background property but the images cannot be seen.
Does anybody have a clue?
Thanks in advance.
Snir_ya
|
|
|
|
|
Hello,
Try using CreateUserButtonImageURL and let me know if this helps or not.
Best Regards,
Sam Xavier
www.componentone.com
|
|
|
|
|
I have a table with a varchar field that uses the default character set latin1. In that field most values are in ascii but a few are not. Whenever I retrieve those values that contain non-ascii characters and try to display them on a webpage they show as garbage. I tried many things, like using charset=latin1 in the connection string, but nothing worked. Even tried to save the values to a text file and got the same results (using File.CreateText() and StreamWriter.Write(), which use UTF-8)
Environment info:
ASP.NET 2.0
MySQL 5.0.41 community
MySQL Connector/Net 5.1
response and request encoding set to utf-8 (default) in web.config
Any suggestions are very much appreciated ...
|
|
|
|
|
?dear all,
requiredfieldvalidator doesn't work properly within updatepanel, when i use it outside of the updatepanel it works, but within the updatepanel and with the validatorcalloutextender it doen't work properly, can u help me please
Web Developer @ Silverkey Egypt
|
|
|
|