|
Web-safe colors are the closest thing to a sure bet. After that, you're on your own.
|
|
|
|
|
hi friends,
i am facing a problem in vs 2005 i am using gridview control and sqldatasource bounded to it
in the update command of the sqldatasource i am passing a query
UPDATE aspnet_UsersInRoles SET RoleId = @RoleId WHERE UserId =@userid
the gridview is having three columns userid,username and roleid among which userid is hidden
if i make this column visible then the above query is working fine but when i make it visible=false then i am getting an
error : Must declare a variable @userid
also i want to know if i place a dropdownlist in gridview how to access its selectedvalues as a parameter
can anybody help me
regards jabbar
jabbarsb
|
|
|
|
|
Hi,
error : Must declare a variable @userid
when column propert visible is false is correct.
Since in visual 2005 if column in visible false then data is not binded to that column.
Sol: To avoid this problem make visible false of column in RowCreated event of grid. This will solve your problem.
hope this helps.
Cheers! Anil
|
|
|
|
|
Does any one know if there is a way to set the order in which HTTPHandlers are called? Or is it determined by the order in which they appear and are rendered on the page?
only two letters away from being an asset
|
|
|
|
|
Hi Mark,
MSDN says about the httpHandlers Element[^]:
"The <httpHandlers> settings are inherited by the application subdirectories.
The <add> directives are processed in top-down, sequential order. If two or more <add> elements specify the same verb/path combination, the final <add> overrides all others."
So, IMHO you can put the handler down on the list if you it to run.
|
|
|
|
|
I probably screwed something up because it didn't seem to process them in the correct order. Thought I might be missing something.
only two letters away from being an asset
|
|
|
|
|
Hi there,
I'm making a website in ASP.net which shows some data from Microsoft SharePoint on it. but an error occured and it says this:
Product registry key not found.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: Microsoft.SharePoint.Portal.Topology.ProductKeyNullException: Product registry key not found.
Source Error:
[No relevant source lines]
Also this source file: _paj-teg.0.cs in my temporary asp.net files directory
I can't find nothing in internet to resolve this problem, it's a very important project and I can't do anything more
Hope I can get any help here
Hugs
|
|
|
|
|
Aloha,
I'm porting a Wordpress (Linux blog/CMS) based system to ASP.NET. Many of the articles in Wordpress have URLs like www.domain.com/santa-claus.
How do I handle requests to such URLs in ASP.NET. We have ported the data, but our ASP.NET pages have URLs like www.domain.com/article?id=234
I'm considering implementing an IHttpHandler that transforms the requests with the help of a database query (table with Wordpress/ASP.NET matches).
Is that the correct thing to do?
Thank you, Mads
|
|
|
|
|
|
Great, thanks. I'll definately take a look at that one.
Currently my attempt looks like this (no IHttpHandler stuff), it works, but there might be a best practice I don't know about...
<br />
protected void Application_BeginRequest(Object sender, EventArgs e)<br />
{<br />
string requestPath = HttpContext.Current.Request.Path.ToLower(); <br />
if (string.IsNullOrEmpty(requestPath) == false)<br />
{<br />
if (requestPath.Contains(".aspx") == false)<br />
{<br />
int accountItemId = <Database Call><br />
if (accountItemId > 0)<br />
{<br />
string convertedPath = "Article?Id=" + accountItemId.ToString();<br />
HttpContext.Current.RewritePath(convertedPath);<br />
}<br />
}<br />
}<br />
}<br />
|
|
|
|
|
Hello Friends.
I think this is one of the most innovative and challenging tasks I have ever encountered in my career.
I want to incorporate the Link Grammer open source project for the Open Source WordNet Dictionary.
Link Grammer:
http://bobo.link.cs.cmu.edu/link/index.html[^]
Wordnet:
http://wordnet.princeton.edu/[^]
The Link grammer project is available as a C code+ VC++ code + a API in C# as a console application.
Can anybody help me about this.
Thank You.
|
|
|
|
|
I want to export data from a table(sql) to a CSV file, using asp.net.
Thanks in advance,
Suresh Dayma
|
|
|
|
|
|
Thanks for the Reply.
Regards,
Suresh Dayma
Everything Is Possible!
|
|
|
|
|
Dear all
i'm using a session variable in my application and it's workin fine for some time and if i leave the page for a while the session expires
what i need is to expire the session only when the user closes the browed
(i don't want to set the session timeout to a specific time duration)
how can i implement that?
Best Regards
3ala2
|
|
|
|
|
Make the page request something periodically from the server, so that the session does not time out while the page is open. You can for example use a Javascript to request a small image at a certain interval.
You have to have a timeout on the session, or the server will fill up with old unused session objects.
---
b { font-weight: normal; }
|
|
|
|
|
can u give me an example?
and i think that there is a default timeout for the sessions, right?
i mean why does it disapear after a while without using the page.
I'll try to do the refresh function and c what happens
Thanx for ur response
Best Regards
3ala2
|
|
|
|
|
just3ala2 wrote: i think that there is a default timeout for the sessions, right?
Yes. The default timeout is 20 minutes.
---
b { font-weight: normal; }
|
|
|
|
|
Default Timeout is 20 seconds.
You can have a hidden IFRAME with a page like pingserver.aspx which would have a META Httpequiv TAG to the server.
Or without IFRAMES, you can have a JavaScript Timer and send a AJAX request to the server.
|
|
|
|
|
Type the following code, in the logout(link) button event.
Session.Clear()
Response.Redirect("Login.aspx")
Regards,
Suresh Dayma
Everything Is Possible!
|
|
|
|
|
HI..
Suppose I have two application A and B. I want to redirect from one page of application A to one page of application B along with some variables. how can I do this?.. plz help me..
Gurudatta B. Shelke
|
|
|
|
|
You can pass a value in form a Query string to other application like,
You can place the value inside the session from one application to the other application,This solution will be workable only if these two apps share a common session, means same server
If this two application is in different server then try this,
http://ServerName/AliasName/FileName.aspx?name=value, just pass the value as a query string
Mohan
|
|
|
|
|
Thanks for Your guidance
but How can i access session variable of one application in other application
Gurudatta B. Shelke
|
|
|
|
|
If you passed the varaible as:
http://ServerName/AliasName/FileName.aspx?name=value
Then, in C# you could access the variable 'name' as:
Request["name"]
This returns the string 'value' (always a string!!!)
The best times in life are the ones you can't remember!!!
|
|
|
|
|
Sorry, I was referring to accessing the query string varaibles. I don't think there is any way to access session variables across web applications. ASP.NET registers the session variables with the application so each application has it's own variables.
I just use query strings cause it's easier.
The best times in life are the ones you can't remember!!!
|
|
|
|